-
Notifications
You must be signed in to change notification settings - Fork 72k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #5188 - move predictions to bundle and don't render chart on pred…
…ictions offset change (#5395) * Fix #5188 - move predictions to bundle and don't render chart on predictions offset change * Fix predictions show for day to day
- Loading branch information
1 parent
bb34500
commit 5e47c4d
Showing
5 changed files
with
41 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
var predictions = { | ||
offset: 0, | ||
backward: function () { | ||
this.offset -= 5; | ||
this.updateOffsetHtml(); | ||
}, | ||
forward: function () { | ||
this.offset += 5; | ||
this.updateOffsetHtml(); | ||
}, | ||
moreBackward: function () { | ||
this.offset -= 30; | ||
this.updateOffsetHtml(); | ||
}, | ||
moreForward: function () { | ||
this.offset += 30; | ||
this.updateOffsetHtml(); | ||
}, | ||
reset: function () { | ||
this.offset = 0; | ||
this.updateOffsetHtml(); | ||
}, | ||
updateOffsetHtml: function () { | ||
$('#rp_predictedOffset').html(this.offset); | ||
} | ||
}; | ||
|
||
$(document).on('change', '#rp_optionspredicted', function() { | ||
$('#rp_predictedSettings').toggle(this.checked); | ||
predictions.reset(); | ||
}); | ||
|
||
module.exports = predictions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters