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

- old
+ new

@@ -1,9 +1,8 @@ {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+ -6UI" length;TiÁ‡I" digest;TI"%1d500462e4b84c2fafd15b7c2d18ece2;FI" source;TI"Á‡/*! +mtime;Tl+LE6UI" length;Tis‡I" digest;TI"%0c41967bf1f0ffd0bd1019f1b77bd053;FI" source;TI"s‡/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ @@ -38013,12 +38012,12 @@ $(document).on('click', '.structure-form-menu ul li a', function(e) { var $structureForm; $structureForm = $(this).parents('.structure-form'); $(this).parent('li').siblings().removeClass('active'); $(this).parent('li').addClass('active'); - $structureForm.find('.structure-form-pane').hide(); - $($(this).attr('href')).show(); + $structureForm.find('.structure-form-pane').removeClass('active'); + $($(this).attr('href')).addClass('active'); return e.preventDefault(); }); }).call(this); (function() { @@ -38422,24 +38421,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) { @@ -38454,17 +38455,10 @@ $(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() { @@ -38518,6 +38512,6 @@ -;TI"required_assets_digest;TI"%a9161781a8a51f7dc5b4e6a8cc3022e5;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F +;TI"required_assets_digest;TI"%4ce00597e3589eea9daa244bbe23bf40;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F \ No newline at end of file