chat updates
This commit is contained in:
parent
5a8209f805
commit
135a55acee
3 changed files with 41 additions and 29 deletions
|
@ -564,7 +564,6 @@ function inmeta2(){
|
|||
$meta.="<script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?ver=1213232\"></script>
|
||||
<link rel=\"stylesheet\" media=\"screen\" type=\"text/css\" href=\"/modules/chat/colorpicker/spectrum.css\" />
|
||||
<script type=\"text/javascript\" src=\"/modules/chat/colorpicker/spectrum.js\"></script>
|
||||
<script type=\"text/javascript\" src=\"/modules/chat/js/cowboy.js\"></script>
|
||||
<script src=\"/modules/chat/js/tab.min.js?id=892191\" type=\"text/javascript\" ></script>
|
||||
<script type=\"text/javascript\">
|
||||
var ulist;
|
||||
|
@ -909,12 +908,12 @@ function inmeta2(){
|
|||
|
||||
// For IE and Firefox prior to version 4
|
||||
if (e && doit) {
|
||||
e.returnValue = 'Are you sure you want to leave? There is an active chat session!';
|
||||
e.returnValue = 'Willst du das Fenster wirklich schließen?';
|
||||
}
|
||||
|
||||
// For Safari
|
||||
if(doit){
|
||||
return 'Are you sure you want to leave? There is an active chat session!';
|
||||
return 'Willst du das Fenster wirklich schließen?';
|
||||
}
|
||||
};
|
||||
var tabcom = new TabCompleter($(\"#text\").get(0));
|
||||
|
@ -941,7 +940,7 @@ function inmeta2(){
|
|||
sendMsg('/q');
|
||||
});
|
||||
|
||||
jQuery('.functions').html('<h4>Chat Color</h4><input id=\"colorSelector\" type=\"text\" style=\"float:left;\" \>');
|
||||
jQuery('.functions').html('<h4>Chatfarbe</h4><input id=\"colorSelector\" type=\"text\" style=\"float:left;\" \>');
|
||||
$('#colorSelector').spectrum({
|
||||
showInput: true,
|
||||
preferredFormat: \"hex\",
|
||||
|
@ -961,6 +960,17 @@ function inmeta2(){
|
|||
room($(this).attr('id'));
|
||||
});
|
||||
|
||||
function cwhisp(name, inittext, youfirst) {
|
||||
var charimg='';
|
||||
$.ajax({
|
||||
url: \"ajax.php\",
|
||||
data: { task: \"chat\",call: \"getid\", char: name},
|
||||
success: function(data) {
|
||||
create_whisper(name, inittext, youfirst, data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('body').on('click', 'span.user_whisper', function() {
|
||||
if(whwind ==true){
|
||||
if ($('#'+$(this).attr('title')+'_whisper').length > 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue