test/dummy/tmp/cache/assets/development/sprockets/60800955d627731b6d59826931a25178 in spina-0.6.16 vs test/dummy/tmp/cache/assets/development/sprockets/60800955d627731b6d59826931a25178 in spina-0.6.17

- old
+ new

@@ -1,9 +1,8 @@ {I" class:ETI"ProcessedAsset;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"dependency_digest;TI"%2478f9e7be28c1dcbb27aa5c977d8eb1;FI"required_paths;T[I"N/Users/bram/apps/spina/app/assets/javascripts/spina/admin/pages.js.coffee;FI"dependency_paths;T[{I" path;TI"N/Users/bram/apps/spina/app/assets/javascripts/spina/admin/pages.js.coffee;F@I"2015-04-21T10:27:46+02:00;T@I"%9c16f4257adec6f43a1ac6b59888d92f;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F +;TI"dependency_digest;TI"%66e9af55452c756e15211c137cee935d;FI"required_paths;T[I"N/Users/bram/apps/spina/app/assets/javascripts/spina/admin/pages.js.coffee;FI"dependency_paths;T[{I" path;TI"N/Users/bram/apps/spina/app/assets/javascripts/spina/admin/pages.js.coffee;F@I"2015-04-21T14:40:44+02:00;T@I"%9a1342dfce2c471feb6e55c26af3e880;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F \ No newline at end of file