Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfnuesse <felix.nuesse@t-online.de>2018-06-27 01:35:28 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-12 17:49:38 +0300
commit55ebdc9344dc8edb665491bf89595f406cfc4d62 (patch)
tree23bdc47aea07adf307dc70718d427acb17eb3e92 /apps/files/js/tagsplugin.js
parent9b914bd68dc53d5fe5ac98e9bbeb3b8da436096e (diff)
Fix collapsible-Button when list was emptied (or got first element)
Signed-off-by: fnuesse <felix.nuesse@t-online.de> Fixed Bad url-generation in javascript for new quickaccessitems Signed-off-by: fnuesse <felix.nuesse@t-online.de> Fixed vertical scrolling in sortable-list which leads to "hidden" navbar Signed-off-by: fnuesse <felix.nuesse@t-online.de> Removed unnessessary console logs Signed-off-by: fnuesse <felix.nuesse@t-online.de> Fixed Bounds in custom sorting Signed-off-by: fnuesse <felix.nuesse@t-online.de> Reformatted code Signed-off-by: fnuesse <felix.nuesse@t-online.de> Fixed horizontalscroll on sortable-list Fixed "stuck element" where you could not switch back to the original ordering in the sortable-list Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'apps/files/js/tagsplugin.js')
-rw-r--r--apps/files/js/tagsplugin.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js
index 7729a540d32..853874f4e83 100644
--- a/apps/files/js/tagsplugin.js
+++ b/apps/files/js/tagsplugin.js
@@ -82,9 +82,9 @@
}
if (listULElements.childElementCount === 0) {
- var collapsibleButton = document.getElementById(collapsibleButtonId);
+ var collapsibleButton = document.getElementById("button-collapse-favorites");
collapsibleButton.style.display = 'none';
- $("#favorites-toggle").removeClass('collapsible');
+ $("#button-collapse-parent-favorites").removeClass('collapsible');
}
}
@@ -102,13 +102,13 @@
var appName = appfolder.substring(appfolder.lastIndexOf("/") + 1, appfolder.length);
var innerTagA = document.createElement('A');
- innerTagA.setAttribute("href", "/cloud/index.php/apps/files/?dir=" + appfolder);
+ innerTagA.setAttribute("href", OC.generateUrl('/apps/files/?dir=') + appfolder);
innerTagA.setAttribute("class", "nav-icon-files svg");
innerTagA.innerHTML = appName;
var length = listLIElements.length + 1;
var innerTagLI = document.createElement('li');
- innerTagLI.setAttribute("data-id", "/cloud/index.php/apps/files/?dir=" + appfolder);
+ innerTagLI.setAttribute("data-id", OC.generateUrl('/apps/files/?dir=') + appfolder);
innerTagLI.setAttribute("class", "nav-" + appName);
innerTagLI.setAttribute("folderpos", length.toString());
innerTagLI.appendChild(innerTagA);
@@ -119,7 +119,7 @@
var collapsibleButton = document.getElementById(collapsibleButtonId);
collapsibleButton.style.display = '';
- $("#favorites-toggle").addClass('collapsible');
+ $("#button-collapse-parent-favorites").addClass('collapsible');
} else {
listLIElements[listLIElements.length - 1].after(innerTagLI);
}