Question on the code ?
Collapse
X
-
Just as the name implies, the function registerView registers a new view for the content area of the GUI. The function changeView can then be used to switch to this view. The first four parameters to registerView are callback functions which are called to display, initialize, de-initialize and hide the view, respectively. An optional fifth argument is a callback function which is called when changing between nested views (e. g. if there is a view "calendar" and you change between "calendar/month" and "calendar/week").
-
Question on the code ?
Hello,
I've a question on the code, I don't understand this part.
Code:registerView("admin/management/users/UserSetup", function() { $("admin.users.tab1").style.display="block"; $("admin.users.panel1").className="tabPanelFirstHi"; }, null, null, function() { $("admin.users.tab1").style.display="none"; $("admin.users.panel1").className="tabPanelFirst"; } );
I saw that you use many times this function on your porgram but as this function returns a object but this object is not stored, what is his role ?
Thx !Tags: None
Leave a comment: