You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by up...@apache.org on 2015/10/07 15:01:17 UTC

svn commit: r1707287 - in /lucene/dev/trunk/solr/webapp/web: js/angular/controllers/cores.js partials/cores.html

Author: upayavira
Date: Wed Oct  7 13:01:17 2015
New Revision: 1707287

URL: http://svn.apache.org/viewvc?rev=1707287&view=rev
Log:
SOLR-8137 Use swapCorelist rather than otherCorelist

Modified:
    lucene/dev/trunk/solr/webapp/web/js/angular/controllers/cores.js
    lucene/dev/trunk/solr/webapp/web/partials/cores.html

Modified: lucene/dev/trunk/solr/webapp/web/js/angular/controllers/cores.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/js/angular/controllers/cores.js?rev=1707287&r1=1707286&r2=1707287&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/js/angular/controllers/cores.js (original)
+++ lucene/dev/trunk/solr/webapp/web/js/angular/controllers/cores.js Wed Oct  7 13:01:17 2015
@@ -36,15 +36,15 @@ solrAdminApp.controller('CoreAdminContro
           }
           $scope.core = cores[$scope.selectedCore];
           $scope.corelist = [];
-          $scope.otherCorelist = [];
+          $scope.swapCorelist = [];
           for (var core in cores) {
              $scope.corelist.push(cores[core]);
             if (cores[core] != $scope.core) {
-              $scope.otherCorelist.push(cores[core]);
+              $scope.swapCorelist.push(cores[core]);
             }
           }
-          if ($scope.otherCorelist.length>0) {
-            $scope.swapOther = $scope.otherCorelist[0].name;
+          if ($scope.swapCorelist.length>0) {
+            $scope.swapOther = $scope.swapCorelist[0].name;
           }
         });
       };

Modified: lucene/dev/trunk/solr/webapp/web/partials/cores.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/partials/cores.html?rev=1707287&r1=1707286&r2=1707287&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/partials/cores.html (original)
+++ lucene/dev/trunk/solr/webapp/web/partials/cores.html Wed Oct  7 13:01:17 2015
@@ -109,7 +109,7 @@ limitations under the License.
           <input type="text" id="swap_core" name="core" ng-model="selectedCore" readonly="readonly"></p>
 
           <p class="clearfix"><label for="swap_other">and:</label>
-          <select name="other" ng-model="swapOther" ng-options="core.name as core.name for core in otherCorelist" class="other">
+          <select name="other" ng-model="swapOther" ng-options="core.name as core.name for core in swapCorelist" class="other">
           </select></p>
 
           <p class="clearfix note error" ng-show="swapMessage">