Skip to content

Commit

Permalink
CTP-3973 remove jquery and datetimepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
watson8 committed Oct 29, 2024
1 parent c0509d2 commit be86faf
Show file tree
Hide file tree
Showing 10 changed files with 756 additions and 4,057 deletions.
2 changes: 2 additions & 0 deletions classes/controllers/deadline_extensions_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ public function ajax_edit_mitigation($dataparams) {
'courseworkid' => $deadlineextension->courseworkid,
'id' => $deadlineextension->id,
'pre_defined_reason' => $deadlineextension->pre_defined_reason,
'time_iso_8601' => date(\DateTime::ATOM, $deadlineextension->extended_deadline),
];
$response = [
'error' => 0,
Expand Down Expand Up @@ -370,6 +371,7 @@ public function ajax_new_mitigation($dataparams) {
$deadlineextensiontransform = [
'time_content' => $timecontent,
'time' => $time,
'time_iso_8601' => date(\DateTime::ATOM, $this->coursework->deadline),
];

$response = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ public function get_table_cell($rowobject) {
$content .= $OUTPUT->action_icon($link,
$icon,
null,
['class' => $class, 'data-get' => json_encode($newpersonaldeadlineparams), 'data-time' => date('d-m-Y H:i', $deadline) ]);
[
'class' => $class,
'data-get' => json_encode($newpersonaldeadlineparams),
'data-time' => date('d-m-Y H:i', $deadline),
'data-time-iso-8601' => date('Y-m-d\TH:i', $deadline),
]
);
$content .= '</div><div class="show_edit_personal_dealine display-none"> </div>';

return $this->get_new_cell_with_order_data(['display' => $content, '@data-order' => $deadline]);
Expand Down
Loading

0 comments on commit be86faf

Please sign in to comment.