Add afterUpdate event (#2574)

Add afterUpdate event
This commit is contained in:
Alexander Guth 2017-01-12 22:02:41 +01:00 committed by Samuel Georges
parent 6b56476f66
commit 7894284409
1 changed files with 2 additions and 2 deletions

View File

@ -247,14 +247,14 @@
if ($el.val().length && $el.val() != prefix)
return
$el.val(prefix)
$el.val(prefix).trigger('oc.inputPreset.afterUpdate')
this.$src = $(options.inputPreset, parent),
this.$src.on('keyup', function() {
if (self.cancelled)
return
$el.val(prefix + self.formatValue())
$el.val(prefix + self.formatValue()).trigger('oc.inputPreset.afterUpdate')
})
this.$el.on('change', function() {