summaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorIván Eixarch <miao.org@gmail.com>2012-11-23 22:57:05 +0100
committerIván Eixarch <miao.org@gmail.com>2012-11-23 22:57:05 +0100
commit0250f8d55c4c57d623cc201c7c774755e7b0d6ae (patch)
treed38b9648eb710b5492c43d18fe54f7e6f8b0a246 /src/static
parentcc60b82a6ef3dda7a8c89dc8083bd5204bb99f48 (diff)
parent1899e3f48d4bd15cd5440190f96e054b6244be29 (diff)
downloadetherpad-lite-0250f8d55c4c57d623cc201c7c774755e7b0d6ae.zip
Merge remote branch 'ether/develop'
Diffstat (limited to 'src/static')
-rw-r--r--src/static/js/AttributePool.js2
-rw-r--r--src/static/js/ace2_inner.js2
-rw-r--r--src/static/js/l10n.js4
-rw-r--r--src/static/js/pad.js2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/static/js/AttributePool.js b/src/static/js/AttributePool.js
index f5990c07..96ea9b0d 100644
--- a/src/static/js/AttributePool.js
+++ b/src/static/js/AttributePool.js
@@ -3,7 +3,7 @@
* 90% of the code is still like in the original Etherpad
* Look at https://github.com/ether/pad/blob/master/infrastructure/ace/www/easysync2.js
* You can find a explanation what a attribute pool is here:
- * https://github.com/Pita/etherpad-lite/blob/master/doc/easysync/easysync-notes.txt
+ * https://github.com/ether/etherpad-lite/blob/master/doc/easysync/easysync-notes.txt
*/
/*
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js
index 2e56b950..661ea011 100644
--- a/src/static/js/ace2_inner.js
+++ b/src/static/js/ace2_inner.js
@@ -3266,7 +3266,7 @@ function Ace2Inner(){
}
}
//hide the dropdownso
- if(window.parent.parent.padeditbar){ // required in case its in an iframe should probably use parent.. See Issue 327 https://github.com/Pita/etherpad-lite/issues/327
+ if(window.parent.parent.padeditbar){ // required in case its in an iframe should probably use parent.. See Issue 327 https://github.com/ether/etherpad-lite/issues/327
window.parent.parent.padeditbar.toggleDropDown("none");
}
}
diff --git a/src/static/js/l10n.js b/src/static/js/l10n.js
index 1d232908..ef8218d3 100644
--- a/src/static/js/l10n.js
+++ b/src/static/js/l10n.js
@@ -902,7 +902,7 @@ document.webL10n = (function(window, document, undefined) {
// browser-specific startup
if (document.addEventListener) { // modern browsers and IE9+
document.addEventListener('DOMContentLoaded', function() {
- var lang = document.documentElement.lang || navigator.language;
+ var lang = document.documentElement.lang || navigator.language || navigator.userLanguage || 'en';
loadLocale(lang, translateFragment);
}, false);
} else if (window.attachEvent) { // IE8 and before (= oldIE)
@@ -977,7 +977,7 @@ document.webL10n = (function(window, document, undefined) {
// startup for IE<9
window.attachEvent('onload', function() {
gTextProp = document.body.textContent ? 'textContent' : 'innerText';
- var lang = document.documentElement.lang || window.navigator.userLanguage;
+ var lang = document.documentElement.lang || navigator.language || navigator.userLanguage || 'en';
loadLocale(lang, translateFragment);
});
}
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index b665c2fb..34f2a287 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -310,7 +310,7 @@ function handshake()
}
else if(obj.accessStatus == "wrongPassword")
{
- $("#editorloadingbox").html("<b>You're password was wrong</b><br>" +
+ $("#editorloadingbox").html("<b>Your password was wrong</b><br>" +
"<input id='passwordinput' type='password' name='password'>"+
"<button type='button' onclick=\"" + padutils.escapeHtml('require('+JSON.stringify(module.id)+").savePassword()") + "\">ok</button>");
}