Skip to content

Commit

Permalink
Hide image popover when user start to resize image.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Sep 16, 2015
1 parent b1d1b44 commit 2fd10ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/js/base/module/Handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ define([
event.preventDefault();
event.stopPropagation();

summernote.invoke('imagePopover.hide');

var $target = $handle.find('.note-control-selection').data('target'),
posStart = $target.offset(),
scrollTop = $document.scrollTop();
Expand Down
4 changes: 2 additions & 2 deletions src/js/bs3/module/ImagePopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ define([
}
};

this.hide = function ($popover) {
$popover.children().hide();
this.hide = function () {
$popover.hide();
};
};

Expand Down

0 comments on commit 2fd10ef

Please sign in to comment.