Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
610 B

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function(){
  8. // expanders
  9. Ext.getBody().on('click', function(e, t){
  10. t = Ext.get(t);
  11. e.stopEvent();
  12. var bd = t.next('div.expandable-body');
  13. bd.enableDisplayMode();
  14. var bdi = bd.first();
  15. var expanded = bd.isVisible();
  16. if(expanded){
  17. bd.hide();
  18. }else{
  19. bdi.hide();
  20. bd.show();
  21. bdi.slideIn('l', {duration:0.2, stopFx: true, easing:'easeOut'});
  22. }
  23. t.update(!expanded ? 'Hide details' : 'Show details');
  24. }, null, {delegate:'a.expander'});
  25. });