this.networkConfiguration=ko.observable(networkConfiguration);
save=function(){
- $("#user-messages" ).html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
var mainContent=$("#main-content");
- if (!$("#main-content" ).find("#network-configuration-edit-form").valid()){
+ if (!mainContent.find("#network-configuration-edit-form").valid()){
return;
}
mainContent.find("#network-configuration-btn-save" ).button('loading');
displaySuccessMessage( $.i18n.prop("network-configuration.updated"));
},
complete: function(){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
mainContent.find("#network-configuration-btn-save" ).button('reset');
}
});
var self=this;
save=function(){
var mainContent=$("#main-content" );
- $("#user-messages").html( mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html( mediumSpinnerImg());
mainContent.find("#ui-configuration-btn-save" ).button('loading');
$.ajax("restServices/archivaServices/archivaAdministrationService/setUiConfiguration", {
type: "POST",
displaySuccessMessage( $.i18n.prop("ui-configuration.updated"));
},
complete: function(){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
mainContent.find("#ui-configuration-btn-save" ).button('reset');
}
});
return;
}
clearUserMessages();
- $("#user-messages" ).html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
mainContent.find("#appearance-configuration-btn-save" ).button('loading');
$.ajax("restServices/archivaServices/archivaAdministrationService/setOrganisationInformation", {
type: "POST",
displayErrorMessage($.i18n.prop('appearance-configuration.updating-error'));
},
complete: function(){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
mainContent.find("#appearance-configuration-btn-save" ).button('reset');
}
});
this.saveProxyConnectorRule=function(proxyConnectorRule,url,add,completeFnCallback){
$.log("saveProxyConnectorRule:"+url);
- $("#user-messages" ).html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
$.ajax(url,
{
type: "POST",
displayRestError(res);
},
complete:function(data){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
if(completeFnCallback){
completeFnCallback();
}
this.deleteProxyConnectorRule=function(proxyConnectorRule){
$("#main-content" ).find("proxy-connectors-rules-view-tabsTable").find(".btn").button("loading");
- $("#user-messages" ).html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
$.ajax("restServices/archivaServices/proxyConnectorRuleService/deleteProxyConnectorRule",
{
type:"POST",
displayRestError(res);
},
complete:function(data){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
$("#main-content" ).find("proxy-connectors-rules-view-tabsTable").find(".btn").button("reset");
}
}
screenChange();
var mainContent = $("#main-content");
mainContent.html($("#proxyConnectorsRulesMain").tmpl());
- $("#user-messages").html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
loadAllProxyConnectors(function(data){
var proxyConnectors = mapProxyConnectors(data);
activateProxyConnectorRulesGridTab();
},
complete: function(data){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
}
});
this.save=function(){
//FIXME data controls !!!
clearUserMessages();
- $("#user-messages" ).html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
$("#proxy-connector-btn-save" ).button("loading");
// update is delete then add
if (this.update){
displayRestError(res);
},
complete: function(){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
$("#proxy-connector-btn-save" ).button("reset");
}
}
displayRestError(res);
},
complete: function(){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
$("#proxy-connector-btn-save" ).button("reset");
}
}
},
complete: function(){
$("#managed-repository-save-button" ).button('reset');
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
}
});
}
}
mergeRepo=function(managedRepository){
- $("#user-messages" ).html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
// is there any artifacts to merge ?
var artifactsNumberUrl = "restServices/archivaServices/browseService/artifacts/"+encodeURIComponent(managedRepository.id());
$.ajax(artifactsNumberUrl,{
},
complete: function(){
- $.log("complete removeMediumSpinnerImg");
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
}
}
);
doMerge=function(sourceRepository,targetRepository,skipConflicts){
$.log("doMerge:"+sourceRepository+" to " + targetRepository + ", skipConflicts: " + skipConflicts);
window.modalMergeRepoDialog.modal('hide');
- $("#user-messages" ).html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
var url = "restServices/archivaServices/mergeRepositoriesService/mergeRepositories/"+encodeURIComponent(sourceRepository);
url+="/"+encodeURIComponent(targetRepository);
url+="/"+skipConflicts;
displaySuccessMessage($.i18n.prop("managedrepository.merge.success", sourceRepository,targetRepository));
},
complete: function(){
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
}
});
}
ko.applyBindings(managedRepositoriesViewModel,mainContent.find("#managed-repositories-view").get(0));
activatePopoverDoc();
mainContent.find("#managed-repositories-pills #managed-repositories-view-a").tab('show');
- removeMediumSpinnerImg("#main-content #managed-repositories-content");
+ removeMediumSpinnerImg(mainContent.find("#managed-repositories-content"));
activateManagedRepositoriesGridTab();
if(successFnManagedRepositories){
successFnManagedRepositories(managedRepositoriesViewModel);
var mainContent = $("#main-content");
ko.applyBindings(remoteRepositoriesViewModel,mainContent.find("#remote-repositories-view").get(0));
mainContent.find("#remote-repositories-pills #remote-repositories-view-a").tab('show')
- removeMediumSpinnerImg("#main-content #remote-repositories-content");
+ removeMediumSpinnerImg(mainContent.find("#remote-repositories-content"));
activatePopoverDoc();
if(successFnRemoteRepositories){
successFnRemoteRepositories(managedRepositoriesViewModel);
this.saveRepositoryGroup=function(repositoryGroup){
clearUserMessages();
- $("#user-messages").html(mediumSpinnerImg());
+ var userMessages=$("#user-messages");
+ userMessages.html(mediumSpinnerImg());
$("#repository-group-save" ).button('loading');
$.ajax("restServices/archivaServices/repositoryGroupService/updateRepositoryGroup",
{
},
complete:function(data){
$("#repository-group-save" ).button('reset');
- removeMediumSpinnerImg("#user-messages");
+ removeMediumSpinnerImg(userMessages);
}
}
);
{{/each}}
<th>Releases</th>
<th>Snapshots</th>
- <!--th title="${$.i18n.prop('managedrepository.scan.index')}">${$.i18n.prop('managedrepository.scan.grid.header')}</th-->
<th>${$.i18n.prop('managedrepository.actions')}</th>
<th>${$.i18n.prop('edit')}</th>
<th>${$.i18n.prop('delete')}</th>
<th>${$.i18n.prop('modified')}</th>
- <!--th>${$.i18n.prop('description')}</th-->
<th>${$.i18n.prop('managed.repository.rss.header')}</th>
<th title="${$.i18n.prop('managedrepository.stats')}">${$.i18n.prop('managedrepository.stats.grid.header')}</th>
- <!--th title="${$.i18n.prop('managedrepository.scan.directories')}">${$.i18n.prop('managedrepository.scan.directories.grid.header')}</th-->
</tr>
</thead>
<tbody>
<td>
<a href="${row.feedsUrl}"><img src="images/atom.gif" alt="" title="${$.i18n.prop('managedrepository.feeds')} ${row.name()}"/></a>
</td>
- <!--td>
- {{if row.description()}}
- <a class="btn btn-warning btn-mini popover-doc" id="managedrepo-description-help"
- data-content="${row.description()}" data-title="${$.i18n.prop('description')}"
- data-placement="left">
- <i class="icon-question-sign icon-white"></i>
- </a>
- {{/if}}
- </td-->
<td id="managedrepository-stats-${row.id()}">
<img src="images/utilities-system-monitor-22-22.png" data-original-title="${$.i18n.prop('managedrepository.stats')}"
data-bind="event: { mouseover: function(){ showStats(row) }, mouseout: function(){ hideStats(row) },}"