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