diff options
Diffstat (limited to 'lib/scripts')
-rw-r--r-- | lib/scripts/behaviour.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index 9372dbff8..41f63294c 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -86,12 +86,11 @@ var dw_behaviour = { * Display confirm dialog on page restore action */ pageRestoreConfirm: function(){ - var $revert = jQuery('#dokuwiki__pagetools li.revert a'); - if($revert.length) { - $revert.on('click', function() { + jQuery('#dokuwiki__pagetools li.revert a').on('click', + function() { return confirm(LANG.restore_confirm); - }); - } + } + ); }, /** |