compass-jquery-plugin 0.3.2.5 → 0.3.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. data/README.md +16 -1
  2. data/VERSION.yml +2 -2
  3. data/lib/handle_js_files.rb +21 -0
  4. data/lib/jquery/gridify/grid_view.rb +2 -2
  5. data/lib/jquery/jquery_selector_assertions.rb +0 -36
  6. data/lib/jquery/tiny_mce.rb +5 -0
  7. data/templates/dynatree/jquery.dynatree.js +17 -24
  8. data/templates/dynatree/jquery.dynatree.min.js +10 -10
  9. data/templates/ical/jquery.ical.js +107 -25
  10. data/templates/ical/jquery.ical.min.js +182 -180
  11. data/templates/ical/jquery/ical.scss +2 -2
  12. data/templates/jqgrid/jquery.jqGrid.js +2498 -2072
  13. data/templates/jqgrid/jquery.jqGrid.min.js +447 -431
  14. data/templates/jqgrid/jquery/jqGrid.scss +11 -9
  15. data/templates/jquery/history.adapter.jquery.js +52 -52
  16. data/templates/jquery/history.html4.js +680 -680
  17. data/templates/jquery/history.js +1288 -1288
  18. data/templates/jquery/jquery.js +8168 -8143
  19. data/templates/jquery/jquery/ui/cowboy.scss +87 -0
  20. data/templates/jquery/jquery/ui/cowboy/cowboy_hat.png +0 -0
  21. data/templates/jquery/jquery/ui/cowboy/ui-anim_basic_16x16.gif +0 -0
  22. data/templates/jquery/jquery/ui/cowboy/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  23. data/templates/jquery/jquery/ui/cowboy/ui-bg_diagonals-thick_20_ff7f00_40x40.png +0 -0
  24. data/templates/jquery/jquery/ui/cowboy/ui-bg_flat_10_000000_40x100.png +0 -0
  25. data/templates/jquery/jquery/ui/cowboy/ui-bg_glass_100_fdebdc_1x400.png +0 -0
  26. data/templates/jquery/jquery/ui/cowboy/ui-bg_glass_100_ffd6af_1x400.png +0 -0
  27. data/templates/jquery/jquery/ui/cowboy/ui-bg_glass_65_eeeeee_1x400.png +0 -0
  28. data/templates/jquery/jquery/ui/cowboy/ui-bg_gloss-wave_35_ff7f00_500x100.png +0 -0
  29. data/templates/jquery/jquery/ui/cowboy/ui-bg_highlight-soft_100_dddddd_1x100.png +0 -0
  30. data/templates/jquery/jquery/ui/cowboy/ui-bg_highlight-soft_75_c4884f_1x100.png +0 -0
  31. data/templates/jquery/jquery/ui/cowboy/ui-icons_222222_256x240.png +0 -0
  32. data/templates/jquery/jquery/ui/cowboy/ui-icons_228ef1_256x240.png +0 -0
  33. data/templates/jquery/jquery/ui/cowboy/ui-icons_333333_256x240.png +0 -0
  34. data/templates/jquery/jquery/ui/cowboy/ui-icons_913d00_256x240.png +0 -0
  35. data/templates/jquery/jquery/ui/cowboy/ui-icons_ff7f00_256x240.png +0 -0
  36. data/templates/jquery/jquery/ui/cowboy/ui-icons_ffd27a_256x240.png +0 -0
  37. data/templates/jquery/jquery/ui/cowboy/ui-icons_ffffff_256x240.png +0 -0
  38. data/templates/jquery/json2.js +214 -214
  39. data/templates/jquery/manifest.rb +19 -0
  40. data/templates/mobile/jquery.mobile.js +149 -96
  41. data/templates/mobile/jquery.mobile.min.js +2 -2
  42. data/templates/secret_sauce/app/views/shared/_ui_grid_for_without_block.js.haml +1 -1
  43. data/templates/tiny_mce/config/initializers/tiny_mce.rb +3 -0
  44. data/templates/tiny_mce/manifest.rb +251 -0
  45. data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -0
  46. data/templates/tiny_mce/tiny_mce/langs/en.js +222 -0
  47. data/templates/tiny_mce/tiny_mce/license.txt +504 -0
  48. data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +5 -0
  49. data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -0
  50. data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +57 -0
  51. data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +43 -0
  52. data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +7 -0
  53. data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +58 -0
  54. data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +13 -0
  55. data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -0
  56. data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +50 -0
  57. data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +235 -0
  58. data/templates/tiny_mce/tiny_mce/plugins/advimage/img/sample.gif +0 -0
  59. data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +445 -0
  60. data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +45 -0
  61. data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +8 -0
  62. data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -0
  63. data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +61 -0
  64. data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +525 -0
  65. data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +54 -0
  66. data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +338 -0
  67. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -0
  68. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +154 -0
  69. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -0
  70. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +119 -0
  71. data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -0
  72. data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +431 -0
  73. data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +4 -0
  74. data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -0
  75. data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +120 -0
  76. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -0
  77. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +154 -0
  78. data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -0
  79. data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +82 -0
  80. data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -0
  81. data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +43 -0
  82. data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +41 -0
  83. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
  84. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
  85. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  86. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  87. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
  88. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
  89. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
  90. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
  91. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  92. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
  93. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
  94. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
  95. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  96. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
  97. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
  98. data/templates/tiny_mce/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
  99. data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +22 -0
  100. data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +20 -0
  101. data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +22 -0
  102. data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -0
  103. data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +84 -0
  104. data/templates/tiny_mce/tiny_mce/plugins/example/img/example.gif +0 -0
  105. data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +19 -0
  106. data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +3 -0
  107. data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +3 -0
  108. data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +182 -0
  109. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -0
  110. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +166 -0
  111. data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +571 -0
  112. data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +492 -0
  113. data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +85 -0
  114. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
  115. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +159 -0
  116. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
  117. data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -0
  118. data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +54 -0
  119. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
  120. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +696 -0
  121. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  122. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  123. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  124. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  125. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  126. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  127. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  128. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
  129. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +387 -0
  130. data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -0
  131. data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +83 -0
  132. data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -0
  133. data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +214 -0
  134. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -0
  135. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +139 -0
  136. data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +17 -0
  137. data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -0
  138. data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +770 -0
  139. data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +73 -0
  140. data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +340 -0
  141. data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +109 -0
  142. data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +812 -0
  143. data/templates/tiny_mce/tiny_mce/plugins/media/moxieplayer.swf +0 -0
  144. data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -0
  145. data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +53 -0
  146. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -0
  147. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +90 -0
  148. data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -0
  149. data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +74 -0
  150. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -0
  151. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +899 -0
  152. data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +36 -0
  153. data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +51 -0
  154. data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
  155. data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +27 -0
  156. data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +21 -0
  157. data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -0
  158. data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +53 -0
  159. data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +28 -0
  160. data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +73 -0
  161. data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +17 -0
  162. data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -0
  163. data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +34 -0
  164. data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -0
  165. data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +101 -0
  166. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +6 -0
  167. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -0
  168. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +61 -0
  169. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +140 -0
  170. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +16 -0
  171. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +100 -0
  172. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -0
  173. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -0
  174. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +415 -0
  175. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/img/wline.gif +0 -0
  176. data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +13 -0
  177. data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -0
  178. data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +55 -0
  179. data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +635 -0
  180. data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +70 -0
  181. data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +838 -0
  182. data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -0
  183. data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +114 -0
  184. data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +178 -0
  185. data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +17 -0
  186. data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +25 -0
  187. data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +13 -0
  188. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -0
  189. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1183 -0
  190. data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +284 -0
  191. data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +27 -0
  192. data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +232 -0
  193. data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +450 -0
  194. data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +74 -0
  195. data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +32 -0
  196. data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +157 -0
  197. data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +188 -0
  198. data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +12 -0
  199. data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +23 -0
  200. data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -0
  201. data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +159 -0
  202. data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +106 -0
  203. data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +15 -0
  204. data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +31 -0
  205. data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -0
  206. data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +83 -0
  207. data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -0
  208. data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +114 -0
  209. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +142 -0
  210. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +142 -0
  211. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +149 -0
  212. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +142 -0
  213. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +11 -0
  214. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +9 -0
  215. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +162 -0
  216. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -0
  217. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
  218. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +162 -0
  219. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +28 -0
  220. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +28 -0
  221. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +125 -0
  222. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +28 -0
  223. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +53 -0
  224. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +229 -0
  225. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +53 -0
  226. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +32 -0
  227. data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +52 -0
  228. data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +26 -0
  229. data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +51 -0
  230. data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +74 -0
  231. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -0
  232. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1328 -0
  233. data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +80 -0
  234. data/templates/tiny_mce/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  235. data/templates/tiny_mce/tiny_mce/themes/advanced/img/flash.gif +0 -0
  236. data/templates/tiny_mce/tiny_mce/themes/advanced/img/icons.gif +0 -0
  237. data/templates/tiny_mce/tiny_mce/themes/advanced/img/iframe.gif +0 -0
  238. data/templates/tiny_mce/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
  239. data/templates/tiny_mce/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
  240. data/templates/tiny_mce/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
  241. data/templates/tiny_mce/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
  242. data/templates/tiny_mce/tiny_mce/themes/advanced/img/trans.gif +0 -0
  243. data/templates/tiny_mce/tiny_mce/themes/advanced/img/video.gif +0 -0
  244. data/templates/tiny_mce/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
  245. data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +73 -0
  246. data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +42 -0
  247. data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +354 -0
  248. data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +329 -0
  249. data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +247 -0
  250. data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +153 -0
  251. data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +56 -0
  252. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +68 -0
  253. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +54 -0
  254. data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +57 -0
  255. data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +47 -0
  256. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +47 -0
  257. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
  258. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  259. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  260. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  261. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  262. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  263. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  264. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +213 -0
  265. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +23 -0
  266. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
  267. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +101 -0
  268. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +46 -0
  269. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +116 -0
  270. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  271. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  272. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  273. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +215 -0
  274. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
  275. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
  276. data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +25 -0
  277. data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -0
  278. data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +84 -0
  279. data/templates/tiny_mce/tiny_mce/themes/simple/img/icons.gif +0 -0
  280. data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +11 -0
  281. data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +25 -0
  282. data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +32 -0
  283. data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +17 -0
  284. data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  285. data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +35 -0
  286. data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -0
  287. data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +5 -0
  288. data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +70 -0
  289. data/templates/tiny_mce/tiny_mce/utils/form_utils.js +207 -0
  290. data/templates/tiny_mce/tiny_mce/utils/mctabs.js +162 -0
  291. data/templates/tiny_mce/tiny_mce/utils/validate.js +252 -0
  292. metadata +273 -4
