X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..7518020e7db372ad8bbb13fb24c99931c4e90aff:/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; });