]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1714] using LDAP can be configurable with the ui
authorOlivier Lamy <olamy@apache.org>
Fri, 23 Nov 2012 16:29:43 +0000 (16:29 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 23 Nov 2012 16:29:43 +0000 (16:29 +0000)
move button in loading state.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1412944 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html

index a0c14ee0a4a0ec44e7f3a364fee085d768d6e1b3..1030f56770dbd119618e230403d4fb42f5ab682b 100644 (file)
@@ -1161,8 +1161,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
 
     saveArchivaRuntimeConfiguration=function(){
       $.log("saveArchivaRuntimeConfiguration");
-
-
+      $("#archiva-runtime-configuration-save" ).button('loading');
       clearUserMessages();
       var userMessages=$("#user-messages");
       userMessages.html(mediumSpinnerImg());
@@ -1183,6 +1182,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
           },
           complete:function(data){
             removeMediumSpinnerImg(userMessages);
+            $("#archiva-runtime-configuration-save" ).button('reset');
           }
         }
       );
index 918d85617b976912fa5e8b8e956c199525fcf492..f1659dd6825a9fc47782b006392e27efe3771d54 100644 (file)
                     data-bind="value: archivaRuntimeConfiguration().userManagerImpl"/>
           </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>
     </form>
   </div>