mirror of https://github.com/apache/archiva.git
use select2 as list can be long
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1425565 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6b093a075f
commit
cf7e15e27f
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jquery.validate","knockout"
|
||||
,"knockout.simpleGrid","knockout.sortable"],
|
||||
,"knockout.simpleGrid","knockout.sortable","select2"],
|
||||
function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,ko) {
|
||||
|
||||
ProxyConnector=function(sourceRepoId,targetRepoId,proxyId,blackListPatterns,whiteListPatterns,policiesEntries,propertiesEntries,
|
||||
|
@ -463,6 +463,8 @@ define("archiva.proxy-connectors",["jquery","i18n","jquery.tmpl","bootstrap","jq
|
|||
var proxyConnectorViewModel=new ProxyConnectorViewModel(proxyConnector,false,self);
|
||||
mainContent.find("#proxy-connectors-edit").html($("#proxy-connector-edit-form-tmpl").tmpl());
|
||||
ko.applyBindings(proxyConnectorViewModel,mainContent.find("#proxy-connectors-edit").get(0));
|
||||
mainContent.find("#sourceRepoId" ).select2();
|
||||
mainContent.find("#targetRepoId" ).select2();
|
||||
}
|
||||
if ($(e.target).attr("href")=="#proxy-connectors-view") {
|
||||
$("#proxy-connectors-view-tabs-a-network-proxies-grid").html($.i18n.prop("proxy-connectors.grid.tab.title"));
|
||||
|
|
|
@ -125,25 +125,25 @@
|
|||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#" data-bind="click: function(){ scanNow(row) }">
|
||||
<span class="btn btn-success">
|
||||
<i class="icon-refresh icon-white"></i>
|
||||
</span>
|
||||
<span class="btn btn-success">
|
||||
<i class="icon-refresh icon-white"></i>
|
||||
</span>
|
||||
${$.i18n.prop('managedrepository.scan.grid.header')}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-bind="click: function(){directoriesScan(row)}">
|
||||
<span class="btn btn-warning">
|
||||
<i class="icon-wrench icon-white"></i>
|
||||
</span>
|
||||
<span class="btn btn-warning">
|
||||
<i class="icon-wrench icon-white"></i>
|
||||
</span>
|
||||
${$.i18n.prop('managedrepository.scan.directories.grid.header')}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-bind="click: function(){ showPomSnippet(row) }">
|
||||
<span class="btn btn-info">
|
||||
<i class="icon-user icon-white"></i>
|
||||
</span>
|
||||
<span class="btn btn-info">
|
||||
<i class="icon-user icon-white"></i>
|
||||
</span>
|
||||
${$.i18n.prop('managedrepository.pomsnippet')}
|
||||
</a>
|
||||
</li>
|
||||
|
@ -155,9 +155,9 @@
|
|||
<li>
|
||||
<!-- todo check archiva-merge-repository operation -->
|
||||
<a href="#" data-bind="click: function(){ mergeRepo(row) }">
|
||||
<span class="btn btn-info">
|
||||
<i class="icon-share icon-white"></i>
|
||||
</span>
|
||||
<span class="btn btn-info">
|
||||
<i class="icon-share icon-white"></i>
|
||||
</span>
|
||||
${$.i18n.prop('managedrepository.mergerepo')}
|
||||
</a>
|
||||
</li>
|
||||
|
@ -166,16 +166,16 @@
|
|||
</td>
|
||||
<td>
|
||||
<a href="#" data-bind="click: function(){ editManagedRepository(row) }">
|
||||
<span class="btn btn-primary">
|
||||
<i class="icon-pencil icon-white"/>
|
||||
</span>
|
||||
<span class="btn btn-primary">
|
||||
<i class="icon-pencil icon-white"/>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" data-bind="click: function(){ removeManagedRepository(row) }">
|
||||
<span class="btn btn-danger">
|
||||
<i class="icon-trash icon-white"/>
|
||||
</span>
|
||||
<span class="btn btn-danger">
|
||||
<i class="icon-trash icon-white"/>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
{{if row.modified()}}
|
||||
|
|
Loading…
Reference in New Issue