You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by st...@apache.org on 2012/04/27 09:23:06 UTC

svn commit: r1331268 - in /lucene/dev/trunk/solr/webapp/web: js/scripts/cores.js tpl/cores.html

Author: steffkes
Date: Fri Apr 27 07:23:06 2012
New Revision: 1331268

URL: http://svn.apache.org/viewvc?rev=1331268&view=rev
Log:
SOLR-3275: Make (UI) CoreAdmin Cloud-Aware

Modified:
    lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js
    lucene/dev/trunk/solr/webapp/web/tpl/cores.html

Modified: lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js?rev=1331268&r1=1331267&r2=1331268&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js (original)
+++ lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js Fri Apr 27 07:23:06 2012
@@ -257,6 +257,12 @@ sammy.get
                   .width( cores_element.width() + 10 )
                   .height( cores_element.height() );
 
+                if( $( '#cloud.global' ).is( ':visible' ) )
+                {
+                  $( '.cloud', div_action )
+                    .show();
+                }
+
                 $( 'button.action', actions_element )
                   .die( 'click' )
                   .live

Modified: lucene/dev/trunk/solr/webapp/web/tpl/cores.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/tpl/cores.html?rev=1331268&r1=1331267&r2=1331268&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/tpl/cores.html (original)
+++ lucene/dev/trunk/solr/webapp/web/tpl/cores.html Fri Apr 27 07:23:06 2012
@@ -50,6 +50,16 @@ limitations under the License.
           <p class="clearfix"><label for="add_schema">schema:</label>
           <input type="text" name="schema" id="add_schema" placeholder="schema.xml"></p>
 
+          <div class="cloud">
+
+            <p class="clearfix"><label for="add_collection">collection:</label>
+            <input type="text" name="collection" id="add_collection"></p>
+
+            <p class="clearfix"><label for="add_shard">shard:</label>
+            <input type="text" name="shard" id="shard"></p>
+
+          </div>
+
           <p class="clearfix buttons">
             <button type="submit" class="submit"><span>Add Core</span></button>
             <button type="reset" class="reset"><span>Cancel</span></button>