[ https://issues.apache.org/jira/browse/SOLR-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228081#comment-13228081 ]
Thomas Weidman commented on SOLR-3162: -------------------------------------- Hi, I've made some adjustments to Dataimport admin handler UI that others may like: 1) js\scripts\dataimport.js -> add new var in dataimport.html template loading: var buttons = $( 'button.actions', dataimport_element ); 2) Add event for button.actions buttons.on('click', function () { $.ajax({ url : handler_url + '?command=' + $(this).attr('command'), dataType : 'xml', beforeSend : function( xhr, settings ) { }, success : function( response, text_status, xhr ) { console.debug( response ); dataimport_fetch_status(); }, error : function( xhr, text_status, error_thrown ) { console.debug( arguments ); }, complete : function( xhr, text_status ) { } }); }); 3) Add buttons to template <fieldset> <legend style="padding:10px 5px; 2px 5px">commands</legend> <button class="actions" command="full-import">Full Import</button> <button class="actions" command="delta-import">Delta Import</button> </fieldset> > Continue work on new admin UI > ----------------------------- > > Key: SOLR-3162 > URL: https://issues.apache.org/jira/browse/SOLR-3162 > Project: Solr > Issue Type: Improvement > Components: Schema and Analysis, web gui > Affects Versions: 4.0 > Reporter: Erick Erickson > Assignee: Erick Erickson > Fix For: 4.0 > > Attachments: SOLR-3162-index.png, SOLR-3162-schema-browser.png, > SOLR-3162.patch, SOLR-3162.patch, SOLR-3162.patch, SOLR-3162.patch, > SOLR-3162.patch, SOLR-3162.patch > > > There have been more improvements to how the new UI works, but the current > open bugs are getting hard to keep straight. This is the new catch-all JIRA > for continued improvements. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org