Sha256: 7559e504fb551b50928612c00480881261390889602fa6335218a34a28187bf4
Contents?: true
Size: 857 Bytes
Versions: 4
Compression:
Stored size: 857 Bytes
Contents
$(function() { $('form#form_edit_photos').on("click", ".form-photo-field .form-actions-right .confirm-delete", function() { if ( confirm( $(this).attr('data-confirm') ) ) { $.ajax({ type: "POST", dataType: 'script', data: { '_method': 'delete' }, url: this.href }); } //TODO if all fields are deleted, show info - 0 photos and dont show form actions return false; }); $('#more_photo_options_field #toggle_advanced_options').click(function(e){ e.preventDefault(); $('#more_options').animate({opacity: 'toggle', height: 'toggle'}, 250); $('html,body').animate({ scrollTop: $('#toggle_advanced_options').parent().offset().top }, 250); }); $(".chzn-select").chosen(); });
Version data entries
4 entries across 4 versions & 2 rubygems