mirror of https://github.com/apache/archiva.git
use jquery cache selector
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1391463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
36dcc9959a
commit
08d17fd8dd
|
@ -598,8 +598,9 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
||||||
this.uiConfiguration=ko.observable(uiConfiguration);
|
this.uiConfiguration=ko.observable(uiConfiguration);
|
||||||
var self=this;
|
var self=this;
|
||||||
save=function(){
|
save=function(){
|
||||||
|
var mainContent=$("#main-content" );
|
||||||
$("#user-messages").html( mediumSpinnerImg());
|
$("#user-messages").html( mediumSpinnerImg());
|
||||||
$("#main-content" ).find("#ui-configuration-btn-save" ).button('loading');
|
mainContent.find("#ui-configuration-btn-save" ).button('loading');
|
||||||
$.ajax("restServices/archivaServices/archivaAdministrationService/setUiConfiguration", {
|
$.ajax("restServices/archivaServices/archivaAdministrationService/setUiConfiguration", {
|
||||||
type: "POST",
|
type: "POST",
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
|
@ -610,7 +611,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
||||||
},
|
},
|
||||||
complete: function(){
|
complete: function(){
|
||||||
removeMediumSpinnerImg("#user-messages");
|
removeMediumSpinnerImg("#user-messages");
|
||||||
$("#main-content" ).find("#ui-configuration-btn-save" ).button('reset');
|
mainContent.find("#ui-configuration-btn-save" ).button('reset');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -844,12 +845,13 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
||||||
this.organisationInformation=ko.observable(organisationInformation);
|
this.organisationInformation=ko.observable(organisationInformation);
|
||||||
|
|
||||||
this.save=function(){
|
this.save=function(){
|
||||||
if (!$("#main-content" ).find("#appearance-configuration-form-id").valid()) {
|
var mainContent=$("#main-content" );
|
||||||
|
if (!mainContent.find("#appearance-configuration-form-id").valid()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clearUserMessages();
|
clearUserMessages();
|
||||||
$("#user-messages" ).html(mediumSpinnerImg());
|
$("#user-messages" ).html(mediumSpinnerImg());
|
||||||
$("#main-content" ).find("#appearance-configuration-btn-save" ).button('loading');
|
mainContent.find("#appearance-configuration-btn-save" ).button('loading');
|
||||||
$.ajax("restServices/archivaServices/archivaAdministrationService/setOrganisationInformation", {
|
$.ajax("restServices/archivaServices/archivaAdministrationService/setOrganisationInformation", {
|
||||||
type: "POST",
|
type: "POST",
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -864,7 +866,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
||||||
},
|
},
|
||||||
complete: function(){
|
complete: function(){
|
||||||
removeMediumSpinnerImg("#user-messages");
|
removeMediumSpinnerImg("#user-messages");
|
||||||
$("#main-content" ).find("#appearance-configuration-btn-save" ).button('reset');
|
mainContent.find("#appearance-configuration-btn-save" ).button('reset');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue