Move and fix app setting navigation detect
This commit is contained in:
parent
ab4ade0d24
commit
1bdd0c949b
|
@ -1,9 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$RUNTIME_NOAPPS = true;
|
|
||||||
|
|
||||||
require_once '../../lib/base.php';
|
|
||||||
|
|
||||||
OC_Util::checkAdminUser();
|
OC_Util::checkAdminUser();
|
||||||
OCP\JSON::callCheck();
|
OCP\JSON::callCheck();
|
||||||
|
|
|
@ -91,7 +91,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
||||||
return app;
|
return app;
|
||||||
},
|
},
|
||||||
removeNavigation: function(appid){
|
removeNavigation: function(appid){
|
||||||
$.getJSON(OC.filePath('core','ajax','navigationdetect.php'), {app: appid}).done(function(response){
|
$.getJSON(OC.filePath('settings', 'ajax', 'navigationdetect.php'), {app: appid}).done(function(response){
|
||||||
if(response.status === 'success'){
|
if(response.status === 'success'){
|
||||||
var navIds=response.nav_ids;
|
var navIds=response.nav_ids;
|
||||||
for(var i=0; i< navIds.length; i++){
|
for(var i=0; i< navIds.length; i++){
|
||||||
|
@ -101,7 +101,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addNavigation: function(appid){
|
addNavigation: function(appid){
|
||||||
$.getJSON(OC.filePath('core','ajax','navigationdetect.php'), {app: appid}).done(function(response){
|
$.getJSON(OC.filePath('settings', 'ajax', 'navigationdetect.php'), {app: appid}).done(function(response){
|
||||||
if(response.status === 'success'){
|
if(response.status === 'success'){
|
||||||
var navEntries=response.nav_entries;
|
var navEntries=response.nav_entries;
|
||||||
for(var i=0; i< navEntries.length; i++){
|
for(var i=0; i< navEntries.length; i++){
|
||||||
|
|
|
@ -51,6 +51,8 @@ $this->create('settings_ajax_enableapp', '/settings/ajax/enableapp.php')
|
||||||
->actionInclude('settings/ajax/enableapp.php');
|
->actionInclude('settings/ajax/enableapp.php');
|
||||||
$this->create('settings_ajax_disableapp', '/settings/ajax/disableapp.php')
|
$this->create('settings_ajax_disableapp', '/settings/ajax/disableapp.php')
|
||||||
->actionInclude('settings/ajax/disableapp.php');
|
->actionInclude('settings/ajax/disableapp.php');
|
||||||
|
$this->create('settings_ajax_navigationdetect', '/settings/ajax/navigationdetect.php')
|
||||||
|
->actionInclude('settings/ajax/navigationdetect.php');
|
||||||
// admin
|
// admin
|
||||||
$this->create('settings_ajax_getlog', '/settings/ajax/getlog.php')
|
$this->create('settings_ajax_getlog', '/settings/ajax/getlog.php')
|
||||||
->actionInclude('settings/ajax/getlog.php');
|
->actionInclude('settings/ajax/getlog.php');
|
||||||
|
|
Loading…
Reference in New Issue