Changeset 9272
- Timestamp:
- 03/18/10 07:19:40 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/components.class.php
r9127 r9272 713 713 714 714 class gui_drawselects extends guiinput { 715 function gui_drawselects($elemname, $index, $prompttext = '', $helptext = '', $canbeempty = true, $failvalidationmsg='') { 715 function gui_drawselects($elemname, $index, $dest, $prompttext = '', $helptext = '', $canbeempty = true, $failvalidationmsg='') { 716 global $currentcomponent; 716 717 $parent_class = get_parent_class($this); 717 718 if(!$canbeempty){ 718 719 $jsvalidation ='()'; 719 $jsvalidationtest ='!$(" input[name=goto'.$index.']:submit").val()';720 $jsvalidationtest ='!$("[name=goto'.$index.']").val()'; 720 721 $failvalidationmsg = _('Please select a valid destination.'); 721 722 } 722 723 parent::$parent_class($elemname, '', $prompttext, $helptext, $jsvalidation, $failvalidationmsg, '', $jsvalidationtest); 723 724 724 $this->html_input=drawselects($currentvalue, $index, false, false); 725 } 725 $this->html_input=drawselects($dest, $index, false, false); 726 727 //adttach a value to this element, so that we can find its value 728 $currentcomponent->addguielem('', new gui_hidden($elemname,'goto'.$index)); 729 } 726 730 } 727 731 … … 821 825 } 822 826 } 827 823 828 ?>
