|
|
@ -30,7 +30,7 @@ define([
|
|
|
|
editable: false,
|
|
|
|
editable: false,
|
|
|
|
Cryptpad: Cryptpad,
|
|
|
|
Cryptpad: Cryptpad,
|
|
|
|
loggedIn: Cryptpad.isLoggedIn(),
|
|
|
|
loggedIn: Cryptpad.isLoggedIn(),
|
|
|
|
mobile: $('body').width() <= 600 // Menu and content area are not inline-block anymore for mobiles
|
|
|
|
mobile: function () { return $('body').width() <= 600; } // Menu and content area are not inline-block anymore for mobiles
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var stringify = APP.stringify = function (obj) {
|
|
|
|
var stringify = APP.stringify = function (obj) {
|
|
|
@ -801,7 +801,7 @@ define([
|
|
|
|
if (!path || path.length === 0) { return; }
|
|
|
|
if (!path || path.length === 0) { return; }
|
|
|
|
var isTrash = filesOp.isPathInTrash(path);
|
|
|
|
var isTrash = filesOp.isPathInTrash(path);
|
|
|
|
var $title = $('<span>', {'class': 'path unselectable'});
|
|
|
|
var $title = $('<span>', {'class': 'path unselectable'});
|
|
|
|
if (APP.mobile) {
|
|
|
|
if (APP.mobile()) {
|
|
|
|
return $title;
|
|
|
|
return $title;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
path.forEach(function (p, idx) {
|
|
|
|
path.forEach(function (p, idx) {
|
|
|
@ -1170,7 +1170,7 @@ define([
|
|
|
|
var $toolbar = $driveToolbar;
|
|
|
|
var $toolbar = $driveToolbar;
|
|
|
|
$toolbar.html('');
|
|
|
|
$toolbar.html('');
|
|
|
|
var $leftside = $('<div>', {'class': 'leftside'}).appendTo($toolbar);
|
|
|
|
var $leftside = $('<div>', {'class': 'leftside'}).appendTo($toolbar);
|
|
|
|
if (!APP.mobile) {
|
|
|
|
if (!APP.mobile()) {
|
|
|
|
$leftside.width($tree.width());
|
|
|
|
$leftside.width($tree.width());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var $rightside = $('<div>', {'class': 'rightside'}).appendTo($toolbar);
|
|
|
|
var $rightside = $('<div>', {'class': 'rightside'}).appendTo($toolbar);
|
|
|
@ -1339,7 +1339,7 @@ define([
|
|
|
|
var $modeButton = createViewModeButton().appendTo($toolbar.find('.rightside'));
|
|
|
|
var $modeButton = createViewModeButton().appendTo($toolbar.find('.rightside'));
|
|
|
|
var $title = createTitle(path).appendTo($toolbar.find('.rightside'));
|
|
|
|
var $title = createTitle(path).appendTo($toolbar.find('.rightside'));
|
|
|
|
|
|
|
|
|
|
|
|
if (APP.mobile) {
|
|
|
|
if (APP.mobile()) {
|
|
|
|
var $context = $('<button>', {'class': 'element right dropdown-bar', id: 'contextButton'});
|
|
|
|
var $context = $('<button>', {'class': 'element right dropdown-bar', id: 'contextButton'});
|
|
|
|
$context.append($('<span>', {'class': 'fa fa-caret-down'}));
|
|
|
|
$context.append($('<span>', {'class': 'fa fa-caret-down'}));
|
|
|
|
$context.appendTo($toolbar.find('.rightside'));
|
|
|
|
$context.appendTo($toolbar.find('.rightside'));
|
|
|
@ -1822,7 +1822,7 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$iframe.find('#tree').mousedown(function (e) {
|
|
|
|
$iframe.find('#tree').mousedown(function (e) {
|
|
|
|
if (APP.mobile) { return; }
|
|
|
|
if (APP.mobile()) { return; }
|
|
|
|
if (APP.resizeTree) { return; }
|
|
|
|
if (APP.resizeTree) { return; }
|
|
|
|
APP.resizeTree = window.setInterval(function () {
|
|
|
|
APP.resizeTree = window.setInterval(function () {
|
|
|
|
$driveToolbar.find('.leftside').width($tree.width());
|
|
|
|
$driveToolbar.find('.leftside').width($tree.width());
|
|
|
|