app/assets/javascripts/cm_admin/shared_scaffolds.js in cm-admin-1.0.5 vs app/assets/javascripts/cm_admin/shared_scaffolds.js in cm-admin-1.0.6
- old
+ new
@@ -20,10 +20,14 @@
$('.row-action-cell').removeClass('opacity-1')
} else {
$('.row-action-cell').removeClass('opacity-1')
$(this).addClass('opacity-1');
}
- $(this).find('.table-export-popup').toggle('hidden')
+ if ($(this).find('.table-export-popup').hasClass('hidden')) {
+ return $(this).find('.table-export-popup').removeClass('hidden');
+ } else {
+ return $(this).find('.table-export-popup').addClass('hidden');
+ }
});
$(document).on('click', '.drawer-btn', function(e) {
e.stopPropagation();
\ No newline at end of file