Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions example/advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ $(document).ready(function () {
"column": 2,
"type": "datepicker", // requires jQuery UI: http://http://jqueryui.com/download/
"options": {
"icon": "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif" // Optional
"icon": "http://jqueryui.com/resources/demos/datepicker/images/calendar.gif", // Optional
"defaultValue": new Date(),
}
}
// Nothing specified for column 3 so it will default to text
Expand All @@ -53,4 +54,4 @@ function destroyTable() {
table.destroy();
table.MakeCellsEditable("destroy");
}
}
}
3 changes: 2 additions & 1 deletion js/dataTables.cellEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ function getInputHtml(currentColumnIndex, settings, oldValue) {
showOn: "button",
buttonImage: icon,
buttonImageOnly: true,
buttonText: "Select date"
buttonText: "Select date",
defaultDate: inputSetting.options.defaultValue
});
},100);
break;
Expand Down