autosubmit method
This commit is contained in:
@@ -45,7 +45,13 @@ $(function(){
|
||||
text = item.text;
|
||||
}
|
||||
Select.superclass.constructor.superclass.value2html(text, element);
|
||||
}
|
||||
},
|
||||
|
||||
autosubmit: function() {
|
||||
this.$input.on('change', function(){
|
||||
$(this).closest('form').submit();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Select.defaults = $.extend({}, $.fn.editableform.types.list.defaults, {
|
||||
|
||||
Reference in New Issue
Block a user