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 event handler will update a date/time field when a value is updated with inline editing | |
// change view_1 to the view key of the table with inline editing | |
$(document).on('knack-cell-update.view_1', function(event, view, data) { | |
// create a JS date object | |
var todayDate = new Date(); | |
todayDate.setHours(todayDate.getHours() - 7); // make any timezone changes | |
// create an object for the data to update |