Changeset 795
- Timestamp:
- 02/25/10 01:32:40 (6 months ago)
- Location:
- framework/branches/2.0
- Files:
-
- 1 removed
- 2 modified
-
assets/_core/js/listbox.js (deleted)
-
includes/qcubed/_core/base_controls/QListBoxBase.class.php (modified) (1 diff)
-
includes/qcubed/controls/QListBox.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
framework/branches/2.0/includes/qcubed/_core/base_controls/QListBoxBase.class.php
r682 r795 33 33 protected $strSelectionMode = QSelectionMode::Single; 34 34 35 // SETTINGS36 protected $strJavaScripts = 'listbox.js';37 38 35 ////////// 39 36 // Methods -
framework/branches/2.0/includes/qcubed/controls/QListBox.class.php
r173 r795 29 29 */ 30 30 protected function GetResetButtonHtml() { 31 $strToReturn = sprintf(' <a href="#" onclick="__resetListBox(%s, %s); return false;" class="listboxReset">%s</a>', 32 "'" . $this->Form->FormId . "'", 33 "'" . $this->strControlId . "'", 34 QApplication::Translate('Reset')); 31 $strJavaScriptOnClick = sprintf('$j("#%s").val(null);$j("#%s").trigger("change"); return false;', $this->strControlId,$this->strControlId); 32 33 $strToReturn = sprintf(' <a id="reset_ctl_%s" href="#" class="listboxReset">%s</a>', 34 $this->strControlId, 35 QApplication::Translate('Reset') 36 ); 35 37 38 QApplication::ExecuteJavaScript(sprintf('$j("#reset_ctl_%s").bind("%s", function(){ %s });', $this->strControlId, "click", $strJavaScriptOnClick)); 39 36 40 return $strToReturn; 37 41 }
