|
@@ -2007,7 +2007,6 @@ function settingsAPI(post, callbacks=null){
|
|
|
orgErrorAlert('<h4>' + e + '</h4>' + formatDebug(data));
|
|
orgErrorAlert('<h4>' + e + '</h4>' + formatDebug(data));
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- //console.log(response);
|
|
|
|
|
message(post.messageTitle,post.messageBody,activeInfo.settings.notifications.position,"#FFF","success","5000");
|
|
message(post.messageTitle,post.messageBody,activeInfo.settings.notifications.position,"#FFF","success","5000");
|
|
|
if(callbacks){ callbacks.fire(); }
|
|
if(callbacks){ callbacks.fire(); }
|
|
|
}).fail(function(xhr) {
|
|
}).fail(function(xhr) {
|
|
@@ -3152,6 +3151,11 @@ function submitHomepageOrder(){
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
function submitTabOrder(newTabs){
|
|
function submitTabOrder(newTabs){
|
|
|
|
|
+ $.each(newTabs.tab, function(i,v) {
|
|
|
|
|
+ if(v.originalOrder == v.order){
|
|
|
|
|
+ delete newTabs.tab[i];
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
var post = {
|
|
var post = {
|
|
|
action:'changeOrder',
|
|
action:'changeOrder',
|
|
|
api:'api/?v1/settings/tab/editor/tabs',
|
|
api:'api/?v1/settings/tab/editor/tabs',
|
|
@@ -3701,6 +3705,7 @@ function organizrAPI(type,path,data=null){
|
|
|
return $.ajax({
|
|
return $.ajax({
|
|
|
url:path,
|
|
url:path,
|
|
|
method:"POST",
|
|
method:"POST",
|
|
|
|
|
+ async: false,
|
|
|
beforeSend: function(request) {
|
|
beforeSend: function(request) {
|
|
|
request.setRequestHeader("Token", activeInfo.token);
|
|
request.setRequestHeader("Token", activeInfo.token);
|
|
|
request.setRequestHeader("formKey", local('g','formKey'));
|
|
request.setRequestHeader("formKey", local('g','formKey'));
|