Sha256: f0cef73f3440edd09bee7e71a08c08000633d306800478df9478376286142c5e

Contents?: true

Size: 777 Bytes

Versions: 2

Compression:

Stored size: 777 Bytes

Contents

// ==========================================================================
// Docs
// ==========================================================================

function main() {
  SC.page.awake() ;
  
  console.log('main') ;
  var clientRoot = window.location.pathname.toString().replace(/-docs\/.*/,'-docs').substr(1,window.location.pathname.length);
  var clientName = clientRoot.match(/([^\/]+)\/-docs/)[1];
  Docs.hidePanels() ;
  Docs.docsController.set('selection',[]) ;
  Docs.docsController.set('clientRoot', clientRoot) ;
  Docs.docsController.set('clientName', clientName) ;
  Docs.docsController.reloadDocs() ;
} ;

Docs.hidePanels = function() {
  SC.page.get('warningPanel').set('isVisible', false) ;
  SC.page.get('noDocsPanel').set('isVisible',false) ;
} ;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sproutcore-0.9.1 clients/sc_docs/main.js
sproutcore-0.9.0 clients/sc_docs/main.js