Howdy...
With the update of our site from 1.3 to 1.7 we've had to update our custom extension, like the isValid for the Combobox. To belabor the point, we sometime deactivate drop down values and on the default load & set the available drop down options do not have a value for the value stored in the DB. So we need to check to see if the value exist, and if not reload the drop down options with the "missing" value and set that as selected (plus warn the user that they need to select a new value. This way we can show the user the previous value and give them something to work with.
With the update to 1.7, we need to change the find option slightly due to changes in the names of the css classes. This is what I came up with, and I would like a quick yes/no on my update - basically did I select the correct css name that will help us down the road.
$.extend($.fn.combo.methods, {
isValid: function (jq) {
// 1.3
//var input = $.data(jq[0], 'combo').combo.find('input.combo-text');
//
// 1.7
var input = $.data(jq[0], 'combo').combo.find('input.textbox-text');
return input.validatebox('isValid');
}
});
Updates / corrections to my changes are welcome.