[ 
https://issues.apache.org/jira/browse/OOZIE-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Kanter updated OOZIE-1542:
---------------------------------

    Attachment: OOZIE-1542.patch

When jquery was added, the loading of oozie-console.js got moved earlier than 
the div element that had the message.  The javascript in oozie-console.js that 
was making this element visible when it can't find extjs would now be executed 
before the element existed (the order matters: 
http://stackoverflow.com/questions/14028959/why-does-jquery-or-a-dom-method-such-as-getelementbyid-not-find-the-element).
  

As suggested in the stack overflow answer, the patch simply moves that checking 
code into {{.ready()}} so that it is executed after the DOM is ready and the 
element exists.  

No tests because its a UI change, but I verified that it worked.  I'm not a 
javascript expert, but this was a pretty trivial fix that seems to be working 
as far as I can tell.

> When extjs isn't installed, the web UI is unhelpfully blank
> -----------------------------------------------------------
>
>                 Key: OOZIE-1542
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1542
>             Project: Oozie
>          Issue Type: Bug
>    Affects Versions: trunk, 4.0.0
>            Reporter: Robert Kanter
>            Assignee: Robert Kanter
>            Priority: Minor
>             Fix For: trunk, 4.0.1
>
>         Attachments: OOZIE-1542.patch
>
>
> When extjs isn't installed, the web UI page is currently unhelpfully blank 
> (it has the oozie logo and docs link).  In the past (when it used to be an 
> html page instead of a jsp page) it had some text to let the user know that 
> they have to install extjs to see the UI.  
> It would be good to put back the same or similar text; otherwise, users may 
> be confused why they can't see the UI if they forget to install extjs.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to