mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 23:37:15 +00:00
(fix) refactored to code
This commit is contained in:
1 parent
af7fb1c6ee
commit
85f4efab46
3 files changed
+15
-20
No files matched your search
@@ -173,6 +173,19 @@ String.prototype.asCSSIdentifier = function() {
|
||||
return newString;
|
||||
};
|
||||
|
||||
String.prototype.timeInterval = function () {
|
||||
var interval;
|
||||
if (this == "once_per_hour")
|
||||
interval = 3600;
|
||||
else if (this == "every_minute")
|
||||
interval = 60;
|
||||
else {
|
||||
interval = parseInt(this.substr(6)) * 60;
|
||||
}
|
||||
|
||||
return interval;
|
||||
};
|
||||
|
||||
Date.prototype.stringWithSeparator = function(separator) {
|
||||
var month = '' + (this.getMonth() + 1);
|
||||
var day = '' + this.getDate();
|
||||
|
||||
Reference in new issue
Block a user