Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#342 closed refactoring (fixed)

Admin applications have to be initialised by init(), not mod_adminNavigation_init()

Reported by: christoph Owned by: christoph
Priority: major Milestone: 2.6 release
Component: administration Version: 2.5
Keywords: Cc:

Description

All applications should be initialised the same way. So all applications should have the body element with an onload element loading the global init() function

We could discuss if the body element was to be removed completely and would be included hard wired. You always need a body element anyway.

Change History (3)

comment:1 by christoph, 15 years ago

Resolution: fixed
Status: newclosed

http://trac.osgeo.org/mapbender/changeset/3302

UPDATE gui_element SET e_attributes = 'onload=\'init()\'' WHERE e_id = 'body' AND fkey_gui_id IN ('admin1', 'admin2_de', 'admin2_en', 'admin_de_services', 'admin_en_services'); 

comment:2 by christoph, 15 years ago

oops, the changeset mentioned above includes an SQL from the following ticket

http://trac.osgeo.org/mapbender/ticket/336

sorry.

comment:3 by christoph, 15 years ago

The above SQL worked via phppgadmin, but not via command line.

THIS IS THE CORRECT SQL

UPDATE gui_element SET e_attributes = 'onload="init()"' WHERE e_id = 'body' AND fkey_gui_id IN ('admin1', 'admin2_de', 'admin2_en', 'admin_de_services', 'admin_en_services');
Note: See TracTickets for help on using tickets.