|
|
@ -50,17 +50,6 @@ define([
|
|
|
|
allowFolderUpload: File.prototype.hasOwnProperty("webkitRelativePath"),
|
|
|
|
allowFolderUpload: File.prototype.hasOwnProperty("webkitRelativePath"),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$(window).keydown(function (e) {
|
|
|
|
|
|
|
|
if (e.which === 70 && e.ctrlKey) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
|
|
if (APP.displayDirectory) {
|
|
|
|
|
|
|
|
APP.displayDirectory([SEARCH]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var stringify = function (obj) {
|
|
|
|
var stringify = function (obj) {
|
|
|
|
return JSONSortify(obj);
|
|
|
|
return JSONSortify(obj);
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -164,6 +153,17 @@ define([
|
|
|
|
var localStore = window.cryptpadStore;
|
|
|
|
var localStore = window.cryptpadStore;
|
|
|
|
APP.store = {};
|
|
|
|
APP.store = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(window).keydown(function (e) {
|
|
|
|
|
|
|
|
if (e.which === 70 && e.ctrlKey) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
|
|
if (APP.displayDirectory) {
|
|
|
|
|
|
|
|
APP.displayDirectory([SEARCH]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var makeLS = function (teamId) {
|
|
|
|
var makeLS = function (teamId) {
|
|
|
|
var suffix = teamId ? ('-' + teamId) : '';
|
|
|
|
var suffix = teamId ? ('-' + teamId) : '';
|
|
|
|
var LS_LAST = "app-drive-lastOpened" + suffix;
|
|
|
|
var LS_LAST = "app-drive-lastOpened" + suffix;
|
|
|
|