Added confirm msg for build cached entries in maintenance.

This commit is contained in:
Matthias Mees 2014-03-06 12:30:05 +01:00
parent 1d32fe52f5
commit 57cf532863
2 changed files with 2 additions and 2 deletions

View File

@ -571,7 +571,7 @@ class serendipity_event_entryproperties extends serendipity_event
if ($is_cache && $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN) { if ($is_cache && $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN) {
echo '<section id="maintenance_buildcache" class="equal_heights quick_list">'; echo '<section id="maintenance_buildcache" class="equal_heights quick_list">';
echo '<h3>'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</h3>'; echo '<h3>'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</h3>';
echo '<a class="button_link" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=buildcache">'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</a></section>'; echo '<a class="button_link build_cache" href="?serendipity[adminModule]=event_display&amp;serendipity[adminAction]=buildcache" data-delmsg="'. PLUGIN_EVENT_ENTRYPROPERTIES_CACHE_FETCHNEXT .'">'. PLUGIN_EVENT_ENTRYPROPERTY_BUILDCACHE .'</a></section>';
} }
return true; return true;
break; break;

View File

@ -965,7 +965,7 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
}); });
// Comments // Comments
$('.comments_delete, .comments_multidelete').click(function() { $('.comments_delete, .comments_multidelete, .build_cache').click(function() {
var $msg = $(this).attr('data-delmsg'); var $msg = $(this).attr('data-delmsg');
return confirm($msg); return confirm($msg);
}); });