mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-17 11:27:59 +00:00
(js) Use more one-time bindings in Calendar module
This commit is contained in:
@@ -672,6 +672,19 @@
|
||||
return (this.occurrenceId && this.userHasRSVP);
|
||||
};
|
||||
|
||||
/**
|
||||
* @function showPercentComplete
|
||||
* @memberof Component.prototype
|
||||
* @desc Check if the percent completion should be displayed with respect to the
|
||||
* component's type and status.
|
||||
* @returns true if the percent completion should be displayed
|
||||
*/
|
||||
Component.prototype.showPercentComplete = function() {
|
||||
return (this.type == 'task' &&
|
||||
this.percentComplete > 0 &&
|
||||
this.status != 'cancelled');
|
||||
};
|
||||
|
||||
/**
|
||||
* @function enablePercentComplete
|
||||
* @memberof Component.prototype
|
||||
@@ -681,7 +694,7 @@
|
||||
*/
|
||||
Component.prototype.enablePercentComplete = function() {
|
||||
return (this.type == 'task' &&
|
||||
this.percentComplete > 0 &&
|
||||
this.status != 'not-specified' &&
|
||||
this.status != 'cancelled');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user