diff --git a/resources/inc/class.ui_resources.inc.php b/resources/inc/class.ui_resources.inc.php index aad4a30437..1fcfc7ba6c 100755 --- a/resources/inc/class.ui_resources.inc.php +++ b/resources/inc/class.ui_resources.inc.php @@ -361,6 +361,12 @@ class ui_resources */ function select($content='') { + if (!is_object($GLOBALS['phpgw']->js)) + { + $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); + } + $GLOBALS['phpgw']->js->set_onload("copyOptions('exec[resources][selectbox]');"); + $GLOBALS['egw_info']['flags']['java_script'] .= ""; - - if (!is_object($GLOBALS['phpgw']->js)) - { - $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); - } - $GLOBALS['phpgw']->js->set_onload("copyOptions('exec[resources][selectbox]');"); $content['nm']['header_left'] = 'resources.resource_select.header'; $content['nm']['show_bookable'] = true;