Fix external storage UI for Admin page
This commit is contained in:
parent
1ccbbfad53
commit
31bba86e87
4 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ OC.MountConfig={
|
|||
}
|
||||
});
|
||||
if (addMountPoint) {
|
||||
if ($('#externalStorage').data('admin')) {
|
||||
if ($('#externalStorage').data('admin') === true) {
|
||||
var isPersonal = false;
|
||||
var multiselect = $(tr).find('.chzn-select').val();
|
||||
var oldGroups = $(tr).find('.applicable').data('applicable-groups');
|
||||
|
@ -117,7 +117,7 @@ $(document).ready(function() {
|
|||
if (mountPoint == '') {
|
||||
return false;
|
||||
}
|
||||
if ($('#externalStorage').data('admin')) {
|
||||
if ($('#externalStorage').data('admin') === true) {
|
||||
var isPersonal = false;
|
||||
var multiselect = $(tr).find('.chzn-select').val();
|
||||
$.each(multiselect, function(index, value) {
|
||||
|
|
|
@ -26,7 +26,7 @@ $backends = OC_Mount_Config::getBackends();
|
|||
// Remove local storage
|
||||
unset($backends['OC_Filestorage_Local']);
|
||||
$tmpl = new OCP\Template('files_external', 'settings');
|
||||
$tmpl->assign('isAdminPage', false);
|
||||
$tmpl->assign('isAdminPage', false, false);
|
||||
$tmpl->assign('mounts', OC_Mount_Config::getPersonalMountPoints());
|
||||
$tmpl->assign('backends', $backends);
|
||||
return $tmpl->fetchPage();
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
OCP\Util::addScript('files_external', 'settings');
|
||||
OCP\Util::addStyle('files_external', 'settings');
|
||||
$tmpl = new OCP\Template('files_external', 'settings');
|
||||
$tmpl->assign('isAdminPage', true);
|
||||
$tmpl->assign('isAdminPage', true, false);
|
||||
$tmpl->assign('mounts', OC_Mount_Config::getSystemMountPoints());
|
||||
$tmpl->assign('backends', OC_Mount_Config::getBackends());
|
||||
$tmpl->assign('groups', OC_Group::getGroups());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<form id="files_external">
|
||||
<fieldset class="personalblock">
|
||||
<legend><strong><?php echo $l->t('External Storage'); ?></strong></legend>
|
||||
<table id="externalStorage" data-admin="<?php echo json_encode($_['isAdminPage']); ?>">
|
||||
<table id="externalStorage" data-admin='<?php echo json_encode($_['isAdminPage']); ?>'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $l->t('Mount point'); ?></th>
|
||||
|
|
Loading…
Reference in a new issue