Introduce REQUEST_TOOLTIP_DELAY
This commit is contained in:
@ -17,6 +17,7 @@ var CodeOceanEditor = {
|
|||||||
//Request-For-Comments-Configuration
|
//Request-For-Comments-Configuration
|
||||||
REQUEST_FOR_COMMENTS_DELAY: 0,
|
REQUEST_FOR_COMMENTS_DELAY: 0,
|
||||||
REQUEST_TOOLTIP_TIME: 5000,
|
REQUEST_TOOLTIP_TIME: 5000,
|
||||||
|
REQUEST_TOOLTIP_DELAY: 10 * 60 * 1000,
|
||||||
|
|
||||||
editors: [],
|
editors: [],
|
||||||
editor_for_file: new Map(),
|
editor_for_file: new Map(),
|
||||||
@ -444,10 +445,12 @@ var CodeOceanEditor = {
|
|||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
button.prop('disabled', false);
|
button.prop('disabled', false);
|
||||||
|
setTimeout(function () {
|
||||||
button.tooltip('show');
|
button.tooltip('show');
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
button.tooltip('hide');
|
button.tooltip('hide');
|
||||||
}, this.REQUEST_TOOLTIP_TIME);
|
}, this.REQUEST_TOOLTIP_TIME);
|
||||||
|
}, this.REQUEST_TOOLTIP_DELAY)
|
||||||
}.bind(this), this.REQUEST_FOR_COMMENTS_DELAY);
|
}.bind(this), this.REQUEST_FOR_COMMENTS_DELAY);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user