Skip to content

Commit

Permalink
Max start/end MJD dates are changed from "today" to "now", GitHub issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Meharga committed Feb 22, 2023
1 parent 45801eb commit fd2cd87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/mmoda.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ var instrument_panel_margin = 150;
var common_form_validator;

Date.prototype.getJulian = function() {
return Math.floor((this / 86400000) - (this.getTimezoneOffset() / 1440) + 2440587.5);
// return Math.floor((this / 86400000) - (this.getTimezoneOffset() / 1440) + 2440587.5);
// the same with the fracional part
return (this / 86400000) - (this.getTimezoneOffset() / 1440) + 2440587.5;
}

// Sleep time in seconds
Expand Down Expand Up @@ -290,7 +292,7 @@ function get_div_spinner() {
<div class="progress-bar" style="width: 100%"></div>
</div>
*/
var spinner_div = (function($) {
var spinner_div = (function($) {
let inner_div = $('<div>').addClass('progress-bar').css("width", '100%');
let outer_div = $('<div>').addClass('renku-progress progress progress-striped active').css("width", '100%');
outer_div.append(inner_div);
Expand Down

0 comments on commit fd2cd87

Please sign in to comment.