1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40: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 () { bindEvents: function () {
$('.smiley').click($.proxy(function (event) { $('.smiley').click($.proxy(function (event) {
this.insertText($(event.target).attr('alt')); this.insertText(' '+$(event.target).attr('alt')+' ');
}, this)); }, this));
// recalculate the width of chatRoomContent on resize // recalculate the width of chatRoomContent on resize
@ -58,8 +58,10 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
this.submit($(event.target)); this.submit($(event.target));
}, this)); }, this));
$('button').click(function (event) { $('#chatClear').click(function () {
window.location.href = $(event.target).attr('value'); event.preventDefault();
$('.chatMessage').remove();
$('#chatInput').focus();
}); });
}, },
/** /**

View File

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