* adjust local image upload to tab1.

This commit is contained in:
xia0ta0
2014-06-25 11:37:06 +08:00
parent 802fe2b28f
commit 60bcd3bdef
+1 -1
View File
@@ -103,7 +103,7 @@ KindEditor.plugin('image', function(K) {
return;
}
// insert local image
if (showLocal && showRemote && tabs && tabs.selectedIndex === 1 || !showRemote) {
if (showLocal && showRemote && tabs && tabs.selectedIndex === 0 || !showRemote) {
if (uploadbutton.fileBox.val() == '') {
alert(self.lang('pleaseSelectFile'));
return;