Remove jquery from outer

This commit is contained in:
yflory
2017-12-01 16:05:20 +01:00
parent c6b8bbea59
commit c59c6072f3
15 changed files with 54 additions and 410 deletions

View File

@@ -5,7 +5,6 @@ define([
'/common/common-hash.js',
'/common/common-messaging.js',
'/common/common-realtime.js',
'/common/common-language.js',
'/common/common-constants.js',
'/common/common-feedback.js',
'/common/outer/local-store.js',
@@ -15,7 +14,7 @@ define([
'/customize/application_config.js',
'/bower_components/nthen/index.js',
], function (Config, Messages, Util, Hash,
Messaging, Realtime, Language, Constants, Feedback, LocalStore, AStore,
Messaging, Realtime, Constants, Feedback, LocalStore, AStore,
Pinpad, AppConfig, Nthen) {
/* This file exposes functionality which is specific to Cryptpad, but not to
@@ -52,7 +51,9 @@ define([
return Messages._languageUsed;
};
common.setLanguage = function (l, cb) {
Language.setLanguage(l, null, cb);
var LS_LANG = "CRYPTPAD_LANG";
localStorage.setItem(LS_LANG, l);
cb();
};
@@ -743,10 +744,5 @@ define([
}());
// MAGIC that happens implicitly
/*$(function () {
Language.applyTranslation();
});*/
return common;
});