X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..a9b4700e3cd649a6dddc3b72dc0bd632f7841c74:/src/redakcja/static/js/wiki/view_history.js diff --git a/src/redakcja/static/js/wiki/view_history.js b/src/redakcja/static/js/wiki/view_history.js index 85adca0a..8744995e 100644 --- a/src/redakcja/static/js/wiki/view_history.js +++ b/src/redakcja/static/js/wiki/view_history.js @@ -47,7 +47,7 @@ event.preventDefault(); }); - $('#changes-list .entry').live('click', function(){ + $(document).on('click', '#changes-list .entry', function(){ var $this = $(this); var selected_count = $("#changes-list .entry.selected").length; @@ -64,11 +64,11 @@ }; $('#history-view-editor .toolbar button').attr('disabled', 'disabled'). - filter('*[data-enabled-when~=' + selected_count + '], *[data-enabled-when~=*]'). + filter('*[data-enabled-when~="' + selected_count + '"]'). attr('disabled', null); }); - $('#changes-list span.tag').live('click', function(event){ + $(document).on('click', '#changes-list span.tag', function(event){ return false; });