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

- old
+ new

@@ -1,8 +1,9 @@ {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+C5UI" length;Ti I" digest;TI"%8be7b85394d6799a36184c8f9b11c69d;FI" source;TI" (function() { +mtime;Tl+ +6UI" length;Ti{I" digest;TI"%41b86a4d59ff7701bc2dfa2376a9f4cf;FI" source;TI"{(function() { var ready, show_page_parts; ready = function() { var page_parts; if ($('.page-template').length > 0) { @@ -64,17 +65,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'); @@ -85,7 +96,14 @@ $(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"%5e28cf67b4ba0abf2542f00027f938d5;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F +;TI"required_assets_digest;TI"%2478f9e7be28c1dcbb27aa5c977d8eb1;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F \ No newline at end of file