Commits

Richard Stephens committed 14ddc1d

AUI-1403: expand selector to provide additional way to identify element that should be focused on. Useful with controls such as select2 which create a hidden input and a separate text input without a name parameter

Comments (0)

Files changed (1)

auiplugin/src/main/resources/experimental/js/atlassian/restfultable/restfultable.editrow.js

             this.enable();
 
             if (name) {
-                $focus = this.$el.find(":input[name=" + name + "], #" + name);
+                $focus = this.$el.find(":input[type!=hidden][name=" + name + "], #" + name + ", .ajs-restfultable-input-" + name);
             } else {
 
                 $error = this.$el.find(this.classNames.ERROR + ":first");