Refactoring
This commit is contained in:
parent
8d28f72669
commit
9feabc6ac3
|
@ -467,7 +467,7 @@ define([
|
||||||
Common.Utils.InternalSettings.set("de-settings-livecomment", value);
|
Common.Utils.InternalSettings.set("de-settings-livecomment", value);
|
||||||
var resolved = Common.localStorage.getBool("de-settings-resolvedcomment");
|
var resolved = Common.localStorage.getBool("de-settings-resolvedcomment");
|
||||||
Common.Utils.InternalSettings.set("de-settings-resolvedcomment", resolved);
|
Common.Utils.InternalSettings.set("de-settings-resolvedcomment", resolved);
|
||||||
if (this.mode.canViewComments && this.leftMenu.panelComments.isVisible())
|
if (this.mode.canViewComments && this.leftMenu.panelComments && this.leftMenu.panelComments.isVisible())
|
||||||
value = resolved = true;
|
value = resolved = true;
|
||||||
(value) ? this.api.asc_showComments(resolved) : this.api.asc_hideComments();
|
(value) ? this.api.asc_showComments(resolved) : this.api.asc_hideComments();
|
||||||
this.getApplication().getController('Common.Controllers.ReviewChanges').commentsShowHide(value ? 'show' : 'hide');
|
this.getApplication().getController('Common.Controllers.ReviewChanges').commentsShowHide(value ? 'show' : 'hide');
|
||||||
|
|
|
@ -429,7 +429,7 @@ define([
|
||||||
var resolved = Common.localStorage.getBool("sse-settings-resolvedcomment");
|
var resolved = Common.localStorage.getBool("sse-settings-resolvedcomment");
|
||||||
Common.Utils.InternalSettings.set("sse-settings-resolvedcomment", resolved);
|
Common.Utils.InternalSettings.set("sse-settings-resolvedcomment", resolved);
|
||||||
|
|
||||||
if (this.mode.canViewComments && this.leftMenu.panelComments.isVisible())
|
if (this.mode.canViewComments && this.leftMenu.panelComments && this.leftMenu.panelComments.isVisible())
|
||||||
value = resolved = true;
|
value = resolved = true;
|
||||||
(value) ? this.api.asc_showComments(resolved) : this.api.asc_hideComments();
|
(value) ? this.api.asc_showComments(resolved) : this.api.asc_hideComments();
|
||||||
this.getApplication().getController('Common.Controllers.ReviewChanges').commentsShowHide(value ? 'show' : 'hide');
|
this.getApplication().getController('Common.Controllers.ReviewChanges').commentsShowHide(value ? 'show' : 'hide');
|
||||||
|
|
Loading…
Reference in a new issue