summaryrefslogtreecommitdiff
path: root/src/static/js/pad.js
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2012-05-29 21:26:12 +0200
committerEgil Moeller <egil.moller@freecode.no>2012-05-29 21:26:12 +0200
commit15a7d24450710285e5d28c89d57b6d661d21c21e (patch)
treee0d7677bad9539b5f59ead8bc5538ad758cdd1be /src/static/js/pad.js
parentfc946ffc33dfc7b184539417617c0338a1d0aa66 (diff)
parentdfd81b79d48d50e35bf794ce1f5d3a412e68706e (diff)
downloadetherpad-lite-15a7d24450710285e5d28c89d57b6d661d21c21e.zip
Merge branch 'master' into timeslider-realtimeupdate+readonly-pads
Conflicts: src/node/handler/PadMessageHandler.js src/static/css/pad.css src/templates/pad.html
Diffstat (limited to 'src/static/js/pad.js')
-rw-r--r--src/static/js/pad.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index c0c92d9c..df6342e2 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -30,7 +30,6 @@ require('./jquery');
require('./farbtastic');
require('./excanvas');
JSON = require('./json2');
-require('./undo-xpopup');
var chat = require('./chat').chat;
var getCollabClient = require('./collab_client').getCollabClient;
@@ -102,7 +101,6 @@ function getParams()
var showLineNumbers = params["showLineNumbers"];
var useMonospaceFont = params["useMonospaceFont"];
var IsnoColors = params["noColors"];
- var hideQRCode = params["hideQRCode"];
var rtl = params["rtl"];
var alwaysShowChat = params["alwaysShowChat"];
@@ -148,10 +146,6 @@ function getParams()
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.
settings.globalUserName = decodeURIComponent(userName);
}
- if(hideQRCode)
- {
- $('#qrcode').hide();
- }
if(rtl)
{
if(rtl == "true")
@@ -203,8 +197,7 @@ function handshake()
//create the url
var url = loc.protocol + "//" + loc.hostname + ":" + port + "/";
//find out in which subfolder we are
- var resource = exports.baseURL + "socket.io";
-
+ var resource = exports.baseURL.substring(1) + "socket.io";
//connect
socket = pad.socket = io.connect(url, {
resource: resource,
@@ -697,13 +690,6 @@ var pad = {
paduserlist.removeGuestPrompt(msg.guestId);
}
},
- editbarClick: function(cmd)
- {
- if (padeditbar)
- {
- padeditbar.toolbarClick(cmd);
- }
- },
dmesg: function(m)
{
if (pad.getIsDebugEnabled())
@@ -1033,7 +1019,6 @@ var settings = {
, noColors: false
, useMonospaceFontGlobal: false
, globalUserName: false
-, hideQRCode: false
, rtlIsTrue: false
};