commit
2ceeaf34a5
|
@ -291,7 +291,7 @@ define([
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
onShowComment: function (id, selected) {
|
onShowComment: function (id, selected, fromLeftPanelSelection) {
|
||||||
var comment = this.findComment(id);
|
var comment = this.findComment(id);
|
||||||
if (comment) {
|
if (comment) {
|
||||||
if (null !== comment.get('quote')) {
|
if (null !== comment.get('quote')) {
|
||||||
|
@ -319,9 +319,11 @@ define([
|
||||||
this.isSelectedComment = selected;
|
this.isSelectedComment = selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.api.asc_selectComment(id);
|
if (!fromLeftPanelSelection || !((0 === _.difference(this.uids, [id]).length) && (0 === _.difference([id], this.uids).length))) {
|
||||||
this._dontScrollToComment = true;
|
this.api.asc_selectComment(id);
|
||||||
this.api.asc_showComment(id,false);
|
this._dontScrollToComment = true;
|
||||||
|
this.api.asc_showComment(id,false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
|
@ -283,7 +283,16 @@ define([
|
||||||
} else if (!btn.hasClass('msg-reply') &&
|
} else if (!btn.hasClass('msg-reply') &&
|
||||||
!btn.hasClass('btn-resolve-check') &&
|
!btn.hasClass('btn-resolve-check') &&
|
||||||
!btn.hasClass('btn-resolve')) {
|
!btn.hasClass('btn-resolve')) {
|
||||||
me.fireEvent('comment:show', [commentId, false]);
|
var isTextSelected = false;
|
||||||
|
if (btn.hasClass('user-message')) {
|
||||||
|
if (window.getSelection) {
|
||||||
|
var selection = window.getSelection();
|
||||||
|
isTextSelected = (selection.toString()!=='')
|
||||||
|
} else if (document.selection) {
|
||||||
|
isTextSelected = document.selection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
me.fireEvent('comment:show', [commentId, false, isTextSelected]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -123,12 +123,7 @@ define([
|
||||||
var size = picker.value;
|
var size = picker.value;
|
||||||
|
|
||||||
if (me.api) {
|
if (me.api) {
|
||||||
me.api.put_Table(parseInt(size[0]), parseInt(size[1]));
|
me.api.put_Table(parseInt(size[0]), parseInt(size[1]), type.toString());
|
||||||
|
|
||||||
var properties = new Asc.CTableProp();
|
|
||||||
properties.put_TableStyle(type);
|
|
||||||
|
|
||||||
me.api.tblApply(properties);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -598,7 +598,7 @@ define([
|
||||||
$('#edit-table-styles .table-styles div').removeClass('active');
|
$('#edit-table-styles .table-styles div').removeClass('active');
|
||||||
$target.addClass('active');
|
$target.addClass('active');
|
||||||
|
|
||||||
properties.put_TableStyle(type);
|
properties.put_TableStyle(type.toString());
|
||||||
me.api.tblApply(properties);
|
me.api.tblApply(properties);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -104,12 +104,7 @@ define([
|
||||||
var size = picker.value;
|
var size = picker.value;
|
||||||
|
|
||||||
if (me.api) {
|
if (me.api) {
|
||||||
me.api.put_Table(parseInt(size[0]), parseInt(size[1]));
|
me.api.put_Table(parseInt(size[0]), parseInt(size[1]), undefined, type.toString());
|
||||||
|
|
||||||
var properties = new Asc.CTableProp();
|
|
||||||
properties.put_TableStyle(type);
|
|
||||||
|
|
||||||
me.api.tblApply(properties);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -442,7 +442,7 @@ define([
|
||||||
$('#edit-table-styles .table-styles div').removeClass('active');
|
$('#edit-table-styles .table-styles div').removeClass('active');
|
||||||
$target.addClass('active');
|
$target.addClass('active');
|
||||||
|
|
||||||
properties.put_TableStyle(type);
|
properties.put_TableStyle(type.toString());
|
||||||
me.api.tblApply(properties);
|
me.api.tblApply(properties);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue