mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Removed unneeded code.
This commit is contained in:
parent
987482c590
commit
f8c2ba051e
@ -16,10 +16,6 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
|
|||||||
messageTemplate: null,
|
messageTemplate: null,
|
||||||
init: function(roomID, messageID) {
|
init: function(roomID, messageID) {
|
||||||
this.bindEvents();
|
this.bindEvents();
|
||||||
// calculate the width for the chatRoomContent, 'cause the styles width isn't fixed.
|
|
||||||
$('#chatRoomContent').width($('#chatBox').width() - 400);
|
|
||||||
// add toRight1.svg to WCF.Icon-storage
|
|
||||||
WCF.Icon.add('wcf.icon.toRight1', $('#chatForm .inputImage').attr('src'));
|
|
||||||
$('#chatInput').focus();
|
$('#chatInput').focus();
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -30,13 +26,6 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
|
|||||||
this.insertText(' '+$(event.target).attr('alt')+' ');
|
this.insertText(' '+$(event.target).attr('alt')+' ');
|
||||||
}, this));
|
}, this));
|
||||||
|
|
||||||
// recalculate the width of chatRoomContent on resize
|
|
||||||
var chatRoomContent = $('#chatRoomContent');
|
|
||||||
var chatBox = $('#chatBox');
|
|
||||||
$(window).resize(function() {
|
|
||||||
chatRoomContent.width(chatBox.width() - 400);
|
|
||||||
});
|
|
||||||
|
|
||||||
// $(window).bind('beforeunload', function() {
|
// $(window).bind('beforeunload', function() {
|
||||||
// return false;
|
// return false;
|
||||||
// });
|
// });
|
||||||
@ -129,12 +118,11 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
|
|||||||
if (this.loading || target.parent().hasClass('activeMenuItem')) return false;
|
if (this.loading || target.parent().hasClass('activeMenuItem')) return false;
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
target.parent().addClass('ajaxLoad');
|
target.parent().addClass('ajaxLoad');
|
||||||
}, this)
|
}, this)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getMessages: function (id) {
|
getMessages: function () {
|
||||||
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user