test/dummy/tmp/cache/assets/development/sprockets/729b77e341373159707a68d330ecc995 in spina-0.6.16 vs test/dummy/tmp/cache/assets/development/sprockets/729b77e341373159707a68d330ecc995 in spina-0.6.17

- old
+ new

@@ -1,9 +1,8 @@ {I" class:ETI"BundledAsset;FI"logical_path;TI"spina/admin/pages.js;FI" pathname;TI"N/Users/bram/apps/spina/app/assets/javascripts/spina/admin/pages.js.coffee;FI"content_type;TI"application/javascript;TI" -mtime;Tl+ -6UI" length;Ti{I" digest;TI"%41b86a4d59ff7701bc2dfa2376a9f4cf;FI" source;TI"{(function() { +mtime;Tl+LE6UI" length;TiI" digest;TI"%00cd2bf18240e966ecaa141354887b63;FI" source;TI"(function() { var ready, show_page_parts; ready = function() { var page_parts; if ($('.page-template').length > 0) { @@ -64,24 +63,26 @@ var $fields, $link, $structureForm, regexp, time; $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); + $structureForm.find('.structure-form-content').append($fields); $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; + var $link, $pane, $previousLink; $(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(); + $link = $("a[href='#" + ($pane.attr('id')) + "']").parents('li'); + $previousLink = $link.siblings('li:visible'); + $previousLink.find('a').trigger('click'); + $link.hide(); $pane.hide(); return event.preventDefault(); }); $(document).on('click', '.sort-switch', function(event) { @@ -96,14 +97,7 @@ $(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); -;TI"required_assets_digest;TI"%2478f9e7be28c1dcbb27aa5c977d8eb1;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F +;TI"required_assets_digest;TI"%66e9af55452c756e15211c137cee935d;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F \ No newline at end of file