remove unused webODF unstable setting
This commit is contained in:
parent
c406216116
commit
a32c1e2be3
@ -42,7 +42,6 @@ $application->registerRoutes($this, [
|
||||
['name' => 'document#wopiPutFile', 'url' => 'wopi/files/{fileId}/contents', 'verb' => 'POST'],
|
||||
//settings
|
||||
['name' => 'settings#savePersonal', 'url' => 'ajax/personal.php', 'verb' => 'POST'],
|
||||
['name' => 'settings#setUnstable', 'url' => 'ajax/config/unstable', 'verb' => 'POST'],
|
||||
['name' => 'settings#setSettings', 'url' => 'ajax/admin.php', 'verb' => 'POST'],
|
||||
['name' => 'settings#getSupportedMimes', 'url' => 'ajax/mimes.php', 'verb' => 'GET'],
|
||||
]
|
||||
|
@ -105,7 +105,6 @@ class DocumentController extends Controller{
|
||||
$wopiRemote = $this->settings->getAppValue('richdocuments', 'wopi_url');
|
||||
$response = new TemplateResponse('richdocuments', 'documents', [
|
||||
'enable_previews' => $this->settings->getSystemValue('enable_previews', true),
|
||||
'useUnstable' => $this->settings->getAppValue('richdocuments', 'unstable', 'false'),
|
||||
'savePath' => $this->settings->getUserValue($this->uid, 'richdocuments', 'save_path', '/'),
|
||||
'uploadMaxFilesize' => $maxUploadFilesize,
|
||||
'uploadMaxHumanFilesize' => \OCP\Util::humanFileSize($maxUploadFilesize),
|
||||
|
@ -63,7 +63,6 @@ class SettingsController extends Controller{
|
||||
return new TemplateResponse(
|
||||
$this->appName,
|
||||
'settings',
|
||||
[ 'unstable' => $this->appConfig->getAppValue('unstable') ],
|
||||
'blank'
|
||||
);
|
||||
}
|
||||
@ -111,13 +110,6 @@ class SettingsController extends Controller{
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function setUnstable($unstable){
|
||||
if (!is_null($unstable)){
|
||||
$this->appConfig->setAppValue('unstable', $unstable);
|
||||
}
|
||||
return array('status' => 'success');
|
||||
}
|
||||
|
||||
public function setSettings($wopi_url){
|
||||
if (!is_null($wopi_url)){
|
||||
$this->appConfig->setAppValue('wopi_url', $wopi_url);
|
||||
|
@ -1,15 +0,0 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
var documentsSettings = {
|
||||
save : function() {
|
||||
var data = {
|
||||
unstable : $('#webodf-unstable').attr('checked')==="checked"
|
||||
};
|
||||
$.post(OC.generateUrl('apps/richdocuments/ajax/config/unstable'), data, documentsSettings.afterSave);
|
||||
},
|
||||
afterSave : function(){
|
||||
documentsMain.useUnstable = $('#webodf-unstable').attr('checked')==="checked";
|
||||
}
|
||||
};
|
||||
$('#webodf-unstable').change(documentsSettings.save);
|
||||
});
|
@ -16,8 +16,7 @@ use \OCP\IConfig;
|
||||
class AppConfig{
|
||||
private $appName = 'richdocuments';
|
||||
private $defaults = [
|
||||
'unstable' => 'false',
|
||||
'wopi_url' => 'htpp://localhost'
|
||||
'wopi_url' => 'http://localhost'
|
||||
];
|
||||
|
||||
private $config;
|
||||
|
@ -51,7 +51,6 @@ script('files', 'jquery.fileupload');
|
||||
</ul>
|
||||
</div>
|
||||
<input type="hidden" id="wopi-url" name="wopi-url" value="<?php p($_['wopi_url']) ?>" />
|
||||
<input type="hidden" id="webodf-unstable" value="<?php p($_['useUnstable']) ?>" />
|
||||
<?php if ($_['enable_previews']): ?>
|
||||
<input type="hidden" id="previews_enabled" value="<?php p($_['enable_previews']) ?>" />
|
||||
<?php endif; ?>
|
||||
|
@ -1,15 +0,0 @@
|
||||
<?php
|
||||
script('richdocuments', 'settings');
|
||||
?>
|
||||
<div id="documents" class="section">
|
||||
<h2><?php p($l->t('Documents')) ?></h2>
|
||||
<input id="webodf-unstable" type ="checkbox"
|
||||
<?php if ($_['unstable'] === 'true'){ ?>
|
||||
checked="checked"
|
||||
<?php } ?>
|
||||
/>
|
||||
<label for="webodf-unstable">
|
||||
<?php p($l->t('Advanced feature-set'))?>
|
||||
<?php p($l->t('(Unstable)')); ?>
|
||||
</label>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user