Changeset 7128 for extensions/GMaps/gmaps_aip.class.inc.php
- Timestamp:
- Oct 8, 2010, 3:02:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/gmaps_aip.class.inc.php
r7125 r7128 53 53 $this->tabsheet->add('kml_files', 54 54 l10n('gmaps_kml_files_management'), 55 $this->getAdminLink()."&fGMaps_tabsheet=kml_files"); 55 $this->getAdminLink()."&fGMaps_tabsheet=kml_files"); */ 56 56 $this->tabsheet->add('search', 57 57 l10n('gmaps_search'), 58 58 $this->getAdminLink()."&fGMaps_tabsheet=search"); 59 $this->tabsheet->add('help',59 /* $this->tabsheet->add('help', 60 60 l10n('gmaps_help'), 61 61 $this->getAdminLink()."&fGMaps_tabsheet=help"); … … 74 74 public function initEvents() 75 75 { 76 parent::initEvents(); 77 78 if($_REQUEST['fGMaps_tabsheet']=='search') 79 { 80 // load request builder JS only on the search page 81 GPCRequestBuilder::loadJSandCSS(); 82 } 76 83 add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS')); 77 84 GPCCss::applyGpcCss(); 78 79 parent::initEvents();80 85 } 81 86 … … 254 259 global $template; 255 260 256 /*$template->set_filename('body_page', 257 dirname($this->getFileLocation()).'/admin/plugin_admin_maps.tpl'); 258 259 260 $template->assign_var_from_handle('GMAPS_BODY_PAGE', 'body_page');*/ 261 $template->set_filename('body_page', 262 dirname($this->getFileLocation()).'/admin/gmaps_search.tpl'); 263 264 $template->assign('gmaps_search_page', GPCRequestBuilder::displaySearchPage($this->getPluginName())); 265 266 $template->assign_var_from_handle('GMAPS_BODY_PAGE', 'body_page'); 261 267 } 262 268
Note: See TracChangeset
for help on using the changeset viewer.