- // Determine index of key in the table columns
- getColIndex: function(key, cols) {
- var tabIndex = $.map(cols, function(x, i) { if (x.sTitle == key) return i; });
- return (tabIndex.length > 0) ? tabIndex[0] : -1;
- }, // getColIndex
-
- checkbox_html : function (key, value) {
- if (debug_deep) messages.debug("checkbox_html, value="+value);
- var result="";
- // Prefix id with plugin_uuid
- result += "<input";
- result += " class='querytable-checkbox'";
- result += " id='" + this.flat_id(this.id('checkbox', value)) + "'";
- result += " name='" + key + "'";
- result += " type='checkbox'";
- result += " autocomplete='off'";
- if (value === undefined) {
- messages.warning("querytable.checkbox_html - undefined value");
- } else {
- result += " value='" + value + "'";
- }
- result += "></input>";
- return result;
- },