And thanks for a nice plugin :) I noticed that a disabled select doesn't show the selected value (due to .val() returning null if the select is disabled, see: http://bugs.jquery.com/ticket/13097).
I could get this to work by replacing this line in ImagePickerOption.prototype.is_selected():
var select_value;
select_value = this.picker.select.val();
with:
var select_value, selected_index;
selected_index = this.picker.select.prop('selectedIndex');
select_value = this.picker.picker_options[selected_index].value();
Also it would be nice to get an additional class to the wrapper if select is disabled. What do you think?
Hi,
And thanks for a nice plugin :) I noticed that a disabled select doesn't show the selected value (due to .val() returning null if the select is disabled, see: http://bugs.jquery.com/ticket/13097).
I could get this to work by replacing this line in
ImagePickerOption.prototype.is_selected()
:with:
Also it would be nice to get an additional class to the wrapper if select is disabled. What do you think?
Juha