Skip to content

Commit

Permalink
added support for ie11
Browse files Browse the repository at this point in the history
  • Loading branch information
torsal committed Jan 15, 2019
1 parent 0c558d5 commit 615bcfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions summernote-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
context.triggerEvent('dialog.shown');

// Cloning AudioInput to clear element.
$audioInput.replaceWith($audioInput.clone().on('change', (event) => {
$audioInput.replaceWith($audioInput.clone().on('change', function(event) {
deferred.resolve(event.target.files || event.target.value);
}).val(''));

Expand All @@ -284,8 +284,8 @@
deferred.resolve($audioUrl.val());
});

$audioUrl.on('keyup paste', () => {
const url = $audioUrl.val();
$audioUrl.on('keyup paste', function() {
var url = $audioUrl.val();
ui.toggleBtn($audioBtn, url);
}).val('');

Expand Down

0 comments on commit 615bcfb

Please sign in to comment.