Skip to content
Snippets Groups Projects
Commit b20b30b6 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

Implement a basic versioning configuration. Only a on/off switch for now.

I changed my mind about the more complex configuration options. We go with good default for now and don´t expose all the technical options to the users.
They can still override in the config file if it´s really really needed and they know what they are doing
parent 04c6582a
Branches
No related tags found
Loading
$(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(){
// Add history button to files/index.php
......
<form id="external">
<form id="versions">
<fieldset class="personalblock">
<strong>Versions</strong><br />
Configuration goes here...
<input type="checkbox" name="versions" id="versions" value="1" <?php if (OC_Config::getValue('versions', 'true')=='true') echo ' checked="checked"'; ?> /> <label for="versions"><?php echo $l->t('Enable Files Versioning'); ?></label> <br/>
</fieldset>
</form>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment