X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..92d4704c889df1405c4d2c34e1fce5e5c1ced680:/src/redakcja/static/js/wiki/view_history.js?ds=sidebyside 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; });