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:
parent
f3a7efa695
commit
9a8663155b
@ -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();
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user