1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Made Clear-Button functional

This commit is contained in:
Tim Düsterhus 2011-12-15 22:34:53 +01:00
parent f3a7efa695
commit 9a8663155b
2 changed files with 9 additions and 7 deletions

View File

@ -27,7 +27,7 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
*/
bindEvents: function () {
$('.smiley').click($.proxy(function (event) {
this.insertText($(event.target).attr('alt'));
this.insertText(' '+$(event.target).attr('alt')+' ');
}, this));
// recalculate the width of chatRoomContent on resize
@ -58,8 +58,10 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
this.submit($(event.target));
}, this));
$('button').click(function (event) {
window.location.href = $(event.target).attr('value');
$('#chatClear').click(function () {
event.preventDefault();
$('.chatMessage').remove();
$('#chatInput').focus();
});
},
/**

View File

@ -201,22 +201,22 @@
<div class="smallButtons">
<ul>
<li>
<a id="chatAutoscrollButton" href="javascript:;">
<a class="chatToggle" data-status="1" href="javascript:;">
<img alt="" src="{icon}enabled1{/icon}" /> <span>Scroll</span>
</a>
</li>
<li>
<a href="javascript:;">
<a class="chatToggle" data-status="0" href="javascript:;">
<img alt="" src="{icon}disabled1{/icon}" /> <span>Notify</span>
</a>
</li>
<li>
<a href="javascript:;">
<a id="chatClear" href="javascript:;">
<img alt="" src="{icon}delete1{/icon}" /> <span>Clear</span>
</a>
</li>
<li>
<a href="javascript:;">
<a id="chatMark" href="javascript:;">
<img alt="" src="{icon}check1{/icon}" /> <span>Mark</span>
</a>
</li>