diff --git a/src/messenger/webim/js/compiled/invite.js b/src/messenger/webim/js/compiled/invite.js deleted file mode 100644 index ddf2b627..00000000 --- a/src/messenger/webim/js/compiled/invite.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - Copyright 2005-2013 the original author or authors. - - Licensed under the Apache License, Version 2.0 (the "License"). - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -*/ -var style=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(style);window.createPopup||(style.appendChild(document.createTextNode("")),style.setAttribute("type","text/css"));var sheet=document.styleSheets[document.styleSheets.length-1];if(window.createPopup)sheet.cssText=mibewInviteStyle;else{var node=document.createTextNode(mibewInviteStyle);style.appendChild(node)} -function mibewInviteOnResponse(a){var c=a.invitation.message,b=a.invitation.operator,d=a.invitation.avatar;a='
'; -if(c=document.getElementById("mibewinvitation"))c.innerHTML=a}function mibewHideInvitation(){document.getElementById("mibewinvitationpopup")&&(document.getElementById("mibewinvitationpopup").style.display="none")}function mibewOpenAgent(){document.getElementById("mibewAgentButton")&&(document.getElementById("mibewAgentButton").onclick(),mibewHideInvitation())}; diff --git a/src/messenger/webim/js/compiled/request.js b/src/messenger/webim/js/compiled/request.js deleted file mode 100644 index 0a7b5f95..00000000 --- a/src/messenger/webim/js/compiled/request.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - Copyright 2005-2013 the original author or authors. - - Licensed under the Apache License, Version 2.0 (the "License"). - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 -*/ -var mibewRequestedScripts=[],mibewHandlers=[],mibewHandlersDependences=[];function mibewMakeRequest(){var a=mibewReadCookie(mibewVisitorCookieName);mibewDoLoadScript(mibewRequestUrl+"&rnd="+Math.random()+(!1!==a?"&user_id="+a:""),"responseScript")} -function mibewOnResponse(a){var b=a.load,c=a.handlers,d=a.data;a=a.dependences;for(id in b)b[id]in mibewRequestedScripts||(mibewRequestedScripts[id]=[],mibewRequestedScripts[id].url=b[id],mibewRequestedScripts[id].status="loading",mibewLoadScript(id));for(handler in a)handler in mibewHandlersDependences||(mibewHandlersDependences[handler]=a[handler]);for(b=0;b'+b+"
")+'';if(b=document.getElementById("mibewinvitation"))b.innerHTML=a};b.Invitation={};b.Invitation.hide=function(){var a=document.getElementById("mibewinvitationpopup");a&&(a.style.display="none")};b.Invitation.accept=function(){document.getElementById("mibewAgentButton")&& +(document.getElementById("mibewAgentButton").onclick(),b.Invitation.hide())}})(Mibew); diff --git a/src/messenger/webim/js/source/invite.js b/src/messenger/webim/js/source/invite.js deleted file mode 100644 index b9b5d925..00000000 --- a/src/messenger/webim/js/source/invite.js +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @preserve Copyright 2005-2013 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ - -var style = document.createElement('style'); -document.getElementsByTagName('head')[0].appendChild(style); - -if (!window.createPopup) { - style.appendChild(document.createTextNode('')); - style.setAttribute("type", "text/css"); -} - -var sheet = document.styleSheets[document.styleSheets.length - 1]; -if (!window.createPopup) { - var node = document.createTextNode(mibewInviteStyle); - style.appendChild(node); -} else { - sheet.cssText = mibewInviteStyle; -} - -function mibewInviteOnResponse(response) -{ - var message = response.invitation.message; - var operator = response.invitation.operator; - var avatar = response.invitation.avatar; - - var popuptext = '' + message + '
'; - popuptext += '' + + message + + '
'; + popuptext += '