Skip to content

Commit

Permalink
Updated cleaned up JS for DateTimePicker (Klucznik)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeho committed Aug 12, 2010
1 parent 587a1bb commit f162582
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/qcodo/_core/qform/QDateTimePickerBase.class.php
Expand Up @@ -116,7 +116,7 @@ protected function GetControlHtml() {
if ($strStyle)
$strAttributes .= sprintf(' style="%s"', $strStyle);

$strCommand = sprintf(' onchange="qc.dttChange(\'%s\', this);"', $this->strControlId);
$strCommand = sprintf(' onchange="qc.dtpChange(\'%s\', this);"', $this->strControlId);

if ($this->dttDateTime)
$dttDateTime = $this->dttDateTime;
Expand Down
10 changes: 8 additions & 2 deletions www/assets/js/_core/date_time_picker.js
@@ -1,4 +1,8 @@
function Qcodo__DateTimePicker_Change(strControlId, objListbox) {
/////////////////////////////////////////////
// Control: Date Time Picker functionality
/////////////////////////////////////////////

qcodo.dateTimePickerChange = function(strControlId, objListbox) {
var objMonth = document.getElementById(strControlId + "_lstMonth");
var objDay = document.getElementById(strControlId + "_lstDay");
var objYear = document.getElementById(strControlId + "_lstYear");
Expand Down Expand Up @@ -74,4 +78,6 @@
};
};
};
};
};

qc.dtpChange = qcodo.dateTimePickerChange;

0 comments on commit f162582

Please sign in to comment.