From 2f79fc616c6612c614b65803e0477781b0167f2f Mon Sep 17 00:00:00 2001 From: Arthur Portugal Date: Tue, 5 Jan 2010 13:42:49 -0500 Subject: [PATCH] Added a function to set the cursor in the text box #462 --- main/create_course/add_course.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main/create_course/add_course.php b/main/create_course/add_course.php index 5ac2a79359..a7026902e9 100755 --- a/main/create_course/add_course.php +++ b/main/create_course/add_course.php @@ -33,6 +33,16 @@ include_once (api_get_path(LIBRARY_PATH).'fileManage.lib.php'); include_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); include_once (api_get_path(CONFIGURATION_PATH).'course_info.conf.php'); +$htmlHeadXtra[] = ''; //jQuery +$htmlHeadXtra[] = ''; + $interbreadcrumb[] = array('url'=>api_get_path(WEB_PATH).'user_portal.php', 'name'=> get_lang('MyCourses')); // Displaying the header $tool_name = get_lang('CreateSite'); @@ -63,7 +73,7 @@ $form = new FormValidator('add_course'); // form title $form->addElement('header', '', $tool_name); //title -$form->add_textfield('title',get_lang('CourseName'),true,array('size'=>'60')); +$form->addElement('text', 'title', get_lang('CourseName'), array('size'=>'60','id' => 'title')); $form->applyFilter('title', 'html_filter'); $form->addElement('static',null,null,get_lang('Ex'));