test/dummy/tmp/cache/assets/development/sprockets/c0ff3d7073a6b91f8b516fb04bbfde69 in spina-0.6.14 vs test/dummy/tmp/cache/assets/development/sprockets/c0ff3d7073a6b91f8b516fb04bbfde69 in spina-0.6.15

- old
+ new

@@ -1,8 +1,9 @@ {I" class:ETI"BundledAsset;FI"logical_path;TI"spina/admin/application.js;TI" pathname;TI"M/Users/bram/apps/spina/app/assets/javascripts/spina/admin/application.js;FI"content_type;TI"application/javascript;TI" -mtime;Tl+C5UI" length;Tic…I" digest;TI"%e77c2dc0657394ffcb18a777f9b3504e;FI" source;TI"c…/*! +mtime;Tl+ +6UI" length;TiÁ‡I" digest;TI"%1d500462e4b84c2fafd15b7c2d18ece2;FI" source;TI"Á‡/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ @@ -38422,17 +38423,27 @@ $structureForm = $(this).parents('.structure-form'); time = new Date().getTime(); regexp = new RegExp($(this).data('id'), 'g'); $fields = $($(this).data('fields').replace(regexp, time)); $(this).before($fields); - $link = $("<li><a href='#structure_form_pane_" + time + "'><i data-icon='7'></i> New</a></li>"); + $link = $("<li><a href='#structure_form_pane_" + time + "'><i data-icon='7'></i> </a></li>"); $structureForm.find('.structure-form-menu ul').append($link); $fields.attr('id', "structure_form_pane_" + time); $link.find('a').click(); return event.preventDefault(); }); + $(document).on('click', 'form .remove-structure-item-fields', function(event) { + var $pane; + $(this).prev('input[type=hidden]').val('1'); + $pane = $(this).closest('.structure-form-pane'); + console.log($pane.attr('id')); + $("a[href='#" + ($pane.attr('id')) + "']").parents('li').hide(); + $pane.hide(); + return event.preventDefault(); + }); + $(document).on('click', '.sort-switch', function(event) { $($(this).attr('href') + ' .dd-item-inner').toggleClass('dd-handle'); if ($(this).attr('data-icon') === 'j') { $(this).attr('data-icon', '8'); $(this).removeClass('button-success'); @@ -38443,10 +38454,17 @@ $(this).text($(this).data('done-changing-order')); } return false; }); + $(document).on('submit', 'form.edit_page', function(event) { + var $submitButton; + $submitButton = $(this).find('button[type="submit"]'); + $submitButton.addClass('button-saving'); + return $submitButton.attr('data-icon', 'f'); + }); + }).call(this); (function() { var ready, show_layout_parts; ready = function() { @@ -38500,6 +38518,6 @@ -;TI"required_assets_digest;TI"%3f5292667c348a86291f614d26821843;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F +;TI"required_assets_digest;TI"%a9161781a8a51f7dc5b4e6a8cc3022e5;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F \ No newline at end of file