[ http://jira.magnolia.info/browse/MAGNOLIA-794?page=all ]
Philipp Bracher updated MAGNOLIA-794:
-------------------------------------
Fix Version: 3.0 RC1
> name collision in javascript with prototype.js
> ----------------------------------------------
>
> Key: MAGNOLIA-794
> URL: http://jira.magnolia.info/browse/MAGNOLIA-794
> Project: magnolia
> Type: Bug
> Components: admininterface
> Versions: 2.1.5
> Reporter: Tom Jensen
> Assignee: Boris Kraft
> Priority: Minor
> Fix For: 3.0 RC1
>
> Original Estimate: 5 minutes
> Remaining: 5 minutes
>
> The $() function in /admindocroot/js/generic.js breaks the prototype.js
> function of the same name. Would be better to conditionally create it as the
> functionality for magnolia should be the same. Do it as follows:
> function get$Script() {
> try {
> $;
> return $;
> } catch(e) {
> return function (element) {
> return document.getElementById(element);
> };
> }
> }
> $ = get$Script();
> I don't really like the try/catch methodology but I don't know of any other
> way to check for the $ function that isn't there.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------