remove admin settings for versions
This commit is contained in:
parent
f26c477433
commit
d9e75c2b92
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
|
||||
OCP\JSON::checkAppEnabled('files_versions');
|
||||
OCP\JSON::checkAdminUser();
|
||||
OCP\JSON::callCheck();
|
||||
if (OCP\Config::getSystemValue('versions', 'true')=='true') {
|
||||
OCP\Config::setSystemValue('versions', 'false');
|
||||
} else {
|
||||
OCP\Config::setSystemValue('versions', 'true');
|
||||
}
|
|
@ -1,13 +1,3 @@
|
|||
$(document).ready(function() {
|
||||
$('#versions').bind('change', function() {
|
||||
var checked = 1;
|
||||
if (!this.checked) {
|
||||
checked = 0;
|
||||
}
|
||||
$.post(OC.filePath('files_versions','ajax','togglesettings.php'), 'versions='+checked);
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
if (typeof FileActions !== 'undefined') {
|
||||
// Add history button to 'files/index.php'
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
<?php
|
||||
|
||||
OCP\User::checkAdminUser();
|
||||
|
||||
OCP\Util::addscript( 'files_versions', 'versions' );
|
||||
|
||||
$tmpl = new OCP\Template( 'files_versions', 'settings');
|
||||
|
||||
return $tmpl->fetchPage();
|
|
@ -1,9 +0,0 @@
|
|||
<form id="versionssettings">
|
||||
<fieldset class="personalblock">
|
||||
<legend><strong><?php echo $l->t('Files Versioning');?></strong></legend>
|
||||
<input type="checkbox" name="versions" id="versions" value="1"
|
||||
<?php if (OCP\Config::getSystemValue('versions', 'true')=='true')
|
||||
echo ' checked="checked"';
|
||||
?> /> <label for="versions"><?php echo $l->t('Enable'); ?></label> <br/>
|
||||
</fieldset>
|
||||
</form>
|
Loading…
Reference in New Issue