mirror of https://github.com/apache/archiva.git
use loading button feature while saving managed repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1398299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
db80856a32
commit
56450cc053
|
@ -201,6 +201,8 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
}
|
}
|
||||||
$.log("save:"+this.managedRepository.name());
|
$.log("save:"+this.managedRepository.name());
|
||||||
clearUserMessages();
|
clearUserMessages();
|
||||||
|
$("#user-messages").html(mediumSpinnerImg());
|
||||||
|
$("#managed-repository-save-button" ).button('loading');
|
||||||
if (this.update){
|
if (this.update){
|
||||||
$.ajax("restServices/archivaServices/managedRepositoriesService/updateManagedRepository",
|
$.ajax("restServices/archivaServices/managedRepositoriesService/updateManagedRepository",
|
||||||
{
|
{
|
||||||
|
@ -212,6 +214,10 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
displaySuccessMessage($.i18n.prop('managedrepository.updated',self.managedRepository.id()));
|
displaySuccessMessage($.i18n.prop('managedrepository.updated',self.managedRepository.id()));
|
||||||
activateManagedRepositoriesGridTab();
|
activateManagedRepositoriesGridTab();
|
||||||
self.managedRepository.modified(false);
|
self.managedRepository.modified(false);
|
||||||
|
},
|
||||||
|
complete: function(){
|
||||||
|
$("#managed-repository-save-button" ).button('reset');
|
||||||
|
removeMediumSpinnerImg("#user-messages");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -233,6 +239,10 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
}else{
|
}else{
|
||||||
addManagedRepository(self.managedRepository);
|
addManagedRepository(self.managedRepository);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
complete: function(){
|
||||||
|
$("#managed-repository-save-button" ).button('reset');
|
||||||
|
removeMediumSpinnerImg("#user-messages");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -391,10 +391,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
|
<button data-bind="click: save" class="btn" id="managed-repository-save-button">${$.i18n.prop('save')}</button>
|
||||||
<button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
|
<button data-bind="click: displayGrid" class="btn">${$.i18n.prop('cancel')}</button>
|
||||||
</form>
|
</form>
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue