Commit 0ad23f56 by lyhuang

mv connecSocket in get method

parent 7ff99d51
Showing with 2 additions and 2 deletions
......@@ -4,7 +4,7 @@
function connectSocket(sipPhoneName){
// var url = "ws://192.168.10.5:8080/websocket/";
var url = "ws://112.65.124.86:8080/websocket/834338";
//url +=sipPhoneName;
url +=sipPhoneName;
// alert("url:"+url);
// var timestamp=Date.parse(new Date());
if(webSocket==null){
......@@ -60,8 +60,8 @@
vhtml = '<a href="#" data-toggle="modal" data-target="#bindModal">绑定座机</a>';
}
$(".navbar .pull-right .dropdown").html(vhtml);
connectSocket(sipPhoneName);
});
connectSocket(sipPhoneName);
});
$('#bindModal').on('show.bs.modal', function (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment