Skip to content
Snippets Groups Projects
Commit 56e064bd authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Don't trigger unnecessary change events.

parent 16fc4dfd
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,9 @@
} else {
self.element.val(tmp);
}
self.element.trigger('change'); // Changes wasn't saved when only using the dropdown.
if(self.element.val().trim() != '') {
self.element.trigger('change'); // Changes wasn't saved when only using the dropdown.
}
});
this.element.bind( "keydown", function( event ) {
if ( event.keyCode === $.ui.keyCode.TAB &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment