Skip to content

Commit

Permalink
Update the hour offset check to work with the new definition list.
Browse files Browse the repository at this point in the history
  • Loading branch information
tburry committed Aug 13, 2014
1 parent e48e27e commit fd3b71c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions js/global.js
Expand Up @@ -1148,14 +1148,13 @@ jQuery(document).ready(function($) {
});

// Ajax/Save the ClientHour if it is different from the value in the db.
$('input:hidden[id$=SetHourOffset]').livequery(function() {
if (hourOffset != $(this).val()) {
$.post(
gdn.url('/utility/sethouroffset.json'),
{ HourOffset: hourOffset, TransientKey: gdn.definition('TransientKey') }
);
}
});
var setHourOffset = parseInt(gdn.definition('SetHourOffset', hourOffset));
if (hourOffset !== setHourOffset) {
$.post(
gdn.url('/utility/sethouroffset.json'),
{ HourOffset: hourOffset, TransientKey: gdn.definition('TransientKey') }
);
}

// Add "checked" class to item rows if checkboxes are checked within.
checkItems = function() {
Expand Down

0 comments on commit fd3b71c

Please sign in to comment.