Silence some warnings, mostly about attributes

This commit is contained in:
Nathan Gray
2012-07-23 23:54:16 +00:00
parent 0fa5e2ee49
commit fa69637b82
10 changed files with 72 additions and 4 deletions

View File

@ -49,6 +49,12 @@ var et2_inputWidget = et2_valueWidget.extend(et2_IInput, {
"type": "string",
"default": et2_no_init,
"description": "Used internally to store the validation error that came from the server."
},
"tabindex": {
"name": "Tab index",
"type": "integer",
"default": et2_no_init,
"description": "Specifies the tab order of a widget when the 'tab' button is used for navigating."
}
},
@ -235,6 +241,13 @@ var et2_inputWidget = et2_valueWidget.extend(et2_IInput, {
}
},
/**
* Set tab index
*/
set_tabindex: function(index) {
jQuery(this.getInputNode()).attr("tabindex", index);
},
getInputNode: function() {
return this.node;
},