~ubuntu-branches/ubuntu/natty/otrs2/natty-updates

« back to all changes in this revision

Viewing changes to var/httpd/htdocs/yui/2.7.0/assets/YUIexamples.js

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2010-08-09 19:43:44 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20100809194344-absef1ut5mfj3qhv
Tags: 2.4.7+dfsg1-1
* Strip out yui from the source in the dfsg version.
  Closes: #591196
* Depend on libjs-yui and link to this package, instead of using the embedded
  yui version. This changes make the flash ticket statistics unuseable!
  Closes: #592146

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//Create namespace:
2
 
YAHOO.namespace("yui.examples");
3
 
 
4
 
//Only instantiate logger stuff if the page has loaded in logger mode:
5
 
if((YAHOO.widget.LogReader)&&(YAHOO.util.Dom.get("loggerDiv"))) {
6
 
        //Create Logger instance for example page:
7
 
        YAHOO.yui.examples.exampleLogger = new YAHOO.widget.LogReader("loggerDiv");
8
 
        
9
 
        //Logger comes up a bit more cleanly if its container has an approximate
10
 
        //height and is visibility:hidden intil after init;
11
 
        YAHOO.yui.examples.loggerInit = function() {
12
 
                YAHOO.util.Dom.setStyle("loggerDiv", "height", "auto");
13
 
                YAHOO.util.Dom.setStyle("loggerDiv", "visibility", "visible");
14
 
        }
15
 
        YAHOO.util.Event.onDOMReady(YAHOO.yui.examples.loggerInit);
16
 
}
17
 
 
18
 
//instantiate buttons:
19
 
YAHOO.yui.examples.onLinkButtonsMarkupReady = function() {
20
 
        //if the logger is in use, enable its button:
21
 
        if (YAHOO.util.Dom.get("loggerLink")) {
22
 
                var loggerButton = new YAHOO.widget.Button("loggerLink");
23
 
        }
24
 
        
25
 
        //if a new window button is present, initialize it:
26
 
        if (YAHOO.util.Dom.get("newWindowLink")) {
27
 
                var newWindowButton = new YAHOO.widget.Button("newWindowLink");
28
 
        }
29
 
}
30
 
//wait until loggerDiv is present; the window buttons will have loaded
31
 
//by then as well:
32
 
YAHOO.util.Event.onDOMReady(YAHOO.yui.examples.onLinkButtonsMarkupReady);
 
 
b'\\ No newline at end of file'