Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
luolonghao committed Jul 10, 2012
1 parent c6bfbaf commit 0640c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ KindEditor.plugin('image', function(K) {
return;
}
// insert local image
if (tabs && tabs.selectedIndex === 1) {
if (showLocal && showRemote && tabs && tabs.selectedIndex === 1 || !showRemote) {
if (uploadbutton.fileBox.val() == '') {
alert(self.lang('pleaseSelectFile'));
return;
Expand Down

0 comments on commit 0640c52

Please sign in to comment.