Cleanup js files and prepare for concatenating, move most inline js to files

git-svn-id: https://develop.svn.wordpress.org/trunk@10348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-01-12 13:43:17 +00:00
parent 23d722d40a
commit 80fb5c79ce
52 changed files with 583 additions and 675 deletions
+6 -8
View File
@@ -1,4 +1,4 @@
var theList, theExtraList;
var theList, theExtraList, toggleWithKeyboard = false;
(function($) {
setCommentsList = function() {
@@ -142,8 +142,8 @@ commentReply = {
// add events
$('#the-comment-list .column-comment > p').dblclick(function(){
commentReply.toggle($(this).parent());
});
commentReply.toggle($(this).parent());
});
$('#doaction, #doaction2, #post-query-submit').click(function(e){
if ( $('#the-comment-list #replyrow').length > 0 )
@@ -332,11 +332,10 @@ commentReply = {
}
};
toggleWithKeyboard = false;
$(document).ready(function(){
var make_hotkeys_redirect, edit_comment, toggle_all, make_bulk;
columns.init('edit-comments');
commentReply.init();
if ( typeof QTags != 'undefined' )
@@ -358,8 +357,7 @@ $(document).ready(function(){
};
toggle_all = function() {
toggleWithKeyboard = true;
var master_checkbox = $('form#comments-form .check-column :checkbox:first');
master_checkbox.click().attr('checked', '');
$('#comments-form thead #cb input:checkbox').click().attr('checked', '');
toggleWithKeyboard = false;
}
make_bulk = function(value) {