data/README.md CHANGED
@@ -18,7 +18,7 @@ A Sass-based Meta-Framework for Compass that allows you to mix and match any of
18
18
  * jquery.dynatree.js V1.0.2
19
19
  * jquery.ribbon.js
20
20
  * jquery.jqGrid.js V3.8.2 (with minor changes to make it RESTful)
21
-
21
+ * jquery.tinymce.js V3.4
22
22
  and for mobile devices <i>(using pure haml/sass without compass)</i>:
23
23
 
24
24
  * jquery.mobile.js 1.0a3
@@ -168,6 +168,19 @@ To use the stylesheets and javacripts include:
168
168
  = stylesheet_link_tag :ical, :media => 'screen, projection'
169
169
  = javascript_include_tag :ical</pre>
170
170
 
171
+
172
+ jQuery TinyMCE Plugin
173
+ --------------------
174
+
175
+ Use compass to install the jQuery TinyMCE Editor Javascript WYSIWYG Editor into your project.
176
+
177
+ <pre>compass install [-r jquery] jquery/tiny_mce <project name></pre>
178
+
179
+ To use the javascripts include:
180
+
181
+ <pre>
182
+ = javascript_include_tag :tiny_mce</pre>
183
+
171
184
  Graphics
172
185
  --------
173
186
 
@@ -280,6 +293,7 @@ jQuery Plugins included:
280
293
  * Andrew M Andrews III for [Any+Time][29]
281
294
  * Steven Wittens for [Farbtastic Colorpicker plugin][30]
282
295
  * Adam Shaw for [FullCalendar][31]
296
+ * Moxiecode Systems AB for [TinyMCE][40]
283
297
 
284
298
  Other stuff included:
285
299
  ---------------------
@@ -343,3 +357,4 @@ Copyright &copy; 2009-2011 Kosmas Schuetz. See LICENSE for details.
343
357
  [37]: http://github.com/cowboy/jquery-dotimeout
344
358
  [38]: http://github.com/gamache/DSt
345
359
  [39]: http://github.com/thegrubbsian/jquery.ganttView
360
+ [40]: http://tinymce.moxiecode.com/
data/VERSION.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
- :commit:
3
- :state: 5
2
+ :commit:
3
+ :state: 6
4
4
  :tiny: 2
5
5
  :minor: 3
6
6
  :major: 0
@@ -1,3 +1,6 @@
1
+ require 'fileutils'
2
+ require 'find'
3
+
1
4
  GEM_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
2
5
  GOOGLE_JS_COMPRESSOR = File.join(GEM_ROOT, 'lib', 'google-compiler-20100917.jar')
3
6
  YUI_JS_COMPRESSOR = File.join(GEM_ROOT, 'lib', 'yuicompressor-2.4.4.jar')
@@ -25,3 +28,21 @@ def all_files(pattern)
25
28
  FileList[pattern].collect { |filename| File.read(filename) }.join "\n\n"
26
29
  end
27
30
 
31
+ def handleRecursiveDir(manifest, srcDir, destDir)
32
+ len = srcDir.length
33
+ actualDir = destDir
34
+ FileUtils.mkdir_p(destDir)
35
+ Find.find(srcDir) do |entry|
36
+ if File.directory?(entry) and entry != srcDir and entry != actualDir
37
+ actualDir = File.join(destDir, entry[len, 255])
38
+ FileUtils.mkdir_p(actualDir)
39
+ end
40
+ end
41
+ Find.find(srcDir) do |entry|
42
+ if File.file?(entry)
43
+ ending = entry[len, 255]
44
+ FileUtils.cp(entry, File.join(destDir, ending))
45
+ manifest.print "javascript 'tiny_mce/#{ending}'\n"
46
+ end
47
+ end
48
+ end
@@ -203,7 +203,7 @@ module Gridify
203
203
 
204
204
  if tree_grid
205
205
  vals[:treeGrid] = tree_grid
206
- vals[:gridview] = false
206
+ vals[:gridview] = true
207
207
  vals[:sortable] = false
