Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1.  
  2. {{{===}}}
  3. //<![CDATA[
  4. var resizeGridBox = function () {
  5. var width = (org.guzaba.cms.dhxLayout.cells('b').getWidth() - 20) + 'px';
  6. var height = (org.guzaba.cms.dhxLayout.cells('b').getHeight() - 200) + 'px';
  7.  
  8. $('gridbox').style.width = width;
  9. $('gridbox').style.height = height;
  10. }
  11.  
  12. resizeGridBox();
  13.  
  14. var grid = new dhtmlXGridObject('gridbox');
  15.  
  16. grid.setImagePath("external/dhtmlx/grid/imgs/");
  17. grid.setSkin('dhx_blue');
  18. grid.enableColumnAutoSize(true);
  19. grid.init();
  20.  
  21. grid.loadXML("<?= $this->dsp->data_url ?>");
  22.  
  23.  
  24. var show_application(application_id) {
  25. // org.guzaba.cms.loadContent(url({app:'app', p:'site', c:'manage_applications', a:'write', id:'application_id'}));
  26. }
  27.  
  28. ns.show_application = show_application;
  29. //]]>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement