summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-06-04 19:11:04 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-06-05 11:26:24 +0200
commit844c6c33281cc7207dbb5e3196284db82c21bcbe (patch)
tree784bb339989f9f8bd8413f75d3e12939cc761ee7
parente0c4e960d9d1289c28dfbffde2fb9c1d30987f56 (diff)
downloadnextcloud-server-844c6c33281cc7207dbb5e3196284db82c21bcbe.tar.gz
nextcloud-server-844c6c33281cc7207dbb5e3196284db82c21bcbe.zip
use slide toggle for files app
-rw-r--r--apps/files/js/files.js8
-rw-r--r--apps/files/templates/appnavigation.php2
2 files changed, 2 insertions, 8 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 4549de57f3f..8d871d6dac6 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -279,13 +279,7 @@
}
}
- $('#app-settings-header').on('click', function() {
- var $settings = $('#app-settings');
- $settings.toggleClass('opened');
- if ($settings.hasClass('opened')) {
- $settings.find('input').focus();
- }
- });
+
$('#webdavurl').on('click', function () {
$('#webdavurl').select();
});
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index 86436bbe8c4..3591d0199b0 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -6,7 +6,7 @@
</ul>
<div id="app-settings">
<div id="app-settings-header">
- <button class="settings-button"></button>
+ <button class="settings-button" data-apps-slide-toggle="#app-settings-content"></button>
</div>
<div id="app-settings-content">
<h2><?php p($l->t('WebDAV'));?></h2>