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 () {
|
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();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user