Meta errors in alerts.
[redakcja.git] / src / redakcja / static / js / wiki / view_history.js
index 85adca0..8744995 100644 (file)
@@ -47,7 +47,7 @@
                                event.preventDefault();
                        });
 
                                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;
                var $this = $(this);
 
                var selected_count = $("#changes-list .entry.selected").length;
                };
 
                $('#history-view-editor .toolbar button').attr('disabled', 'disabled').
                };
 
                $('#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);
                });
 
                    attr('disabled', null);
                });
 
-           $('#changes-list span.tag').live('click', function(event){
+                    $(document).on('click', '#changes-list span.tag', function(event){
                    return false;
                });
 
                    return false;
                });