208
208
  end
209
209
 
@@ -212,7 +212,7 @@ module Gridify
212
212
  vals[:subGrid] = sub_grid
213
213
  vals[:subGridUrl] = sub_grid_url
214
214
  vals[:subGridModel] = sub_grid_model
215
- vals[:gridview] = false
215
+ vals[:gridview] = true
216
216
  end
217
217
 
218
218
  #events
@@ -30,48 +30,12 @@ module ActionController
30
30
  :insert_bottom => "\(jQuery|$\)\\(#{RJS_ANY_ID}\\)\\.append\\(#{RJS_PATTERN_HTML}\\)",
31
31
  :effect => "\(jQuery|$\)\\(#{RJS_ANY_ID}\\)\\.effect\\(",
32
32
  :highlight => "\(jQuery|$\)\\(#{RJS_ANY_ID}\\)\\.effect\\('highlight'"
33
-
34
- =
35
- begin
36
- TODO :
37
-
38
- I 've never used the chained_* so I don' t know if they work.
39
-
40
- I couldn 't seem to get assert_select_rjs to actually match the single quoted ids
41
- which are created by some of the effects like ...
42
- ... jQuery(' #item_1559').effect('highlight',{},1000);
43
- so I modified jrails/lib/jrails.rb line 337
44
- ... javascript = "#{JQUERY_VAR}('#{jquery_id(element_id)}').#{mode || 'effect'}('#{name}'"
45
- to
46
- ... javascript = "#{JQUERY_VAR}(\"#{jquery_id(element_id)}\").#{mode || 'effect'}('#{name}'"
47
- so it writes double quotes like most of the others.This change should probably be
48
- done to the others, but as I don 't use them so haven' t tested them.
49
-
50
- My other option seemed to require modifying rails ' selector_assertions.rb line 427
51
- ... id ? statement.gsub(RJS_ANY_ID, "\"#{id}\"") : statement
52
- which forces the expectation that the id is double quoted. If I changed it to
53
- ... statement.gsub(RJS_ANY_ID, "[\"']{1} #{id}[\"']{1}")
54
- I believe that it would work as the logic seemed to work in some testing.
55
- I have not actually tried to modify rails, as this file doesn 't seem to
56
- actually be in the git repository.
57
-
58
-
59
- jrails now uses a nonconflict option so $ is jQuery. I put both in the pattern in case it gets changed.
60
-
61
- :insert_after => "",
62
- :insert_before => "",
63
- =end
64
-
65
33
  }
66
34
 
67
35
  [:remove, :show, :hide, :toggle, :reset].each do |action|
68
36
  RJS_STATEMENTS[action] = "\(jQuery|$\)\\(#{RJS_ANY_ID}\\)\\.#{action}\\(\\)"
69
37
  end
70
38
 
71
- # TODO:
72
- #RJS_STATEMENTS[:insert_html] = "Element.insert\\(#{RJS_ANY_ID}, \\{ (#{RJS_INSERTIONS.join('|')}):
73
- #{RJS_PATTERN_HTML} \\}\\)"
74
-
75
39
  RJS_STATEMENTS[:any] = Regexp.new("(#{RJS_STATEMENTS.values.join('|')})")
76
40
  RJS_PATTERN_UNICODE_ESCAPED_CHAR = /\\u([0-9a-zA-Z]{4})/
77
41
  end
@@ -0,0 +1,5 @@
1
+ module ActionView
2
+ module Helpers
3
+
4
+ end
5
+ end
@@ -255,11 +255,11 @@ var DTNodeStatus_Ok = 0;
255
255
  /**
256
256
  * Create <li><span>..</span> .. </li> tags for this node.
257
257
  *
258
- * <li id='key'> // This div contains the node's span and list of child div's.
258
+ * <li id='KEY' dtnode=NODE> // This div contains the node's span and list of child div's.
259
259
  * <span class='title'>S S S A</span> // Span contains graphic spans and title <a> tag
260
260
  * <ul> // only present, when node has children
261
- * <li>child1</li>
262
- * <li>child2</li>
261
+ * <li id='KEY' dtnode=NODE>child1</li>
262
+ * <li id='KEY' dtnode=NODE>child2</li>
263
263
  * </ul>
264
264
  * </li>
265
265
  */
@@ -552,7 +552,7 @@ var DTNodeStatus_Ok = 0;
552
552
  this._setStatusNode(null);
553
553
  $(this.span).removeClass(this.tree.options.classNames.nodeLoading);
554
554
  this.isLoading = false;
555
- this.render();
555
+ // this.render();
556
556
  if (this.tree.options.autoFocus) {
557
557
  if (this === this.tree.tnRoot && this.childList && this.childList.length > 0) {
558
558
  // special case: using ajaxInit
@@ -1094,7 +1094,7 @@ var DTNodeStatus_Ok = 0;
1094
1094
  }
1095
1095
  }
1096
1096
  // Make sure that clicks stop, otherwise <a href='#'> jumps to the top
1097
- return false;
1097
+ event.preventDefault();
1098
1098
  },
1099
1099
 
1100
1100
  _onDblClick: function(event) {
@@ -1189,7 +1189,10 @@ var DTNodeStatus_Ok = 0;
1189
1189
  handled = false;
1190
1190
  }
1191
1191
  // Return false, if handled, to prevent default processing
1192
- return !handled;
1192
+ // return !handled;
1193
+ if (handled) {
1194
+ event.preventDefault();
1195
+ }
1193
1196
  },
1194
1197
 
1195
1198
  _onKeypress: function(event) {
@@ -1481,7 +1484,9 @@ var DTNodeStatus_Ok = 0;
1481
1484
  this.childList = [];
1482
1485
  } else if (! beforeNode) {
1483
1486
  // Fix 'lastsib'
1484
- $(this.childList[this.childList.length - 1].span).removeClass(opts.classNames.lastsib);
1487
+ if (this.childList.length > 0) {
1488
+ $(this.childList[this.childList.length - 1].span).removeClass(opts.classNames.lastsib);
1489
+ }
1485
1490
  }
1486
1491
  if (beforeNode) {
1487
1492
  var iBefore = $.inArray(beforeNode, this.childList);
@@ -2062,21 +2067,9 @@ var DTNodeStatus_Ok = 0;
2062
2067
  // We don't do this however, if we try to load from an embedded UL element.
2063
2068
  if (opts.children || (opts.initAjax && opts.initAjax.url) || opts.initId) {
2064
2069
  $(this.divTree).empty();
2065
- } else if (this.divRoot) {
2066
- $(this.divRoot).remove();
2067
2070
  }
2068
- /*
2069
- // create the root element
2070
- this.tnRoot = new DynaTreeNode(null, this, {title: opts.title, key: "root"});
2071
- this.tnRoot.data.isFolder = true;
2072
- this.tnRoot.render(false, false);
2073
- this.divRoot = this.tnRoot.div;
2074
- this.divRoot.className = opts.classNames.container;
2075
-
2076
- // add root to container
2077
- // TODO: this should be delayed until all children have been created for performance reasons
2078
- this.divTree.appendChild(this.divRoot);
2079
- */
2071
+ var $ulInitialize = this.$tree.find(">ul:first").hide();
2072
+
2080
2073
  // Create the root element
2081
2074
  this.tnRoot = new DynaTreeNode(null, this, {});
2082
2075
  this.tnRoot.bExpanded = true;
@@ -2107,9 +2100,9 @@ var DTNodeStatus_Ok = 0;
2107
2100
 
2108
2101
  } else {
2109
2102
  // Init tree from the first UL element inside the container <div>
2110
- var $ul = this.$tree.find(">ul:first").hide();
2111
- this._createFromTag(root, $ul);
2112
- $ul.remove();
2103
+ // var $ul = this.$tree.find(">ul:first").hide();
2104
+ this._createFromTag(root, $ulInitialize);
2105
+ $ulInitialize.remove();
2113
2106
  }
