Ticket #686 (closed enhancement: duplicate)
"adminPageHTMLHead" behavior and jquery use in all admin pages
| Reported by: | Myrdhin | Owned by: | olivier | 
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2 | 
| Component: | module:core | Version: | 2.1 | 
| Severity: | normal | Keywords: | behaviors | 
| Cc: | 
Description
To use jquery on all admin pages, perhaps we need a new behavior (or move the existent "adminPageHTMLHead" behavior) juste before the </head> tag in /inc/admin/lib.dc.page.php file, lines 101-107.
OLD :
...
	# --BEHAVIOR-- adminPageHTMLHead
	$core->callBehavior('adminPageHTMLHead');
		
	echo
		self::jsCommon().
		$head.
		"</head>\n".
...
NEW (proposition 1) :
...
	echo self::jsCommon();
	# --BEHAVIOR-- adminPageHTMLHead
	$core->callBehavior('adminPageHTMLHead');
	echo $head.
		"</head>\n".
...
or NEW (propostion 2) :
...
	# --BEHAVIOR-- adminPageHTMLHead
	$core->callBehavior('adminPageHTMLHead');
		
	echo
		self::jsCommon().
		$head;
	# --BEHAVIOR-- adminPageHTMLHead
	$core->callBehavior('adminPageHTMLHeadEnd');
	echo "</head>\n".
       
...
    Change History
comment:2 Changed 17 years ago by xave
- Status changed from new to closed
- Resolution set to duplicate
Bien vu, la proposition 2 est trop lourde, la proposition 1 est un doublon du #716.
Note: See
        TracTickets for help on using
        tickets.
    
Idem #716 (need review to close)