[MRM-1714] using LDAP can be configurable with the ui

move button in loading state.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1412944 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-11-23 16:29:43 +00:00
parent 474cd1b61d
commit d2b5071c6a
2 changed files with 3 additions and 3 deletions

View File

@ -1161,8 +1161,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
saveArchivaRuntimeConfiguration=function(){ saveArchivaRuntimeConfiguration=function(){
$.log("saveArchivaRuntimeConfiguration"); $.log("saveArchivaRuntimeConfiguration");
$("#archiva-runtime-configuration-save" ).button('loading');
clearUserMessages(); clearUserMessages();
var userMessages=$("#user-messages"); var userMessages=$("#user-messages");
userMessages.html(mediumSpinnerImg()); userMessages.html(mediumSpinnerImg());
@ -1183,6 +1182,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
}, },
complete:function(data){ complete:function(data){
removeMediumSpinnerImg(userMessages); removeMediumSpinnerImg(userMessages);
$("#archiva-runtime-configuration-save" ).button('reset');
} }
} }
); );

View File

@ -908,7 +908,7 @@
data-bind="value: archivaRuntimeConfiguration().userManagerImpl"/> data-bind="value: archivaRuntimeConfiguration().userManagerImpl"/>
</div> </div>
</div> </div>
<button data-bind="click: saveArchivaRuntimeConfiguration" class="btn">${$.i18n.prop('save')}</button> <button data-bind="click: saveArchivaRuntimeConfiguration" id="archiva-runtime-configuration-save" class="btn">${$.i18n.prop('save')}</button>
</fieldset> </fieldset>
</form> </form>
</div> </div>