2114
2107
 
2115
2108
  this._checkConsistency();
@@ -12,7 +12,7 @@ f.fx&&c===e){d=f.fx.duration||200;g(this.ul).animate(f.fx,d)}else this.ul.style.
12
12
  else if(this.childList.length===1&&this.childList[0].isStatusNode())return;return true}return!!this.childList},isFirstSibling:function(){var a=this.parent;return!a||a.childList[0]===this},isLastSibling:function(){var a=this.parent;return!a||a.childList[a.childList.length-1]===this},getPrevSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,b=1,c=a.length;b<c;b++)if(a[b]===this)return a[b-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var a=this.parent.childList,
13
13
  b=0,c=a.length-1;b<c;b++)if(a[b]===this)return a[b+1];return null},isStatusNode:function(){return this.data.isStatusNode===true},isChildOf:function(a){return this.parent&&this.parent===a},isDescendantOf:function(a){if(!a)return false;for(var b=this.parent;b;){if(b===a)return true;b=b.parent}return false},countChildren:function(){var a=this.childList;if(!a)return 0;for(var b=a.length,c=0,d=b;c<d;c++)b+=a[c].countChildren();return b},sortChildren:function(a,b){var c=this.childList;if(c){a=a||function(f,
14
14
  h){return f.data.title===h.data.title?0:f.data.title>h.data.title?1:-1};c.sort(a);if(b)for(var d=0,e=c.length;d<e;d++)c[d].childList&&c[d].sortChildren(a,"$norender$");b!=="$norender$"&&this.render()}},_setStatusNode:function(a){var b=this.childList?this.childList[0]:null;if(a)if(b){a.isStatusNode=true;a.key="_statusNode";b.data=a;b.render()}else{a.isStatusNode=true;a.key="_statusNode";this.addChild(a)}else if(b&&b.isStatusNode()){try{this.ul&&this.ul.removeChild(b.li)}catch(c){}if(this.childList.length===
15
- 1)this.childList=[];else this.childList.shift()}},setLazyNodeStatus:function(a,b){var c=b&&b.tooltip?b.tooltip:null,d=b&&b.info?" ("+b.info+")":"";switch(a){case DTNodeStatus_Ok:this._setStatusNode(null);g(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=false;this.render();if(this.tree.options.autoFocus)this===this.tree.tnRoot&&this.childList&&this.childList.length>0?this.childList[0].focus():this.focus();break;case DTNodeStatus_Loading:this.isLoading=true;g(this.span).addClass(this.tree.options.classNames.nodeLoading);
15
+ 1)this.childList=[];else this.childList.shift()}},setLazyNodeStatus:function(a,b){var c=b&&b.tooltip?b.tooltip:null,d=b&&b.info?" ("+b.info+")":"";switch(a){case DTNodeStatus_Ok:this._setStatusNode(null);g(this.span).removeClass(this.tree.options.classNames.nodeLoading);this.isLoading=false;if(this.tree.options.autoFocus)this===this.tree.tnRoot&&this.childList&&this.childList.length>0?this.childList[0].focus():this.focus();break;case DTNodeStatus_Loading:this.isLoading=true;g(this.span).addClass(this.tree.options.classNames.nodeLoading);
16
16
  this.parent||this._setStatusNode({title:this.tree.options.strings.loading+d,tooltip:c,addClass:this.tree.options.classNames.nodeWait});break;case DTNodeStatus_Error:this.isLoading=false;this._setStatusNode({title:this.tree.options.strings.loadError+d,tooltip:c,addClass:this.tree.options.classNames.nodeError});break;default:throw"Bad LazyNodeStatus: '"+a+"'.";}},_parentList:function(a,b){for(var c=[],d=b?this:this.parent;d;){if(a||d.parent)c.unshift(d);d=d.parent}return c},getLevel:function(){for(var a=
17
17
  0,b=this.parent;b;){a++;b=b.parent}return a},_getTypeForOuterNodeEvent:function(a){var b=this.tree.options.classNames,c=a.target;if(c.className.indexOf(b.node)<0)return null;var d=a.pageX-c.offsetLeft;a=a.pageY-c.offsetTop;for(var e=0,f=c.childNodes.length;e<f;e++){var h=c.childNodes[e],i=h.offsetLeft-c.offsetLeft,j=h.offsetTop-c.offsetTop,k=h.clientWidth,r=h.clientHeight;if(d>=i&&d<=i+k&&a>=j&&a<=j+r)if(h.className==b.title)return"title";else if(h.className==b.expander)return"expander";else if(h.className==
18
18
  b.checkbox)return"checkbox";else if(h.className==b.nodeIcon)return"icon"}return"prefix"},getEventTargetType:function(a){var b=a&&a.target?a.target.className:"",c=this.tree.options.classNames;if(b===c.title)return"title";else if(b===c.expander)return"expander";else if(b===c.checkbox)return"checkbox";else if(b===c.nodeIcon)return"icon";else if(b===c.empty||b===c.vline||b===c.connector)return"prefix";else if(b.indexOf(c.node)>=0)return this._getTypeForOuterNodeEvent(a);return null},isVisible:function(){for(var a=
@@ -26,19 +26,19 @@ g(this.span).removeClass(d.classNames.selected);c&&d.selectMode===3&&this._fixSe
26
26
  if(true===a.onLazyRead.call(this.tree,this)){this.setLazyNodeStatus(DTNodeStatus_Ok);this.tree.logDebug("_loadContent: succeeded - %o",this)}}catch(b){this.tree.logWarning("_loadContent: failed - %o",b);this.setLazyNodeStatus(DTNodeStatus_Error,{tooltip:""+b})}},_expand:function(a,b){if(this.bExpanded===a)this.tree.logDebug("dtnode._expand(%o) IGNORED - %o",a,this);else{this.tree.logDebug("dtnode._expand(%o) - %o",a,this);var c=this.tree.options;if(!a&&this.getLevel()<c.minExpandLevel)this.tree.logDebug("dtnode._expand(%o) prevented collapse - %o",
27
27
  a,this);else if(!(c.onQueryExpand&&c.onQueryExpand.call(this.tree,a,this)===false)){this.bExpanded=a;if(c.persist)a?this.tree.persistence.addExpand(this.data.key):this.tree.persistence.clearExpand(this.data.key);this.render(!(this.data.isLazy&&this.childList===null)&&!this.isLoading&&!b);if(this.bExpanded&&this.parent&&c.autoCollapse)for(var d=this._parentList(false,true),e=0,f=d.length;e<f;e++)d[e].collapseSiblings();c.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate();
28
28
  if(a&&this.data.isLazy&&this.childList===null&&!this.isLoading)this._loadContent();else c.onExpand&&c.onExpand.call(this.tree,a,this)}}},expand:function(a){a=a!==false;!this.childList&&!this.data.isLazy&&a||this.parent===null&&!a||this._expand(a)},scheduleAction:function(a,b){if(this.tree.timer){clearTimeout(this.tree.timer);this.tree.logDebug("clearTimeout(%o)",this.tree.timer)}var c=this;switch(a){case "cancel":break;case "expand":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger expand");
29
- c.expand(true)},b);break;case "activate":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger activate");c.activate()},b);break;default:throw"Invalid mode "+a;}this.tree.logDebug("setTimeout(%s, %s): %s",a,b,this.tree.timer)},toggleExpand:function(){this.expand(!this.bExpanded)},collapseSiblings:function(){if(this.parent!==null)for(var a=this.parent.childList,b=0,c=a.length;b<c;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(false)},_onClick:function(a){a=this.getEventTargetType(a);
30
- if(a==="expander"){this.toggleExpand();this.focus()}else if(a==="checkbox"){this.toggleSelect();this.focus()}else{this._userActivate();a=this.span.getElementsByTagName("a");if(a[0])g.browser.msie||a[0].focus();else return true}return false},_onDblClick:function(){},_onKeydown:function(a){var b=true,c;switch(a.which){case 107:case 187:this.bExpanded||this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();
29
+ c.expand(true)},b);break;case "activate":this.tree.timer=setTimeout(function(){c.tree.logDebug("setTimeout: trigger activate");c.activate()},b);break;default:throw"Invalid mode "+a;}this.tree.logDebug("setTimeout(%s, %s): %s",a,b,this.tree.timer)},toggleExpand:function(){this.expand(!this.bExpanded)},collapseSiblings:function(){if(this.parent!==null)for(var a=this.parent.childList,b=0,c=a.length;b<c;b++)a[b]!==this&&a[b].bExpanded&&a[b]._expand(false)},_onClick:function(a){var b=this.getEventTargetType(a);
30
+ if(b==="expander"){this.toggleExpand();this.focus()}else if(b==="checkbox"){this.toggleSelect();this.focus()}else{this._userActivate();b=this.span.getElementsByTagName("a");if(b[0])g.browser.msie||b[0].focus();else return true}a.preventDefault()},_onDblClick:function(){},_onKeydown:function(a){var b=true,c;switch(a.which){case 107:case 187:this.bExpanded||this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();
31
31
  break;case 37:if(this.bExpanded){this.toggleExpand();this.focus()}else this.parent&&this.parent.parent&&this.parent.focus();break;case 39:if(!this.bExpanded&&(this.childList||this.data.isLazy)){this.toggleExpand();this.focus()}else this.childList&&this.childList[0].focus();break;case 38:for(c=this.getPrevSibling();c&&c.bExpanded&&c.childList;)c=c.childList[c.childList.length-1];if(!c&&this.parent&&this.parent.parent)c=this.parent;c&&c.focus();break;case 40:if(this.bExpanded&&this.childList)c=this.childList[0];
32
- else{a=this._parentList(false,true);for(var d=a.length-1;d>=0;d--)if(c=a[d].getNextSibling())break}c&&c.focus();break;default:b=false}return!b},_onKeypress:function(){},_onFocus:function(a){var b=this.tree.options;if(a.type=="blur"||a.type=="focusout"){b.onBlur&&b.onBlur.call(this.tree,this);this.tree.tnFocused&&g(this.tree.tnFocused.span).removeClass(b.classNames.focused);this.tree.tnFocused=null;b.persist&&g.cookie(b.cookieId+"-focus","",b.cookie)}else if(a.type=="focus"||a.type=="focusin"){if(this.tree.tnFocused&&
32
+ else for(var d=this._parentList(false,true),e=d.length-1;e>=0;e--)if(c=d[e].getNextSibling())break;c&&c.focus();break;default:b=false}b&&a.preventDefault()},_onKeypress:function(){},_onFocus:function(a){var b=this.tree.options;if(a.type=="blur"||a.type=="focusout"){b.onBlur&&b.onBlur.call(this.tree,this);this.tree.tnFocused&&g(this.tree.tnFocused.span).removeClass(b.classNames.focused);this.tree.tnFocused=null;b.persist&&g.cookie(b.cookieId+"-focus","",b.cookie)}else if(a.type=="focus"||a.type=="focusin"){if(this.tree.tnFocused&&
33
33
  this.tree.tnFocused!==this){this.tree.logDebug("dtnode.onFocus: out of sync: curFocus: %o",this.tree.tnFocused);g(this.tree.tnFocused.span).removeClass(b.classNames.focused)}this.tree.tnFocused=this;b.onFocus&&b.onFocus.call(this.tree,this);g(this.tree.tnFocused.span).addClass(b.classNames.focused);b.persist&&g.cookie(b.cookieId+"-focus",this.data.key,b.cookie)}},visit:function(a,b){var c=true;if(b===true){c=a(this);if(c===false||c=="skip")return c}if(this.childList)for(var d=0,e=this.childList.length;d<
34
34
  e;d++){c=this.childList[d].visit(a,true);if(c===false)break}return c},visitParents:function(a,b){if(b&&a(this)===false)return false;for(var c=this.parent;c;){if(a(c)===false)return false;c=c.parent}return true},remove:function(){if(this===this.tree.root)throw"Cannot remove system root";return this.parent.removeChild(this)},removeChild:function(a){var b=this.childList;if(b.length==1){if(a!==b[0])throw"removeChild: invalid child";return this.removeChildren()}a===this.tree.activeNode&&a.deactivate();
35
35
  if(this.tree.options.persist){a.bSelected&&this.tree.persistence.clearSelect(a.data.key);a.bExpanded&&this.tree.persistence.clearExpand(a.data.key)}a.removeChildren(true);this.ul.removeChild(a.li);for(var c=0,d=b.length;c<d;c++)if(b[c]===a){this.childList.splice(c,1);break}},removeChildren:function(a,b){this.tree.logDebug("%s.removeChildren(%o)",this,a);var c=this.tree,d=this.childList;if(d){for(var e=0,f=d.length;e<f;e++){var h=d[e];h===c.activeNode&&!b&&h.deactivate();if(this.tree.options.persist&&
36
36
  !b){h.bSelected&&this.tree.persistence.clearSelect(h.data.key);h.bExpanded&&this.tree.persistence.clearExpand(h.data.key)}h.removeChildren(true,b);this.ul&&this.ul.removeChild(h.li)}this.childList=null}if(!a){this.isLoading=false;this.render()}},setTitle:function(a){this.fromDict({title:a})},reload:function(){throw"Use reloadChildren() instead";},reloadChildren:function(a){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.reloadChildren() requires lazy nodes.";
37
37
  if(a){var b=this,c="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key;this.tree.$tree.bind(c,function(d,e,f){b.tree.$tree.unbind(c);b.tree.logInfo("loaded %o, %o, %o",d,e,f);if(e!==b)throw"got invalid load event";a.call(b.tree,e,f)})}this.removeChildren();this._loadContent()},_loadKeyPath:function(a,b){var c=this.tree;c.logDebug("%s._loadKeyPath(%s)",this,a);if(a==="")throw"Key path must not be empty";var d=a.split(c.options.keyPathSeparator);if(d[0]==="")throw"Key path must be relative (don't start with '/')";
38
38
  for(var e=d.shift(),f=0,h=this.childList.length;f<h;f++){var i=this.childList[f];if(i.data.key===e){if(d.length===0)b.call(c,i,"ok");else if(i.data.isLazy&&(i.childList===null||i.childList===undefined)){c.logDebug("%s._loadKeyPath(%s) -> reloading %s...",this,a,i);var j=this;i.reloadChildren(function(k,r){if(r){c.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",k,a,k);b.call(c,i,"loaded");k._loadKeyPath(d.join(c.options.keyPathSeparator),b)}else{c.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",
39
- j,a);b.call(c,i,"error")}})}else{b.call(c,i,"loaded");i._loadKeyPath(d.join(c.options.keyPathSeparator),b)}return}}c.logWarning("Node not found: "+e)},resetLazy:function(){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.resetLazy() requires lazy nodes.";this.expand(false);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,d=c.options,e=c.persistence;a.parent=this;if(this.childList===null)this.childList=[];else b||g(this.childList[this.childList.length-
40
- 1].span).removeClass(d.classNames.lastsib);if(b){var f=g.inArray(b,this.childList);if(f<0)throw"<beforeNode> must be a child of <this>";this.childList.splice(f,0,a)}else this.childList.push(a);f=c.isInitializing();if(d.persist&&e.cookiesFound&&f){if(e.activeKey==a.data.key)c.activeNode=a;if(e.focusedKey==a.data.key)c.focusNode=a;a.bExpanded=g.inArray(a.data.key,e.expandedKeyList)>=0;a.bSelected=g.inArray(a.data.key,e.selectedKeyList)>=0}else{if(a.data.activate){c.activeNode=a;if(d.persist)e.activeKey=
41
- a.data.key}if(a.data.focus){c.focusNode=a;if(d.persist)e.focusedKey=a.data.key}a.bExpanded=a.data.expand===true;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===true;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded=true;if(a.bSelected&&d.selectMode==3)for(d=this;d;){d.hasSubSel||d._setSubSel(true);d=d.parent}c.bEnableUpdate&&this.render();return a},addChild:function(a,b){if(typeof a=="string")throw"Invalid data type for "+
39
+ j,a);b.call(c,i,"error")}})}else{b.call(c,i,"loaded");i._loadKeyPath(d.join(c.options.keyPathSeparator),b)}return}}c.logWarning("Node not found: "+e)},resetLazy:function(){if(this.parent===null)throw"Use tree.reload() instead";else if(!this.data.isLazy)throw"node.resetLazy() requires lazy nodes.";this.expand(false);this.removeChildren()},_addChildNode:function(a,b){var c=this.tree,d=c.options,e=c.persistence;a.parent=this;if(this.childList===null)this.childList=[];else b||this.childList.length>0&&
40
+ g(this.childList[this.childList.length-1].span).removeClass(d.classNames.lastsib);if(b){var f=g.inArray(b,this.childList);if(f<0)throw"<beforeNode> must be a child of <this>";this.childList.splice(f,0,a)}else this.childList.push(a);f=c.isInitializing();if(d.persist&&e.cookiesFound&&f){if(e.activeKey==a.data.key)c.activeNode=a;if(e.focusedKey==a.data.key)c.focusNode=a;a.bExpanded=g.inArray(a.data.key,e.expandedKeyList)>=0;a.bSelected=g.inArray(a.data.key,e.selectedKeyList)>=0}else{if(a.data.activate){c.activeNode=
41
+ a;if(d.persist)e.activeKey=a.data.key}if(a.data.focus){c.focusNode=a;if(d.persist)e.focusedKey=a.data.key}a.bExpanded=a.data.expand===true;a.bExpanded&&d.persist&&e.addExpand(a.data.key);a.bSelected=a.data.select===true;a.bSelected&&d.persist&&e.addSelect(a.data.key)}if(d.minExpandLevel>=a.getLevel())this.bExpanded=true;if(a.bSelected&&d.selectMode==3)for(d=this;d;){d.hasSubSel||d._setSubSel(true);d=d.parent}c.bEnableUpdate&&this.render();return a},addChild:function(a,b){if(typeof a=="string")throw"Invalid data type for "+
42
42
  a;else if(!a||a.length===0)return;else if(a instanceof p)return this._addChildNode(a,b);a.length||(a=[a]);for(var c=this.tree.enableUpdate(false),d=null,e=0,f=a.length;e<f;e++){var h=a[e],i=this._addChildNode(new p(this,this.tree,h),b);d||(d=i);h.children&&i.addChild(h.children,null)}this.tree.enableUpdate(c);return d},append:function(a){this.tree.logWarning("node.append() is deprecated (use node.addChild() instead).");return this.addChild(a,null)},appendAjax:function(a){var b=this;this.removeChildren(false,
43
43
  true);this.setLazyNodeStatus(DTNodeStatus_Loading);if(a.debugLazyDelay){var c=a.debugLazyDelay;a.debugLazyDelay=0;this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+c);setTimeout(function(){b.appendAjax(a)},c)}else{var d=a.success,e=a.error,f="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,h=g.extend({},this.tree.options.ajaxDefaults,a,{success:function(i){var j=b.tree.phase;b.tree.phase="init";if(h.postProcess)i=h.postProcess.call(this,i,this.dataType);if(!g.isArray(i)||
44
44
  i.length!==0)b.addChild(i,null);b.tree.phase="postInit";d&&d.call(h,b);b.tree.logInfo("trigger "+f);b.tree.$tree.trigger(f,[b,true]);b.tree.phase=j;b.setLazyNodeStatus(DTNodeStatus_Ok);if(g.isArray(i)&&i.length===0){b.childList=[];b.render()}},error:function(i,j,k){b.tree.logWarning("appendAjax failed:",j,":\n",i,"\n",k);e&&e.call(h,b,i,j,k);b.tree.$tree.trigger(f,[b,false]);b.setLazyNodeStatus(DTNodeStatus_Error,{info:j,tooltip:""+k})}});g.ajax(h)}},move:function(a,b){var c;if(this!==a){if(!this.parent)throw"Cannot move system root";
@@ -52,9 +52,9 @@ a);if(g.inArray(a,this.selectedKeyList)<0){this.selectedKeyList.push(a);g.cookie
52
52
  focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,selectedKeyList:this.selectedKeyList}},lastentry:undefined};var q=o.create();q.version="$Version:$";q.prototype={initialize:function(a){this.phase="init";this.$widget=a;this.options=a.options;this.$tree=a.element;this.timer=null;this.divTree=this.$tree.get(0);m(this)},_load:function(a){var b=this.options;this.bEnableUpdate=true;this._nodeCount=1;this.focusNode=this.activeNode=null;b.rootVisible!==undefined&&_log("warn","Option 'rootVisible' is no longer supported.");
53
53
  if(b.minExpandLevel<1){_log("warn","Option 'minExpandLevel' must be >= 1.");b.minExpandLevel=1}if(b.classNames!==g.ui.dynatree.prototype.options.classNames)b.classNames=g.extend({},g.ui.dynatree.prototype.options.classNames,b.classNames);if(b.ajaxDefaults!==g.ui.dynatree.prototype.options.ajaxDefaults)b.ajaxDefaults=g.extend({},g.ui.dynatree.prototype.options.ajaxDefaults,b.ajaxDefaults);if(b.dnd!==g.ui.dynatree.prototype.options.dnd)b.dnd=g.extend({},g.ui.dynatree.prototype.options.dnd,b.dnd);b.imagePath||
54
54
  g("script").each(function(){if(this.src.search(/.*dynatree[^\/]*\.js$/i)>=0){b.imagePath=this.src.indexOf("/")>=0?this.src.slice(0,this.src.lastIndexOf("/"))+"/skin/":"skin/";logMsg("Guessing imagePath from '%s': '%s'",this.src,b.imagePath);return false}});this.persistence=new n(b.cookieId,b.cookie);if(b.persist){g.cookie||_log("warn","Please include jquery.cookie.js to use persistence.");this.persistence.read()}this.logDebug("DynaTree.persistence: %o",this.persistence.toDict());this.cache={tagEmpty:"<span class='"+
55
- b.classNames.empty+"'></span>",tagVline:"<span class='"+b.classNames.vline+"'></span>",tagExpander:"<span class='"+b.classNames.expander+"'></span>",tagConnector:"<span class='"+b.classNames.connector+"'></span>",tagNodeIcon:"<span class='"+b.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+b.classNames.checkbox+"'></span>",lastentry:undefined};if(b.children||b.initAjax&&b.initAjax.url||b.initId)g(this.divTree).empty();else this.divRoot&&g(this.divRoot).remove();this.tnRoot=new p(null,
56
- this,{});this.tnRoot.bExpanded=true;this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var c=this.tnRoot,d=b.persist&&this.persistence.isReloading(),e=false,f=this.enableUpdate(false);this.logDebug("Dynatree._load(): read tree structure...");if(b.children)c.addChild(b.children);else if(b.initAjax&&b.initAjax.url){e=true;c.data.isLazy=true;this._reloadAjax(a)}else if(b.initId)this._createFromTag(c,g("#"+b.initId));else{a=this.$tree.find(">ul:first").hide();this._createFromTag(c,a);a.remove()}this._checkConsistency();
57
- this.logDebug("Dynatree._load(): render nodes...");this.enableUpdate(f);this.logDebug("Dynatree._load(): bind events...");this.$widget.bind();this.logDebug("Dynatree._load(): postInit...");this.phase="postInit";b.persist&&this.persistence.write();if(this.focusNode&&this.focusNode.isVisible()){this.logDebug("Focus on init: %o",this.focusNode);this.focusNode.focus()}!e&&b.onPostInit&&b.onPostInit.call(this,d,false);this.phase="idle"},_reloadAjax:function(a){var b=this.options;if(!b.initAjax||!b.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";
55
+ b.classNames.empty+"'></span>",tagVline:"<span class='"+b.classNames.vline+"'></span>",tagExpander:"<span class='"+b.classNames.expander+"'></span>",tagConnector:"<span class='"+b.classNames.connector+"'></span>",tagNodeIcon:"<span class='"+b.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+b.classNames.checkbox+"'></span>",lastentry:undefined};if(b.children||b.initAjax&&b.initAjax.url||b.initId)g(this.divTree).empty();var c=this.$tree.find(">ul:first").hide();this.tnRoot=new p(null,this,
56
+ {});this.tnRoot.bExpanded=true;this.tnRoot.render();this.divTree.appendChild(this.tnRoot.ul);var d=this.tnRoot,e=b.persist&&this.persistence.isReloading(),f=false,h=this.enableUpdate(false);this.logDebug("Dynatree._load(): read tree structure...");if(b.children)d.addChild(b.children);else if(b.initAjax&&b.initAjax.url){f=true;d.data.isLazy=true;this._reloadAjax(a)}else if(b.initId)this._createFromTag(d,g("#"+b.initId));else{this._createFromTag(d,c);c.remove()}this._checkConsistency();this.logDebug("Dynatree._load(): render nodes...");
57
+ this.enableUpdate(h);this.logDebug("Dynatree._load(): bind events...");this.$widget.bind();this.logDebug("Dynatree._load(): postInit...");this.phase="postInit";b.persist&&this.persistence.write();if(this.focusNode&&this.focusNode.isVisible()){this.logDebug("Focus on init: %o",this.focusNode);this.focusNode.focus()}!f&&b.onPostInit&&b.onPostInit.call(this,e,false);this.phase="idle"},_reloadAjax:function(a){var b=this.options;if(!b.initAjax||!b.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";
58
58
  var c=this.persistence,d=g.extend({},b.initAjax);if(d.addActiveKey)d.data.activeKey=c.activeKey;if(d.addFocusedKey)d.data.focusedKey=c.focusedKey;if(d.addExpandedKeyList)d.data.expandedKeyList=c.expandedKeyList.join(",");if(d.addSelectedKeyList)d.data.selectedKeyList=c.selectedKeyList.join(",");if(b.onPostInit){d.success&&this.logWarning("initAjax: success callback is ignored when onPostInit was specified.");d.error&&this.logWarning("initAjax: error callback is ignored when onPostInit was specified.");
59
59
  var e=c.isReloading();d.success=function(f){b.onPostInit.call(f.tree,e,false);a&&a.call(f.tree,"ok")};d.error=function(f){b.onPostInit.call(f.tree,e,true);a&&a.call(f.tree,"error")}}this.logDebug("Dynatree._init(): send Ajax request...");this.tnRoot.appendAjax(d)},toString:function(){return"Dynatree '"+this.$tree.attr("id")+"'"},toDict:function(){return this.tnRoot.toDict(true)},serializeArray:function(a){a=this.getSelectedNodes(a);for(var b=this.$tree.attr("name")||this.$tree.attr("id"),c=[],d=0,
60
60
  e=a.length;d<e;d++)c.push({name:b,value:a[d].data.key});return c},getPersistData:function(){return this.persistence.toDict()},logDebug:function(){if(this.options.debugLevel>=2){Array.prototype.unshift.apply(arguments,["debug"]);_log.apply(this,arguments)}},logInfo:function(){if(this.options.debugLevel>=1){Array.prototype.unshift.apply(arguments,["info"]);_log.apply(this,arguments)}},logWarning:function(){Array.prototype.unshift.apply(arguments,["warn"]);_log.apply(this,arguments)},isInitializing:function(){return this.phase==
@@ -3914,7 +3914,7 @@ AnyTime.utcLabel[840]=[
3914
3914
 
3915
3915
  /**
3916
3916
  * @preserve
3917
- * FullCalendar v1.4.10
3917
+ * FullCalendar v1.4.11
3918
3918
  * http://arshaw.com/fullcalendar/
3919
3919
  *
3920
3920
  * Use fullcalendar.css for basic styling.
@@ -3925,7 +3925,7 @@ AnyTime.utcLabel[840]=[
3925
3925
  * Dual licensed under the MIT and GPL licenses, located in
3926
3926
  * MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
3927
3927
  *
3928
- * Date: Sat Jan 1 23:46:27 2011 -0800
3928
+ * Date: Tue Feb 22 21:47:22 2011 -0800
3929
3929
  *
3930
3930
  */
3931
3931
 
@@ -4025,7 +4025,7 @@ var rtlDefaults = {
4025
4025
 
4026
4026
 
4027
4027
 
4028
- var fc = $.fullCalendar = { version: "1.4.10" };
4028
+ var fc = $.fullCalendar = { version: "1.4.11" };
4029
4029
  var fcViews = fc.views = {};
4030
4030
 
4031
4031
 
@@ -4103,6 +4103,7 @@ function Calendar(element, options, eventSources) {
4103
4103
  t.refetchEvents = refetchEvents;
4104
4104
  t.reportEvents = reportEvents;
4105
4105
  t.reportEventChange = reportEventChange;
4106
+ t.rerenderEvents = rerenderEvents;
4106
4107
  t.changeView = changeView;
4107
4108
  t.select = select;
4108
4109
  t.unselect = unselect;
@@ -6899,6 +6900,7 @@ function AgendaEventRenderer() {
6899
6900
  function draggableDayEvent(event, eventElement, isStart) {
6900
6901
  if (!opt('disableDragging') && eventElement.draggable) {
6901
6902
  var origWidth;
6903
+ var revert;
6902
6904
  var allDay=true;
6903
6905
  var dayDelta;
6904
6906
  var dis = opt('isRTL') ? -1 : 1;
@@ -6915,9 +6917,9 @@ function AgendaEventRenderer() {
6915
6917
  hideEvents(event, eventElement);
6916
6918
  origWidth = eventElement.width();
6917
6919
  hoverListener.start(function(cell, origCell, rowDelta, colDelta) {
6918
- eventElement.draggable('option', 'revert', !cell || !rowDelta && !colDelta);
6919
6920
  clearOverlays();
6920
6921
  if (cell) {
6922
+ revert = false;
6921
6923
  dayDelta = colDelta * dis;
6922
6924
  if (!cell.row) {
6923
6925
  // on full-days
@@ -6928,27 +6930,43 @@ function AgendaEventRenderer() {
6928
6930
  resetElement();
6929
6931
  }else{
6930
6932
  // mouse is over bottom slots
6931
- if (isStart && allDay) {
6932
- // convert event to temporary slot-event
6933
- setOuterHeight(
6934
- eventElement.width(colWidth - 10), // don't use entire width
6935
- slotHeight * Math.round(
6936
- (event.end ? ((event.end - event.start) / MINUTE_MS) : opt('defaultEventMinutes'))
6937
- / opt('slotMinutes')
6938
- )
6939
- );
6940
- eventElement.draggable('option', 'grid', [colWidth, 1]);
6941
- allDay = false;
6933
+ if (isStart) {
6934
+ if (allDay) {
6935
+ // convert event to temporary slot-event
6936
+ eventElement.width(colWidth - 10); // don't use entire width
6937
+ setOuterHeight(
6938
+ eventElement,
6939
+ slotHeight * Math.round(
6940
+ (event.end ? ((event.end - event.start) / MINUTE_MS) : opt('defaultEventMinutes'))
6941
+ / opt('slotMinutes')
6942
+ )
6943
+ );
6944
+ eventElement.draggable('option', 'grid', [colWidth, 1]);
6945
+ allDay = false;
6946
+ }
6947
+ }else{
6948
+ revert = true;
6942
6949
  }
6943
6950
  }
6951
+ revert = revert || (allDay && !dayDelta);
6952
+ }else{
6953
+ revert = true;
6944
6954
  }
6955
+ eventElement.draggable('option', 'revert', revert);
6945
6956
  }, ev, 'drag');
6946
6957
  },
6947
6958
  stop: function(ev, ui) {
6948
- var cell = hoverListener.stop();
6959
+ hoverListener.stop();
6949
6960
  clearOverlays();
6950
6961
  trigger('eventDragStop', eventElement, event, ev, ui);
6951
- if (cell && (!allDay || dayDelta)) {
6962
+ if (revert) {
6963
+ // hasn't moved or is out of bounds (draggable has already reverted)
6964
+ resetElement();
6965
+ if ($.browser.msie) {
6966
+ eventElement.css('filter', ''); // clear IE opacity side-effects
6967
+ }
6968
+ showEvents(event, eventElement);
6969
+ }else{
6952
6970
  // changed!
6953
6971
  eventElement.find('a').removeAttr('href'); // prevents safari from visiting the link
6954
6972
  var minuteDelta = 0;
@@ -6959,13 +6977,6 @@ function AgendaEventRenderer() {
6959
6977
  - (event.start.getHours() * 60 + event.start.getMinutes());
6960
6978
  }
6961
6979
  eventDrop(this, event, dayDelta, minuteDelta, allDay, ev, ui);
6962
- }else{
6963
- // hasn't moved or is out of bounds (draggable has already reverted)
6964
- resetElement();
6965
- if ($.browser.msie) {
6966
- eventElement.css('filter', ''); // clear IE opacity side-effects
6967
- }
6968
- showEvents(event, eventElement);
6969
6980
  }
6970
6981
  }
6971
6982
  });
@@ -8721,4 +8732,75 @@ function enableTextSelection(element) {
8721
8732
 
8722
8733
 
8723
8734
 
8724
- })(jQuery);
8735
+ })(jQuery);
8736
+
8737
+ /*
8738
+ * FullCalendar v1.4.11 Google Calendar Extension
8739
+ *
8740
+ * Copyright (c) 2010 Adam Shaw
8741
+ * Dual licensed under the MIT and GPL licenses, located in
8742
+ * MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
8743
+ *
8744
+ * Date: Tue Feb 22 21:47:22 2011 -0800
8745
+ *
8746
+ */
8747
+
8748
+ (function($) {
8749
+
8750
+ $.fullCalendar.gcalFeed = function(feedUrl, options) {
8751
+
8752
+ feedUrl = feedUrl.replace(/\/basic$/, '/full');
8753
+ options = options || {};
8754
+
8755
+ return function(start, end, callback) {
8756
+ var params = {
8757
+ 'start-min': $.fullCalendar.formatDate(start, 'u'),
8758
+ 'start-max': $.fullCalendar.formatDate(end, 'u'),
8759
+ 'singleevents': true,
8760
+ 'max-results': 9999
8761
+ };
8762
+ var ctz = options.currentTimezone;
8763
+ if (ctz) {
8764
+ params.ctz = ctz = ctz.replace(' ', '_');
8765
+ }
8766
+ $.getJSON(feedUrl + "?alt=json-in-script&callback=?", params, function(data) {
8767
+ var events = [];
8768
+ if (data.feed.entry) {
8769
+ $.each(data.feed.entry, function(i, entry) {
8770
+ var startStr = entry['gd$when'][0]['startTime'],
8771
+ start = $.fullCalendar.parseISO8601(startStr, true),
8772
+ end = $.fullCalendar.parseISO8601(entry['gd$when'][0]['endTime'], true),
8773
+ allDay = startStr.indexOf('T') == -1,
8774
+ url;
8775
+ $.each(entry.link, function() {
8776
+ if (this.type == 'text/html') {
8777
+ url = this.href;
8778
+ if (ctz) {
8779
+ url += (url.indexOf('?') == -1 ? '?' : '&') + 'ctz=' + ctz;
8780
+ }
8781
+ }
8782
+ });
8783
+ if (allDay) {
8784
+ $.fullCalendar.addDays(end, -1); // make inclusive
8785
+ }
8786
+ events.push({
8787
+ id: entry['gCal$uid']['value'],
8788
+ title: entry['title']['$t'],
8789
+ url: url,
8790
+ start: start,
8791
+ end: end,
8792
+ allDay: allDay,
8793
+ location: entry['gd$where'][0]['valueString'],
8794
+ description: entry['content']['$t'],
8795
+ className: options.className,
8796
+ editable: options.editable || false
8797
+ });
8798
+ });
8799
+ }
8800
+ callback(events);
8801
+ });
8802
+ }
8803
+
8804
+ }
8805
+
8806
+ })(jQuery);