old_sql 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. data/README.md +24 -13
  2. data/app/controllers/old_sql/report_controller.rb +3 -17
  3. data/app/views/layouts/old_sql/chart.html.erb +11 -0
  4. data/app/views/old_sql/report/chart.html.erb +8 -25
  5. data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
  6. data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
  7. data/lib/old_sql/report_design/chart.rb +2 -2
  8. data/lib/old_sql/report_design/chart_item.rb +4 -4
  9. data/lib/old_sql/report_design/chart_parser.rb +2 -2
  10. data/public/javascripts/old_sql/chart.js +33 -0
  11. metadata +5 -265
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
  180. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
  181. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
  182. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
  183. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
  184. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
  185. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
  186. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
  187. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
  188. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
  189. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
  190. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
  191. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
  192. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
  193. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
  194. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
  195. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
  196. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
  197. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
  198. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
  199. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
  200. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
  201. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
  202. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
  203. data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
  228. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
  233. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
  234. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
  263. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
  264. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
  265. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
  266. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
  267. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
  268. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
  269. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
  270. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
  271. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
  272. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
  273. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,83 +0,0 @@
1
- .. title:: MochiKit Documentation Index
2
-
3
- Distribution
4
- ============
5
-
6
- MochiKit - makes JavaScript suck a bit less
7
-
8
- - :mochiref:`MochiKit.Async` - manage asynchronous tasks
9
- - :mochiref:`MochiKit.Base` - functional programming and useful comparisons
10
- - :mochiref:`MochiKit.DOM` - painless DOM manipulation API
11
- - :mochiref:`MochiKit.DragAndDrop` - drag and drop
12
- - :mochiref:`MochiKit.Color` - color abstraction with CSS3 support
13
- - :mochiref:`MochiKit.DateTime` - "what time is it anyway?"
14
- - :mochiref:`MochiKit.Format` - string formatting goes here
15
- - :mochiref:`MochiKit.Iter` - itertools for JavaScript; iteration made HARD,
16
- and then easy
17
- - :mochiref:`MochiKit.Logging` - we're all tired of ``alert()``
18
- - :mochiref:`MochiKit.LoggingPane` - interactive :mochiref:`MochiKit.Logging`
19
- pane
20
- - :mochiref:`MochiKit.Selector` - selecting elements by CSS selector syntax
21
- - :mochiref:`MochiKit.Signal` - simple universal event handling
22
- - :mochiref:`MochiKit.Style` - painless CSS manipulation API
23
- - :mochiref:`MochiKit.Sortable` - sortable
24
- - :mochiref:`MochiKit.Visual` - visual effects
25
-
26
-
27
- Notes
28
- =====
29
-
30
- To turn off MochiKit's export feature (which may be necessary for
31
- compatibility with some existing code), do this before loading
32
- MochiKit::
33
-
34
- <script type="text/javascript">MochiKit = {__export__: false};</script>
35
-
36
- When export mode is off, you must use fully qualified names for
37
- all MochiKit functions (e.g. ``MochiKit.Base.map(...)``).
38
-
39
-
40
- Screencasts
41
- ===========
42
-
43
- - `MochiKit 1.1 Intro`__
44
-
45
- .. __: http://mochikit.com/screencasts/MochiKit_Intro-1
46
-
47
- See Also
48
- ========
49
-
50
- .. _`mochikit.com`: http://mochikit.com/
51
- .. _`from __future__ import *`: http://bob.pythonmac.org/
52
- .. _`MochiKit and Dojo`: http://trac.mochikit.com/wiki/HowToUseWithDojo
53
- .. _`MochiKit on JSAN`: http://openjsan.org/doc/b/bo/bob/MochiKit/
54
- .. _`MochiKit tag on del.icio.us`: http://del.icio.us/tag/mochikit
55
- .. _`MochiKit tag on Technorati`: http://technorati.com/tag/mochikit
56
- .. _`Google Groups: MochiKit`: http://groups.google.com/group/mochikit
57
-
58
- - `Google Groups: MochiKit`_: The official mailing list for discussions
59
- related to development of and with MochiKit
60
- - `mochikit.com`_: MochiKit's home on the web
61
- - `from __future__ import *`_: Bob Ippolito's blog
62
- - `MochiKit and Dojo`_: information for using MochiKit with Dojo Toolkit
63
- - `MochiKit on JSAN`_: the JSAN distribution page for MochiKit
64
- - `MochiKit tag on del.icio.us`_: Recent bookmarks related to MochiKit
65
- - `MochiKit tag on Technorati`_: Recent blog entries related to MochiKit
66
-
67
-
68
- Version History
69
- ===============
70
-
71
- .. include:: VersionHistory.rst
72
-
73
-
74
- Copyright
75
- =========
76
-
77
- Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
78
- dual-licensed free software; you can redistribute it and/or modify it
79
- under the terms of the `MIT License`_ or the `Academic Free License
80
- v2.1`_.
81
-
82
- .. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
83
- .. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
@@ -1,69 +0,0 @@
1
- h1 {
2
- font-size: 2em;
3
- color: #4B4545;
4
- text-align: center;
5
- }
6
-
7
- table.datagrid {
8
- width: 100%;
9
- border-collapse: collapse;
10
- }
11
-
12
- table.datagrid thead th {
13
- text-align: left;
14
- background-color: #4B4545;
15
- background-repeat: no-repeat;
16
- background-position: right center;
17
- color: white;
18
- font-weight: bold;
19
- padding: .3em .7em;
20
- font-size: .9em;
21
- padding-right: 5px;
22
- background-repeat: no-repeat;
23
- background-position: 95% right;
24
- }
25
-
26
- table.datagrid thead th a {
27
- color: white;
28
- text-decoration: none;
29
- font-size: 1.0em;
30
- background-repeat: no-repeat;
31
- background-position: center right;
32
- padding-right: 15px;
33
- }
34
-
35
- table.datagrid thead th.over {
36
- background-color: #746B6B;
37
- cursor: pointer;
38
- }
39
-
40
- table.datagrid tbody th {
41
- font-weight: bold;
42
- }
43
-
44
- table.datagrid tbody td, table.datagrid tbody th {
45
- text-align: left;
46
- padding: .3em .7em;
47
- border-bottom: 1px solid #eee;
48
- }
49
-
50
- table.datagrid tbody tr.alternate td, table.datagrid tbody tr.alternate th {
51
- background-color: #f1f1f1;
52
- }
53
-
54
- table.datagrid tfoot td, table.datagrid tfoot th {
55
- background-color: #FFFEE3;
56
- color: #4B4545;
57
- padding: .5em;
58
- font-weight: bold;
59
- border-top: 2px solid #4B4545;
60
- }
61
-
62
- table.datagrid tfoot th { text-align: left; }
63
-
64
- table.datagrid tfoot td { }
65
-
66
- .invisible { display: none; }
67
-
68
- .mochi-template { display: none; }
69
- .mochi-example { display: none; }
@@ -1,401 +0,0 @@
1
- /*
2
-
3
- On page load, the SortableManager:
4
-
5
- - Rips out all of the elements with the mochi-example class.
6
- - Finds the elements with the mochi-template class and saves them for
7
- later parsing with "MochiTAL".
8
- - Finds the anchor tags with the mochi:dataformat attribute and gives them
9
- onclick behvaiors to load new data, using their href as the data source.
10
- This makes your XML or JSON look like a normal link to a search engine
11
- (or javascript-disabled browser).
12
- - Clones the thead element from the table because it will be replaced on each
13
- sort.
14
- - Sets up a default sort key of "domain_name" and queues a load of the json
15
- document.
16
-
17
-
18
- On data load, the SortableManager:
19
-
20
- - Parses the table data from the document (columns list, rows list-of-lists)
21
- and turns them into a list of [{column:value, ...}] objects for easy sorting
22
- and column order stability.
23
- - Chooses the default (or previous) sort state and triggers a sort request
24
-
25
-
26
- On sort request:
27
-
28
- - Replaces the cloned thead element with a copy of it that has the sort
29
- indicator (&uarr; or &darr;) for the most recently sorted column (matched up
30
- to the first field in the th's mochi:sortcolumn attribute), and attaches
31
- onclick, onmousedown, onmouseover, onmouseout behaviors to them. The second
32
- field of mochi:sortcolumn attribute is used to perform a non-string sort.
33
- - Performs the sort on the domains list. If the second field of
34
- mochi:sortcolumn was not "str", then a custom function is used and the
35
- results are stored away in a __sort__ key, which is then used to perform the
36
- sort (read: shwartzian transform).
37
- - Calls processMochiTAL on the page, which finds the mochi-template sections
38
- and then looks for mochi:repeat and mochi:content attributes on them, using
39
- the data object.
40
-
41
- */
42
-
43
- processMochiTAL = function (dom, data) {
44
- /***
45
-
46
- A TAL-esque template attribute language processor,
47
- including content replacement and repeat
48
-
49
- ***/
50
-
51
- // nodeType == 1 is an element, we're leaving
52
- // text nodes alone.
53
- if (dom.nodeType != 1) {
54
- return;
55
- }
56
- var attr;
57
- // duplicate this element for each item in the
58
- // given list, and then process the duplicated
59
- // element again (sans mochi:repeat tag)
60
- attr = getAttribute(dom, "mochi:repeat");
61
- if (attr) {
62
- dom.removeAttribute("mochi:repeat");
63
- var parent = dom.parentNode;
64
- attr = attr.split(" ");
65
- var name = attr[0];
66
- var lst = valueForKeyPath(data, attr[1]);
67
- if (!lst) {
68
- return;
69
- }
70
- for (var i = 0; i < lst.length; i++) {
71
- data[name] = lst[i];
72
- var newDOM = dom.cloneNode(true);
73
- processMochiTAL(newDOM, data);
74
- parent.insertBefore(newDOM, dom);
75
- }
76
- parent.removeChild(dom);
77
- return;
78
- }
79
- // do content replacement if there's a mochi:content attribute
80
- // on the element
81
- attr = getAttribute(dom, "mochi:content");
82
- if (attr) {
83
- dom.removeAttribute("mochi:content");
84
- replaceChildNodes(dom, valueForKeyPath(data, attr));
85
- return;
86
- }
87
- // we make a shallow copy of the current list of child nodes
88
- // because it *will* change if there's a mochi:repeat in there!
89
- var nodes = list(dom.childNodes);
90
- for (var i = 0; i < nodes.length; i++) {
91
- processMochiTAL(nodes[i], data);
92
- }
93
- };
94
-
95
- mouseOverFunc = function () {
96
- addElementClass(this, "over");
97
- };
98
-
99
- mouseOutFunc = function () {
100
- removeElementClass(this, "over");
101
- };
102
-
103
- ignoreEvent = function (ev) {
104
- if (ev && ev.preventDefault) {
105
- ev.preventDefault();
106
- ev.stopPropagation();
107
- } else if (typeof(event) != 'undefined') {
108
- event.cancelBubble = false;
109
- event.returnValue = false;
110
- }
111
- };
112
-
113
- SortTransforms = {
114
- "str": operator.identity,
115
- "istr": function (s) { return s.toLowerCase(); },
116
- "isoDate": isoDate
117
- };
118
-
119
- getAttribute = function (dom, key) {
120
- try {
121
- return dom.getAttribute(key);
122
- } catch (e) {
123
- return null;
124
- }
125
- };
126
-
127
- datatableFromXMLRequest = function (req) {
128
- /***
129
-
130
- This effectively converts domains.xml to the
131
- same form as domains.json
132
-
133
- ***/
134
- var xml = req.responseXML;
135
- var nodes = xml.getElementsByTagName("column");
136
- var rval = {"columns": map(scrapeText, nodes)};
137
- var rows = [];
138
- nodes = xml.getElementsByTagName("row")
139
- for (var i = 0; i < nodes.length; i++) {
140
- var cells = nodes[i].getElementsByTagName("cell");
141
- rows.push(map(scrapeText, cells));
142
- }
143
- rval.rows = rows;
144
- return rval;
145
- };
146
-
147
- loadFromDataAnchor = function (ev) {
148
- ignoreEvent(ev);
149
- var format = this.getAttribute("mochi:dataformat");
150
- var href = this.href;
151
- sortableManager.loadFromURL(format, href);
152
- };
153
-
154
- valueForKeyPath = function (data, keyPath) {
155
- var chunks = keyPath.split(".");
156
- while (chunks.length && data) {
157
- data = data[chunks.shift()];
158
- }
159
- return data;
160
- };
161
-
162
-
163
- SortableManager = function () {
164
- this.thead = null;
165
- this.thead_proto = null;
166
- this.tbody = null;
167
- this.deferred = null;
168
- this.columns = [];
169
- this.rows = [];
170
- this.templates = [];
171
- this.sortState = {};
172
- bindMethods(this);
173
- };
174
-
175
- SortableManager.prototype = {
176
-
177
- "initialize": function () {
178
- // just rip all mochi-examples out of the DOM
179
- var examples = getElementsByTagAndClassName(null, "mochi-example");
180
- while (examples.length) {
181
- swapDOM(examples.pop(), null);
182
- }
183
- // make a template list
184
- var templates = getElementsByTagAndClassName(null, "mochi-template");
185
- for (var i = 0; i < templates.length; i++) {
186
- var template = templates[i];
187
- var proto = template.cloneNode(true);
188
- removeElementClass(proto, "mochi-template");
189
- this.templates.push({
190
- "template": proto,
191
- "node": template
192
- });
193
- }
194
- // set up the data anchors to do loads
195
- var anchors = getElementsByTagAndClassName("a", null);
196
- for (var i = 0; i < anchors.length; i++) {
197
- var node = anchors[i];
198
- var format = getAttribute(node, "mochi:dataformat");
199
- if (format) {
200
- node.onclick = loadFromDataAnchor;
201
- }
202
- }
203
-
204
- // to find sort columns
205
- this.thead = getElementsByTagAndClassName("thead", null)[0];
206
- this.thead_proto = this.thead.cloneNode(true);
207
-
208
- this.sortkey = "domain_name";
209
- this.loadFromURL("json", "domains.json");
210
- },
211
-
212
- "loadFromURL": function (format, url) {
213
- log('loadFromURL', format, url);
214
- var d;
215
- if (this.deferred) {
216
- this.deferred.cancel();
217
- }
218
- if (format == "xml") {
219
- var d = doXHR(url, {
220
- mimeType: 'text/xml',
221
- headers: {Accept: 'text/xml'}
222
- });
223
- d.addCallback(datatableFromXMLRequest);
224
- } else if (format == "json") {
225
- d = loadJSONDoc(url);
226
- } else {
227
- throw new TypeError("format " + repr(format) + " not supported");
228
- }
229
- // keep track of the current deferred, so that we can cancel it
230
- this.deferred = d;
231
- var self = this;
232
- // on success or error, remove the current deferred because it has
233
- // completed, and pass through the result or error
234
- d.addBoth(function (res) {
235
- self.deferred = null;
236
- log('loadFromURL success');
237
- return res;
238
- });
239
- // on success, tag the result with the format used so we can display
240
- // it
241
- d.addCallback(function (res) {
242
- res.format = format;
243
- return res;
244
- });
245
- // call this.initWithData(data) once it's ready
246
- d.addCallback(this.initWithData);
247
- // if anything goes wrong, except for a simple cancellation,
248
- // then log the error and show the logger
249
- d.addErrback(function (err) {
250
- if (err instanceof CancelledError) {
251
- return;
252
- }
253
- logError(err);
254
- logger.debuggingBookmarklet();
255
- });
256
- return d;
257
- },
258
-
259
- "initWithData": function (data) {
260
- /***
261
-
262
- Initialize the SortableManager with a table object
263
-
264
- ***/
265
-
266
- // reformat to [{column:value, ...}, ...] style as the domains key
267
- var domains = [];
268
- var rows = data.rows;
269
- var cols = data.columns;
270
- for (var i = 0; i < rows.length; i++) {
271
- var row = rows[i];
272
- var domain = {};
273
- for (var j = 0; j < cols.length; j++) {
274
- domain[cols[j]] = row[j];
275
- }
276
- domains.push(domain);
277
- }
278
- data.domains = domains;
279
- this.data = data;
280
- // perform a sort and display based upon the previous sort state,
281
- // defaulting to an ascending sort if this is the first sort
282
- var order = this.sortState[this.sortkey];
283
- if (typeof(order) == 'undefined') {
284
- order = true;
285
- }
286
- this.drawSortedRows(this.sortkey, order, false);
287
-
288
- },
289
-
290
- "onSortClick": function (name) {
291
- /***
292
-
293
- Return a sort function for click events
294
-
295
- ***/
296
- // save ourselves from doing a bind
297
- var self = this;
298
- // on click, flip the last sort order of that column and sort
299
- return function () {
300
- log('onSortClick', name);
301
- var order = self.sortState[name];
302
- if (typeof(order) == 'undefined') {
303
- // if it's never been sorted by this column, sort ascending
304
- order = true;
305
- } else if (self.sortkey == name) {
306
- // if this column was sorted most recently, flip the sort order
307
- order = !((typeof(order) == 'undefined') ? false : order);
308
- }
309
- self.drawSortedRows(name, order, true);
310
- };
311
- },
312
-
313
- "drawSortedRows": function (key, forward, clicked) {
314
- /***
315
-
316
- Draw the new sorted table body, and modify the column headers
317
- if appropriate
318
-
319
- ***/
320
- log('drawSortedRows', key, forward);
321
-
322
- // save it so we can flip next time
323
- this.sortState[key] = forward;
324
- this.sortkey = key;
325
- var sortstyle;
326
-
327
- // setup the sort columns
328
- var thead = this.thead_proto.cloneNode(true);
329
- var cols = thead.getElementsByTagName("th");
330
- for (var i = 0; i < cols.length; i++) {
331
- var col = cols[i];
332
- var sortinfo = getAttribute(col, "mochi:sortcolumn").split(" ");
333
- var sortkey = sortinfo[0];
334
- col.onclick = this.onSortClick(sortkey);
335
- col.onmousedown = ignoreEvent;
336
- col.onmouseover = mouseOverFunc;
337
- col.onmouseout = mouseOutFunc;
338
- // if this is the sorted column
339
- if (sortkey == key) {
340
- sortstyle = sortinfo[1];
341
- // \u2193 is down arrow, \u2191 is up arrow
342
- // forward sorts mean the rows get bigger going down
343
- var arrow = (forward ? "\u2193" : "\u2191");
344
- // add the character to the column header
345
- col.appendChild(SPAN(null, arrow));
346
- if (clicked) {
347
- col.onmouseover();
348
- }
349
- }
350
- }
351
- this.thead = swapDOM(this.thead, thead);
352
-
353
- // apply a sort transform to a temporary column named __sort__,
354
- // and do the sort based on that column
355
- if (!sortstyle) {
356
- sortstyle = "str";
357
- }
358
- var sortfunc = SortTransforms[sortstyle];
359
- if (!sortfunc) {
360
- throw new TypeError("unsupported sort style " + repr(sortstyle));
361
- }
362
- var domains = this.data.domains;
363
- for (var i = 0; i < domains.length; i++) {
364
- var domain = domains[i];
365
- domain.__sort__ = sortfunc(domain[key]);
366
- }
367
-
368
- // perform the sort based on the state given (forward or reverse)
369
- var cmp = (forward ? keyComparator : reverseKeyComparator);
370
- domains.sort(cmp("__sort__"));
371
-
372
- // process every template with the given data
373
- // and put the processed templates in the DOM
374
- for (var i = 0; i < this.templates.length; i++) {
375
- log('template', i, template);
376
- var template = this.templates[i];
377
- var dom = template.template.cloneNode(true);
378
- processMochiTAL(dom, this.data);
379
- template.node = swapDOM(template.node, dom);
380
- }
381
-
382
-
383
- }
384
-
385
- };
386
-
387
- // create the global SortableManager and initialize it on page load
388
- sortableManager = new SortableManager();
389
- addLoadEvent(sortableManager.initialize);
390
-
391
- // rewrite the view-source links
392
- addLoadEvent(function () {
393
- var elems = getElementsByTagAndClassName("A", "view-source");
394
- var page = "ajax_tables/";
395
- for (var i = 0; i < elems.length; i++) {
396
- var elem = elems[i];
397
- var href = elem.href.split(/\//).pop();
398
- elem.target = "_blank";
399
- elem.href = "../view-source/view-source.html#" + page + href;
400
- }
401
- });