Plugin Directory

Changeset 1459339


Ignore:
Timestamp:
07/23/2016 12:19:49 AM (10 years ago)
Author:
brainytalk
Message:

Bugs correction

Location:
brainytalk-chat
Files:
154 added
4 edited

Legend:

Unmodified
Added
Removed
  • brainytalk-chat/trunk/assets/js/app/brainytalk.js

    r1455985 r1459339  
    1 function setarToken(e){tokenEmpresa=e}function registrarUserWordpress(e,a,i,o,n){user=e,tel=a,email=i,msgInicial=o,tokenEmpresa=n,jQuery.connection.webChatHub.server.conectarUsuarioWordPress(tokenEmpresa,"",user,tel,email)}function conectarSignalR(){var e=new Date,a=CryptoJS.AES.encrypt(e.toString()+"LukeImYourFather",key,{iv:iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}),i=CryptoJS.AES.encrypt(e.toString(),key,{iv:iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});jQuery.connection.hub.url="https://web.brainytalk.com/signalr";var o=jQuery.connection.webChatHub;jQuery.connection.hub.qs={AuthorizationToken:a.toString(),AuthorizationValue:i.toString()},registerClientMethods(o),jQuery.connection.hub.start().done(function(){registerEvents(o);var e=getCookie("wschat-id");null!=e&&jQuery.connection.webChatHub.server.haAlguemLogado(jQuery("#tokenEmp").val()),jQuery.connection.webChatHub.server.salaAindaAtiva(e)})}function registerEvents(e){jQuery("#txtPrivateMessage").on("keyup",function(a){if(13==a.keyCode){var i=jQuery("#txtPrivateMessage").val();i.length>0&&(e.server.enviarMensagem(idsala,i),jQuery("#txtPrivateMessage").val(""))}}),jQuery("#btnSendMessage").click(function(){var a=jQuery("#txtPrivateMessage").val();jQuery("#txtPrivateMessage").val(""),e.server.enviarMensagem(idsala,a)}),jQuery("#btnSendEmail").click(function(){var a=jQuery("#mensagemInicialEnvio").val(),i=jQuery("#txtNomeUsuarioEnvio").val(),o=jQuery("#txtEmailEnvio").val();e.server.enviarEmail(jQuery("#tokenEmp").val(),i,o,a),jQuery("#infoEmail").hide(500),jQuery("#emailEnviado").show(500)})}function registerClientMethods(e){e?(e.client.setarImagemLocal=function(e){setarImagemLocal(e)},e.client.setarImagemSrv=function(e){setarImagemSrv(e)},e.client.validarUsuarioConectado=function(){e.server.conectarUsuarioWordPress(user,email,tel)},e.client.setarNomeUsuario=function(e){user=e,jQuery("#chatBoxGeral").hasClass("active")||jQuery("#chatBoxGeral").addClass("active")},e.client.habilitarEnvioEmail=function(){jQuery("#infoEmail").show(500),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").hide(500)},e.client.desabilitarEnvioEmail=function(){jQuery("#infoEmail").hide(500),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").show(500)},e.client.atualizarStatusSala=function(a,i){"Aguarde"!=i?(jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").hide(500),jQuery("#chatinfo").show(500),idsala=a,jQuery("#nomeTecnico").html(i),null!=msgInicial&&e.server.enviarMensagem(idsala,msgInicial),setCookie("wschat-id",idsala,1)):jQuery("#nowLoading").hide()&&(jQuery("#Mensagens").html(""),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").show(500),jQuery("#infoUsuario").hide(500))},e.client.addMensagem=function(e,a,i,o,n,r){adicionarMensagem(e,a,i,o,n,r)}):console.log("[ERRO] - Não foi possível conectar ao chat")}function setarImagemLocal(e){srcImgLocal=e}function setarImagemSrv(e){srcImgServer=e}function adicionarMensagemEsquerda(e,a,i,o,n){var r='<div class="left"><span class="message-date"><small>'+n+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(r)}function adicionarMensagemDireita(e,a,i,o,n){var r='<div class="right"><span class="message-date"><small>'+n+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(r)}function adicionarMensagem(e,a,i,o,n,r){"W"==r?adicionarMensagemDireita(a,i,n,e,o):adicionarMensagemEsquerda(a,i,n,e,o),scrollChat(e)}function notifyMe(e,a,i){if(!Notification)return void console.error("Notificações de Desktop do Google Chrome estão desativadas! Tente novamente.");if("granted"!==Notification.permission)Notification.requestPermission();else{var o=new Notification(e,{icon:"framework/admin/images/chrome_notify.png",body:a});o.onclick=function(){window.open(i)}}}function setCookie(e,a,i){var o=new Date;o.setTime(o.getTime()+24*i*60*60*1e3);var n="expires="+o.toUTCString();document.cookie=e+"="+a+"; "+n}function getCookie(e){for(var a=e+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var n=i[o];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(a))return n.substring(a.length,n.length)}return""}var gTotalStyles=0,idsala,srcImgLocal,srcImgServer,user="",tel,email,msgInicial,tokenEmpresa="",height=0,key=CryptoJS.enc.Utf8.parse("Luke...ImYourFatherNOOOOOOOOOOOO"),iv=CryptoJS.enc.Utf8.parse("LukeImYourFather");jQuery(document).ready(function(){conectarSignalR(),jQuery("#btnIniciarChat").click(function(){var e=1;jQuery("#mensagemInicial").val()||(jQuery("#mensagemInicial").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#mensagemInicial").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtNomeUsuario").val()||(jQuery("#txtNomeUsuario").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtNomeUsuario").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtTelefone").val()||(jQuery("#txtTelefone").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtTelefone").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtEmail").val()||(jQuery("#txtEmail").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtEmail").removeClass("campoobrigatorio")},4e3),e=0),0!=e&&(registrarUserWordpress(jQuery("#txtNomeUsuario").val(),jQuery("#txtTelefone").val(),jQuery("#txtEmail").val(),jQuery("#mensagemInicial").val(),jQuery("#tokenEmp").val()),jQuery("#infoUsuario").hide(500),jQuery("#nowLoading").show(500))}),scrollChat=function(e){height+=parseInt(jQuery("#Mensagens").height()),jQuery("#Mensagens").animate({scrollTop:height},1)},jQuery("#chatbox").fadeIn(1e3)}),document.addEventListener("DOMContentLoaded",function(){"granted"!==Notification.permission&&Notification.requestPermission()});
     1function setarToken(e){tokenEmpresa=e}function registrarUserWordpress(e,a,i,r,n){user=e,tel=a,email=i,msgInicial=r,tokenEmpresa=n,jQuery.connection.webChatHub.server.conectarUsuarioWordPress(tokenEmpresa,"",user,tel,email)}function conectarSignalR(){var e=new Date,a=CryptoJS.AES.encrypt(e.toString()+"LukeImYourFather",key,{iv:iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}),i=CryptoJS.AES.encrypt(e.toString(),key,{iv:iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});jQuery.connection.hub.url="https://web.brainytalk.com/signalr";var r=jQuery.connection.webChatHub;jQuery.connection.hub.qs={AuthorizationToken:a.toString(),AuthorizationValue:i.toString()},registerClientMethods(r),jQuery.connection.hub.start().done(function(){registerEvents(r);var e=getCookie("wschat-id");null!=e&&jQuery.connection.webChatHub.server.haAlguemLogado(jQuery("#tokenEmp").val()),jQuery.connection.webChatHub.server.salaAindaAtiva(e)})}function registerEvents(e){jQuery("#txtPrivateMessage").on("keyup",function(a){if(13==a.keyCode){var i=jQuery("#txtPrivateMessage").val();i.length>0&&(e.server.enviarMensagem(idsala,i),jQuery("#txtPrivateMessage").val(""))}}),jQuery("#btnSendMessage").click(function(){var a=jQuery("#txtPrivateMessage").val();jQuery("#txtPrivateMessage").val(""),e.server.enviarMensagem(idsala,a)}),jQuery("#btnSendEmail").click(function(){var a=jQuery("#mensagemInicialEnvio").val(),i=jQuery("#txtNomeUsuarioEnvio").val(),r=jQuery("#txtEmailEnvio").val();e.server.enviarEmail(jQuery("#tokenEmp").val(),i,r,a),jQuery("#infoEmail").hide(500),jQuery("#emailEnviado").show(500)})}function registerClientMethods(e){e?(e.client.setarImagemLocal=function(e){setarImagemLocal(e)},e.client.setarImagemSrv=function(e){setarImagemSrv(e)},e.client.validarUsuarioConectado=function(){e.server.conectarUsuarioWordPress(user,email,tel)},e.client.setarNomeUsuario=function(e){user=e,jQuery("#chatBoxGeral").hasClass("active")||jQuery("#chatBoxGeral").addClass("active")},e.client.habilitarEnvioEmail=function(){jQuery("#infoEmail").show(500),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").hide(500)},e.client.desabilitarEnvioEmail=function(){jQuery("#infoEmail").hide(500),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").show(500)},e.client.atualizarStatusSala=function(a,i){"Aguarde"!=i?(jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").hide(500),jQuery("#chatinfo").show(500),idsala=a,jQuery("#nomeTecnico").html(i),null!=msgInicial&&(e.server.enviarMensagem(idsala,msgInicial),msgInicial=null),setCookie("wschat-id",idsala,1)):jQuery("#nowLoading").hide()&&(jQuery("#Mensagens").html(""),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").show(500),jQuery("#infoUsuario").hide(500))},e.client.addMensagem=function(e,a,i,r,n,o){adicionarMensagem(e,a,i,r,n,o)}):console.log("[ERRO] - Não foi possível conectar ao chat")}function setarImagemLocal(e){srcImgLocal=e}function setarImagemSrv(e){srcImgServer=e}function adicionarMensagemEsquerda(e,a,i,r,n){var o='<div class="left"><span class="message-date"><small>'+n+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(o)}function adicionarMensagemDireita(e,a,i,r,n){var o='<div class="right"><span class="message-date"><small>'+n+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(o)}function adicionarMensagem(e,a,i,r,n,o){"W"==o?adicionarMensagemDireita(a,i,n,e,r):adicionarMensagemEsquerda(a,i,n,e,r),scrollChat(e)}function setCookie(e,a,i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3);var n="expires="+r.toUTCString();document.cookie=e+"="+a+"; "+n}function getCookie(e){for(var a=e+"=",i=document.cookie.split(";"),r=0;r<i.length;r++){for(var n=i[r];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(a))return n.substring(a.length,n.length)}return""}var gTotalStyles=0,idsala,srcImgLocal,srcImgServer,user="",tel,email,msgInicial,tokenEmpresa="",height=0,key=CryptoJS.enc.Utf8.parse("Luke...ImYourFatherNOOOOOOOOOOOO"),iv=CryptoJS.enc.Utf8.parse("LukeImYourFather");jQuery(document).ready(function(){conectarSignalR(),jQuery("#btnIniciarChat").click(function(){var e=1;jQuery("#mensagemInicial").val()||(jQuery("#mensagemInicial").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#mensagemInicial").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtNomeUsuario").val()||(jQuery("#txtNomeUsuario").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtNomeUsuario").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtTelefone").val()||(jQuery("#txtTelefone").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtTelefone").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtEmail").val()||(jQuery("#txtEmail").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtEmail").removeClass("campoobrigatorio")},4e3),e=0),0!=e&&(registrarUserWordpress(jQuery("#txtNomeUsuario").val(),jQuery("#txtTelefone").val(),jQuery("#txtEmail").val(),jQuery("#mensagemInicial").val(),jQuery("#tokenEmp").val()),jQuery("#infoUsuario").hide(500),jQuery("#nowLoading").show(500))}),scrollChat=function(e){height+=parseInt(jQuery("#Mensagens").height()),jQuery("#Mensagens").animate({scrollTop:height},1)},jQuery("#chatbox").fadeIn(1e3)});
  • brainytalk-chat/trunk/assets/js/app/brainytalk.min.js

    r1344894 r1459339  
    1 function setarToken(e){tokenEmpresa=e}function registrarUserWordpress(e,a,i,n,o){user=e,tel=a,email=i,msgInicial=n,tokenEmpresa=o,jQuery.connection.webChatHub.server.conectarUsuarioWordPress(tokenEmpresa,"",user,tel,email)}function conectarSignalR(){jQuery.connection.hub.url="//web.brainytalk.com/signalr";var e=jQuery.connection.webChatHub;registerClientMethods(e),jQuery.connection.hub.start().done(function(){registerEvents(e);var a=getCookie("wschat-id");null!=a&&jQuery.connection.webChatHub.server.salaAindaAtiva(a)})}function registerEvents(e){jQuery("#txtPrivateMessage").on("keyup",function(a){if(13==a.keyCode){var i=jQuery("#txtPrivateMessage").val();i.length>0&&(e.server.enviarMensagem(idsala,i),jQuery("#txtPrivateMessage").val(""))}}),jQuery("#btnSendMessage").click(function(){var a=jQuery("#txtPrivateMessage").val();jQuery("#txtPrivateMessage").val(""),e.server.enviarMensagem(idsala,a)})}function registerClientMethods(e){e?(e.client.setarImagemLocal=function(e){setarImagemLocal(e)},e.client.setarImagemSrv=function(e){setarImagemSrv(e)},e.client.validarUsuarioConectado=function(){e.server.conectarUsuarioWordPress(user,email,tel)},e.client.setarNomeUsuario=function(e){user=e,jQuery("#chatBoxGeral").hasClass("active")||jQuery("#chatBoxGeral").addClass("active")},e.client.atualizarStatusSala=function(a,i){"Aguarde"!=i?(jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").hide(500),jQuery("#chatinfo").show(500),idsala=a,jQuery("#nomeTecnico").html(i),null!=msgInicial&&e.server.enviarMensagem(idsala,msgInicial),setCookie("wschat-id",idsala,1)):jQuery("#nowLoading").hide()&&(jQuery("#Mensagens").html(""),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").show(500),jQuery("#infoUsuario").hide(500))},e.client.addMensagem=function(e,a,i,n,o,t){adicionarMensagem(e,a,i,n,o,t)}):console.log("[ERRO] - Não foi possível conectar ao chat")}function setarImagemLocal(e){srcImgLocal=e}function setarImagemSrv(e){srcImgServer=e}function adicionarMensagemEsquerda(e,a,i,n,o){var t='<div class="left"><span class="message-date"><small>'+o+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(t)}function adicionarMensagemDireita(e,a,i,n,o){var t='<div class="right"><span class="message-date"><small>'+o+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(t)}function adicionarMensagem(e,a,i,n,o,t){"W"==t?adicionarMensagemDireita(a,i,o,e,n):adicionarMensagemEsquerda(a,i,o,e,n),scrollChat(e)}function notifyMe(e,a,i){if(!Notification)return void console.error("Notificações de Desktop do Google Chrome estão desativadas! Tente novamente.");if("granted"!==Notification.permission)Notification.requestPermission();else{var n=new Notification(e,{icon:"framework/admin/images/chrome_notify.png",body:a});n.onclick=function(){window.open(i)}}}function setCookie(e,a,i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var o="expires="+n.toUTCString();document.cookie=e+"="+a+"; "+o}function getCookie(e){for(var a=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var o=i[n];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(a))return o.substring(a.length,o.length)}return""}var gTotalStyles=0,idsala,srcImgLocal,srcImgServer,user="",tel,email,msgInicial,tokenEmpresa="",height=0;jQuery(document).ready(function(){conectarSignalR(),jQuery("#btnIniciarChat").click(function(){var e=1;jQuery("#mensagemInicial").val()||(jQuery("#mensagemInicial").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#mensagemInicial").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtNomeUsuario").val()||(jQuery("#txtNomeUsuario").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtNomeUsuario").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtTelefone").val()||(jQuery("#txtTelefone").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtTelefone").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtEmail").val()||(jQuery("#txtEmail").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtEmail").removeClass("campoobrigatorio")},4e3),e=0),0!=e&&(registrarUserWordpress(jQuery("#txtNomeUsuario").val(),jQuery("#txtTelefone").val(),jQuery("#txtEmail").val(),jQuery("#mensagemInicial").val(),jQuery("#tokenEmp").val()),jQuery("#infoUsuario").hide(500),jQuery("#nowLoading").show(500))}),scrollChat=function(e){height+=parseInt(jQuery("#Mensagens").height()),height+="",jQuery("#Mensagens").animate({scrollTop:height})},jQuery("#chatbox").fadeIn(1e3)}),document.addEventListener("DOMContentLoaded",function(){"granted"!==Notification.permission&&Notification.requestPermission()});
     1function setarToken(e){tokenEmpresa=e}function registrarUserWordpress(e,a,i,r,n){user=e,tel=a,email=i,msgInicial=r,tokenEmpresa=n,jQuery.connection.webChatHub.server.conectarUsuarioWordPress(tokenEmpresa,"",user,tel,email)}function conectarSignalR(){var e=new Date,a=CryptoJS.AES.encrypt(e.toString()+"LukeImYourFather",key,{iv:iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}),i=CryptoJS.AES.encrypt(e.toString(),key,{iv:iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});jQuery.connection.hub.url="https://web.brainytalk.com/signalr";var r=jQuery.connection.webChatHub;jQuery.connection.hub.qs={AuthorizationToken:a.toString(),AuthorizationValue:i.toString()},registerClientMethods(r),jQuery.connection.hub.start().done(function(){registerEvents(r);var e=getCookie("wschat-id");null!=e&&jQuery.connection.webChatHub.server.haAlguemLogado(jQuery("#tokenEmp").val()),jQuery.connection.webChatHub.server.salaAindaAtiva(e)})}function registerEvents(e){jQuery("#txtPrivateMessage").on("keyup",function(a){if(13==a.keyCode){var i=jQuery("#txtPrivateMessage").val();i.length>0&&(e.server.enviarMensagem(idsala,i),jQuery("#txtPrivateMessage").val(""))}}),jQuery("#btnSendMessage").click(function(){var a=jQuery("#txtPrivateMessage").val();jQuery("#txtPrivateMessage").val(""),e.server.enviarMensagem(idsala,a)}),jQuery("#btnSendEmail").click(function(){var a=jQuery("#mensagemInicialEnvio").val(),i=jQuery("#txtNomeUsuarioEnvio").val(),r=jQuery("#txtEmailEnvio").val();e.server.enviarEmail(jQuery("#tokenEmp").val(),i,r,a),jQuery("#infoEmail").hide(500),jQuery("#emailEnviado").show(500)})}function registerClientMethods(e){e?(e.client.setarImagemLocal=function(e){setarImagemLocal(e)},e.client.setarImagemSrv=function(e){setarImagemSrv(e)},e.client.validarUsuarioConectado=function(){e.server.conectarUsuarioWordPress(user,email,tel)},e.client.setarNomeUsuario=function(e){user=e,jQuery("#chatBoxGeral").hasClass("active")||jQuery("#chatBoxGeral").addClass("active")},e.client.habilitarEnvioEmail=function(){jQuery("#infoEmail").show(500),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").hide(500)},e.client.desabilitarEnvioEmail=function(){jQuery("#infoEmail").hide(500),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").show(500)},e.client.atualizarStatusSala=function(a,i){"Aguarde"!=i?(jQuery("#nowLoading").hide(500),jQuery("#infoUsuario").hide(500),jQuery("#chatinfo").show(500),idsala=a,jQuery("#nomeTecnico").html(i),null!=msgInicial&&(e.server.enviarMensagem(idsala,msgInicial),msgInicial=null),setCookie("wschat-id",idsala,1)):jQuery("#nowLoading").hide()&&(jQuery("#Mensagens").html(""),jQuery("#chatinfo").hide(500),jQuery("#nowLoading").show(500),jQuery("#infoUsuario").hide(500))},e.client.addMensagem=function(e,a,i,r,n,o){adicionarMensagem(e,a,i,r,n,o)}):console.log("[ERRO] - Não foi possível conectar ao chat")}function setarImagemLocal(e){srcImgLocal=e}function setarImagemSrv(e){srcImgServer=e}function adicionarMensagemEsquerda(e,a,i,r,n){var o='<div class="left"><span class="message-date"><small>'+n+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(o)}function adicionarMensagemDireita(e,a,i,r,n){var o='<div class="right"><span class="message-date"><small>'+n+'</small></span><div class="message"><span>'+a+"</span></div></div>";jQuery("#Mensagens").append(o)}function adicionarMensagem(e,a,i,r,n,o){"W"==o?adicionarMensagemDireita(a,i,n,e,r):adicionarMensagemEsquerda(a,i,n,e,r),scrollChat(e)}function setCookie(e,a,i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3);var n="expires="+r.toUTCString();document.cookie=e+"="+a+"; "+n}function getCookie(e){for(var a=e+"=",i=document.cookie.split(";"),r=0;r<i.length;r++){for(var n=i[r];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(a))return n.substring(a.length,n.length)}return""}var gTotalStyles=0,idsala,srcImgLocal,srcImgServer,user="",tel,email,msgInicial,tokenEmpresa="",height=0,key=CryptoJS.enc.Utf8.parse("Luke...ImYourFatherNOOOOOOOOOOOO"),iv=CryptoJS.enc.Utf8.parse("LukeImYourFather");jQuery(document).ready(function(){conectarSignalR(),jQuery("#btnIniciarChat").click(function(){var e=1;jQuery("#mensagemInicial").val()||(jQuery("#mensagemInicial").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#mensagemInicial").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtNomeUsuario").val()||(jQuery("#txtNomeUsuario").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtNomeUsuario").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtTelefone").val()||(jQuery("#txtTelefone").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtTelefone").removeClass("campoobrigatorio")},4e3),e=0),jQuery("#txtEmail").val()||(jQuery("#txtEmail").addClass("campoobrigatorio"),setTimeout(function(){jQuery("#txtEmail").removeClass("campoobrigatorio")},4e3),e=0),0!=e&&(registrarUserWordpress(jQuery("#txtNomeUsuario").val(),jQuery("#txtTelefone").val(),jQuery("#txtEmail").val(),jQuery("#mensagemInicial").val(),jQuery("#tokenEmp").val()),jQuery("#infoUsuario").hide(500),jQuery("#nowLoading").show(500))}),scrollChat=function(e){height+=parseInt(jQuery("#Mensagens").height()),jQuery("#Mensagens").animate({scrollTop:height},1)},jQuery("#chatbox").fadeIn(1e3)});
  • brainytalk-chat/trunk/brainytalk-chat.php

    r1457299 r1459339  
    66Domain Path: /langs
    77Description: Plugin de chat integrado para uso com o sistema BrainyTalk
    8 Version: 1.1.4
     8Version: 1.1.5
    99Author: BrainyTalk
    1010Author URI: https://brainytalk.com
  • brainytalk-chat/trunk/readme.txt

    r1457299 r1459339  
    7171* Correção de bugs, melhorias gerais
    7272
     73= 1.1.5 =
     74* Correções de Bugs
     75
    7376== Upgrade Notice ==
    7477
     
    109112* Correção de bugs, melhorias gerais
    110113
     114= 1.1.5 =
     115* Correções de Bugs
Note: See TracChangeset for help on using the changeset viewer.