Dotclear

Ticket #686 (closed enhancement: duplicate)

Opened 17 years ago

Last modified 17 years ago

"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

 Post on sur Forum

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:1 Changed 17 years ago by Tomtom33

Idem #716 (need review to close)

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.

comment:3 Changed 17 years ago by xave

Enfin, le contraire, puisqu'il a été déposé avant, mais le résultat est le même. :)

comment:4 Changed 17 years ago by vincent

ceci dit la deuxième proposition a l'avantage de ne pas casser la compatibilité arrière :)

Note: See TracTickets for help on using tickets.

Sites map