Guest User

Untitled

a guest
Jun 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. YUI.add('PageContent', function(Y) {
  2.  
  3. Y.namespace('Project').PageContent = Y.Base.create('PageContent', Y.Base, [], {
  4. requests: new Object(),
  5. history : new Object(),
  6. init: function() {
  7. // init the HistoryHash controler
  8. this.history = new Y.HistoryHash();
  9. },
  10. loadPage: function(id) {
  11. Y.one('#content').set("innerHTML", '<div id="loader2"><img src="gfx/ajax-loader2.gif" ><span>loading...</span></div>');
  12. this.loadContent(id);
  13. },
  14. loadContent : function(id) {
Add Comment
Please, Sign In to add comment