Permalink
Browse files

Allow enter key to submit cluster connect field

  • Loading branch information...
1 parent ca2cccd commit 88534277dc92721359ae114cab6d24cde33078d1 @mobz committed Nov 8, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/es/widgets.js
View
@@ -1498,7 +1498,12 @@
_main_template: function() {
return { tag: "SPAN", cls: "es-cluster", children: [
- { tag: "INPUT", type: "text", cls: "es-header-uri", id: this.id("baseUri"), value: this.config.base_uri },
+ { tag: "INPUT", type: "text", cls: "es-header-uri", onkeyup: function( jEv ) {
+ if(jEv.which === 13) {
+ jEv.preventDefault();
+ this._reconnect_handler()
+ }
+ }.bind(this), id: this.id("baseUri"), value: this.config.base_uri },
{ tag: "BUTTON", type: "button", text: acx.text("Header.Connect"), onclick: this._reconnect_handler },
{ tag: "SPAN", cls: "es-header-clusterName" },
{ tag: "SPAN", cls: "es-header-clusterStatus" }

0 comments on commit 8853427

Please sign in to comment.