Web Interface For Lite Argus Control modules
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.

49 lines
1.7 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>The source code</title>
  5. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  6. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  7. </head>
  8. <body onload="prettyPrint();">
  9. <pre class="prettyprint lang-js">/*!
  10. * Ext JS Library 3.3.1
  11. * Copyright(c) 2006-2010 Sencha Inc.
  12. * licensing@sencha.com
  13. * http://www.sencha.com/license
  14. */
  15. (function() {
  16. Ext.override(Ext.list.Column, {
  17. init : function() {
  18. var types = Ext.data.Types,
  19. st = this.sortType;
  20. if(this.type){
  21. if(Ext.isString(this.type)){
  22. this.type = Ext.data.Types[this.type.toUpperCase()] || types.AUTO;
  23. }
  24. }else{
  25. this.type = types.AUTO;
  26. }
  27. // named sortTypes are supported, here we look them up
  28. if(Ext.isString(st)){
  29. this.sortType = Ext.data.SortTypes[st];
  30. }else if(Ext.isEmpty(st)){
  31. this.sortType = this.type.sortType;
  32. }
  33. }
  34. });
  35. Ext.tree.Column = Ext.extend(Ext.list.Column, {});
  36. Ext.tree.NumberColumn = Ext.extend(Ext.list.NumberColumn, {});
  37. Ext.tree.DateColumn = Ext.extend(Ext.list.DateColumn, {});
  38. Ext.tree.BooleanColumn = Ext.extend(Ext.list.BooleanColumn, {});
  39. Ext.reg('tgcolumn', Ext.tree.Column);
  40. Ext.reg('tgnumbercolumn', Ext.tree.NumberColumn);
  41. Ext.reg('tgdatecolumn', Ext.tree.DateColumn);
  42. Ext.reg('tgbooleancolumn', Ext.tree.BooleanColumn);
  43. })();
  44. </pre>
  45. </body>
  46. </html>