mirror of https://github.com/apache/archiva.git
use loading button feature while saving remote repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1398298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a92c8cf8d9
commit
db80856a32
|
@ -785,6 +785,8 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clearUserMessages();
|
clearUserMessages();
|
||||||
|
$("#user-messages").html(mediumSpinnerImg());
|
||||||
|
$("#remote-repository-save-button" ).button('loading');
|
||||||
if (update){
|
if (update){
|
||||||
$.ajax("restServices/archivaServices/remoteRepositoriesService/updateRemoteRepository",
|
$.ajax("restServices/archivaServices/remoteRepositoriesService/updateRemoteRepository",
|
||||||
{
|
{
|
||||||
|
@ -800,6 +802,10 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
var res = $.parseJSON(data.responseText);
|
var res = $.parseJSON(data.responseText);
|
||||||
displayRestError(res);
|
displayRestError(res);
|
||||||
|
},
|
||||||
|
complete: function(){
|
||||||
|
$("#remote-repository-save-button" ).button('reset');
|
||||||
|
removeMediumSpinnerImg("#user-messages");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -627,7 +627,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<button data-bind="click: save" class="btn">${$.i18n.prop('save')}</button>
|
<button data-bind="click: save" data-loading-text="${$.i18n.prop('common.loading')}" id="remote-repository-save-button" class="btn">${$.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>
|
||||||
|
|
|
@ -38,6 +38,7 @@ import org.apache.archiva.repository.RepositoryContentFactory;
|
||||||
import org.apache.archiva.repository.content.LegacyPathParser;
|
import org.apache.archiva.repository.content.LegacyPathParser;
|
||||||
import org.apache.archiva.repository.content.ManagedDefaultRepositoryContent;
|
import org.apache.archiva.repository.content.ManagedDefaultRepositoryContent;
|
||||||
import org.apache.archiva.repository.content.RepositoryRequest;
|
import org.apache.archiva.repository.content.RepositoryRequest;
|
||||||
|
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
import org.apache.jackrabbit.webdav.DavException;
|
import org.apache.jackrabbit.webdav.DavException;
|
||||||
import org.apache.jackrabbit.webdav.DavResourceLocator;
|
import org.apache.jackrabbit.webdav.DavResourceLocator;
|
||||||
|
@ -57,7 +58,6 @@ import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArchivaDavResourceFactoryTest
|
* ArchivaDavResourceFactoryTest
|
||||||
|
|
Loading…
Reference in New Issue