apostrophe-snippets
Advanced tools
Comparing version 0.5.66 to 0.5.67
{ | ||
"name": "apostrophe-snippets", | ||
"version": "0.5.66", | ||
"version": "0.5.67", | ||
"description": "Reusable content snippets for the Apostrophe content management system. The blog and events modules are built on this foundation, which is also useful in and of itself.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -503,2 +503,13 @@ // JavaScript which enables editing of this module's content belongs here. | ||
$save.hide(); | ||
$el.on('change', '[name="removeAll"]', function() { | ||
var $box = $(this); | ||
var state = $box.prop('checked'); | ||
if (state) { | ||
if (!confirm('Are you sure you really want to move ALL EXISTING CONTENT of this type to the trash?')) { | ||
$box.prop('checked', false); | ||
} | ||
} | ||
}); | ||
// The file upload's completion will trigger the import operation | ||
@@ -535,2 +546,6 @@ $el.find('[name="file"]').attr('data-url', self._action + '/import'); | ||
errorLog(result.errorLog); | ||
if (done) { | ||
// Make it hard to do this again by accident | ||
$el.find('[name="removeAll"]').prop('checked', false); | ||
} | ||
if (!done) { | ||
@@ -537,0 +552,0 @@ setTimeout(update, 1000); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
149779
2857