cable 0.9.16 → 0.9.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/admin_controller.rb +1 -1
  3. data/app/views/layouts/admin.html.erb +3 -1
  4. data/lib/generators/cable/install_generator.rb +1 -0
  5. data/lib/generators/cable/menu/templates/erb/menus/_menu.html.erb +1 -1
  6. data/lib/generators/cable/menu/templates/erb/menus/_resources.html.erb +1 -1
  7. data/lib/generators/cable/menu/templates/erb/menus/show.html.erb +1 -1
  8. data/public/javascripts/admin.js +16 -16
  9. metadata +2 -254
  10. data/public/javascripts/tinymce/jquery.tinymce.js +0 -1
  11. data/public/javascripts/tinymce/langs/en.js +0 -222
  12. data/public/javascripts/tinymce/license.txt +0 -504
  13. data/public/javascripts/tinymce/plugins/advhr/css/advhr.css +0 -5
  14. data/public/javascripts/tinymce/plugins/advhr/editor_plugin.js +0 -1
  15. data/public/javascripts/tinymce/plugins/advhr/editor_plugin_src.js +0 -57
  16. data/public/javascripts/tinymce/plugins/advhr/js/rule.js +0 -43
  17. data/public/javascripts/tinymce/plugins/advhr/langs/en_dlg.js +0 -7
  18. data/public/javascripts/tinymce/plugins/advhr/rule.htm +0 -58
  19. data/public/javascripts/tinymce/plugins/advimage/css/advimage.css +0 -13
  20. data/public/javascripts/tinymce/plugins/advimage/editor_plugin.js +0 -1
  21. data/public/javascripts/tinymce/plugins/advimage/editor_plugin_src.js +0 -50
  22. data/public/javascripts/tinymce/plugins/advimage/image.htm +0 -235
  23. data/public/javascripts/tinymce/plugins/advimage/img/sample.gif +0 -0
  24. data/public/javascripts/tinymce/plugins/advimage/js/image.js +0 -445
  25. data/public/javascripts/tinymce/plugins/advimage/langs/en_dlg.js +0 -45
  26. data/public/javascripts/tinymce/plugins/advlink/css/advlink.css +0 -8
  27. data/public/javascripts/tinymce/plugins/advlink/editor_plugin.js +0 -1
  28. data/public/javascripts/tinymce/plugins/advlink/editor_plugin_src.js +0 -61
  29. data/public/javascripts/tinymce/plugins/advlink/js/advlink.js +0 -523
  30. data/public/javascripts/tinymce/plugins/advlink/langs/en_dlg.js +0 -54
  31. data/public/javascripts/tinymce/plugins/advlink/link.htm +0 -338
  32. data/public/javascripts/tinymce/plugins/advlist/editor_plugin.js +0 -1
  33. data/public/javascripts/tinymce/plugins/advlist/editor_plugin_src.js +0 -154
  34. data/public/javascripts/tinymce/plugins/autolink/editor_plugin.js +0 -1
  35. data/public/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +0 -169
  36. data/public/javascripts/tinymce/plugins/autoresize/editor_plugin.js +0 -1
  37. data/public/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +0 -119
  38. data/public/javascripts/tinymce/plugins/autosave/editor_plugin.js +0 -1
  39. data/public/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +0 -431
  40. data/public/javascripts/tinymce/plugins/autosave/langs/en.js +0 -4
  41. data/public/javascripts/tinymce/plugins/bbcode/editor_plugin.js +0 -1
  42. data/public/javascripts/tinymce/plugins/bbcode/editor_plugin_src.js +0 -120
  43. data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +0 -1
  44. data/public/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +0 -156
  45. data/public/javascripts/tinymce/plugins/directionality/editor_plugin.js +0 -1
  46. data/public/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +0 -82
  47. data/public/javascripts/tinymce/plugins/emotions/editor_plugin.js +0 -1
  48. data/public/javascripts/tinymce/plugins/emotions/editor_plugin_src.js +0 -43
  49. data/public/javascripts/tinymce/plugins/emotions/emotions.htm +0 -41
  50. data/public/javascripts/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
  51. data/public/javascripts/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
  52. data/public/javascripts/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
  53. data/public/javascripts/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
  54. data/public/javascripts/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
  55. data/public/javascripts/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
  56. data/public/javascripts/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
  57. data/public/javascripts/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
  58. data/public/javascripts/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
  59. data/public/javascripts/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
  60. data/public/javascripts/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
  61. data/public/javascripts/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
  62. data/public/javascripts/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
  63. data/public/javascripts/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
  64. data/public/javascripts/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
  65. data/public/javascripts/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
  66. data/public/javascripts/tinymce/plugins/emotions/js/emotions.js +0 -22
  67. data/public/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +0 -20
  68. data/public/javascripts/tinymce/plugins/example/dialog.htm +0 -22
  69. data/public/javascripts/tinymce/plugins/example/editor_plugin.js +0 -1
  70. data/public/javascripts/tinymce/plugins/example/editor_plugin_src.js +0 -84
  71. data/public/javascripts/tinymce/plugins/example/img/example.gif +0 -0
  72. data/public/javascripts/tinymce/plugins/example/js/dialog.js +0 -19
  73. data/public/javascripts/tinymce/plugins/example/langs/en.js +0 -3
  74. data/public/javascripts/tinymce/plugins/example/langs/en_dlg.js +0 -3
  75. data/public/javascripts/tinymce/plugins/fullpage/css/fullpage.css +0 -184
  76. data/public/javascripts/tinymce/plugins/fullpage/editor_plugin.js +0 -1
  77. data/public/javascripts/tinymce/plugins/fullpage/editor_plugin_src.js +0 -198
  78. data/public/javascripts/tinymce/plugins/fullpage/fullpage.htm +0 -571
  79. data/public/javascripts/tinymce/plugins/fullpage/js/fullpage.js +0 -497
  80. data/public/javascripts/tinymce/plugins/fullpage/langs/en_dlg.js +0 -85
  81. data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +0 -1
  82. data/public/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +0 -159
  83. data/public/javascripts/tinymce/plugins/fullscreen/fullscreen.htm +0 -109
  84. data/public/javascripts/tinymce/plugins/iespell/editor_plugin.js +0 -1
  85. data/public/javascripts/tinymce/plugins/iespell/editor_plugin_src.js +0 -54
  86. data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin.js +0 -1
  87. data/public/javascripts/tinymce/plugins/inlinepopups/editor_plugin_src.js +0 -696
  88. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
  89. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
  90. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
  91. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
  92. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
  93. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
  94. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
  95. data/public/javascripts/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -90
  96. data/public/javascripts/tinymce/plugins/inlinepopups/template.htm +0 -387
  97. data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin.js +0 -1
  98. data/public/javascripts/tinymce/plugins/insertdatetime/editor_plugin_src.js +0 -83
  99. data/public/javascripts/tinymce/plugins/layer/editor_plugin.js +0 -1
  100. data/public/javascripts/tinymce/plugins/layer/editor_plugin_src.js +0 -214
  101. data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +0 -1
  102. data/public/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +0 -139
  103. data/public/javascripts/tinymce/plugins/lists/editor_plugin.js +0 -1
  104. data/public/javascripts/tinymce/plugins/lists/editor_plugin_src.js +0 -617
  105. data/public/javascripts/tinymce/plugins/media/css/media.css +0 -17
  106. data/public/javascripts/tinymce/plugins/media/editor_plugin.js +0 -1
  107. data/public/javascripts/tinymce/plugins/media/editor_plugin_src.js +0 -770
  108. data/public/javascripts/tinymce/plugins/media/js/embed.js +0 -73
  109. data/public/javascripts/tinymce/plugins/media/js/media.js +0 -354
  110. data/public/javascripts/tinymce/plugins/media/langs/en_dlg.js +0 -109
  111. data/public/javascripts/tinymce/plugins/media/media.htm +0 -812
  112. data/public/javascripts/tinymce/plugins/media/moxieplayer.swf +0 -0
  113. data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin.js +0 -1
  114. data/public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js +0 -53
  115. data/public/javascripts/tinymce/plugins/noneditable/editor_plugin.js +0 -1
  116. data/public/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +0 -90
  117. data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin.js +0 -1
  118. data/public/javascripts/tinymce/plugins/pagebreak/editor_plugin_src.js +0 -74
  119. data/public/javascripts/tinymce/plugins/paste/editor_plugin.js +0 -1
  120. data/public/javascripts/tinymce/plugins/paste/editor_plugin_src.js +0 -930
  121. data/public/javascripts/tinymce/plugins/paste/js/pastetext.js +0 -36
  122. data/public/javascripts/tinymce/plugins/paste/js/pasteword.js +0 -51
  123. data/public/javascripts/tinymce/plugins/paste/langs/en_dlg.js +0 -5
  124. data/public/javascripts/tinymce/plugins/paste/pastetext.htm +0 -27
  125. data/public/javascripts/tinymce/plugins/paste/pasteword.htm +0 -21
  126. data/public/javascripts/tinymce/plugins/preview/editor_plugin.js +0 -1
  127. data/public/javascripts/tinymce/plugins/preview/editor_plugin_src.js +0 -53
  128. data/public/javascripts/tinymce/plugins/preview/example.html +0 -28
  129. data/public/javascripts/tinymce/plugins/preview/jscripts/embed.js +0 -73
  130. data/public/javascripts/tinymce/plugins/preview/preview.html +0 -17
  131. data/public/javascripts/tinymce/plugins/print/editor_plugin.js +0 -1
  132. data/public/javascripts/tinymce/plugins/print/editor_plugin_src.js +0 -34
  133. data/public/javascripts/tinymce/plugins/save/editor_plugin.js +0 -1
  134. data/public/javascripts/tinymce/plugins/save/editor_plugin_src.js +0 -101
  135. data/public/javascripts/tinymce/plugins/searchreplace/css/searchreplace.css +0 -6
  136. data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin.js +0 -1
  137. data/public/javascripts/tinymce/plugins/searchreplace/editor_plugin_src.js +0 -61
  138. data/public/javascripts/tinymce/plugins/searchreplace/js/searchreplace.js +0 -142
  139. data/public/javascripts/tinymce/plugins/searchreplace/langs/en_dlg.js +0 -16
  140. data/public/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +0 -100
  141. data/public/javascripts/tinymce/plugins/spellchecker/css/content.css +0 -1
  142. data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +0 -1
  143. data/public/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +0 -435
  144. data/public/javascripts/tinymce/plugins/spellchecker/img/wline.gif +0 -0
  145. data/public/javascripts/tinymce/plugins/style/css/props.css +0 -13
  146. data/public/javascripts/tinymce/plugins/style/editor_plugin.js +0 -1
  147. data/public/javascripts/tinymce/plugins/style/editor_plugin_src.js +0 -55
  148. data/public/javascripts/tinymce/plugins/style/js/props.js +0 -635
  149. data/public/javascripts/tinymce/plugins/style/langs/en_dlg.js +0 -70
  150. data/public/javascripts/tinymce/plugins/style/props.htm +0 -838
  151. data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +0 -1
  152. data/public/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +0 -114
  153. data/public/javascripts/tinymce/plugins/table/cell.htm +0 -178
  154. data/public/javascripts/tinymce/plugins/table/css/cell.css +0 -17
  155. data/public/javascripts/tinymce/plugins/table/css/row.css +0 -25
  156. data/public/javascripts/tinymce/plugins/table/css/table.css +0 -13
  157. data/public/javascripts/tinymce/plugins/table/editor_plugin.js +0 -1
  158. data/public/javascripts/tinymce/plugins/table/editor_plugin_src.js +0 -1198
  159. data/public/javascripts/tinymce/plugins/table/js/cell.js +0 -284
  160. data/public/javascripts/tinymce/plugins/table/js/merge_cells.js +0 -27
  161. data/public/javascripts/tinymce/plugins/table/js/row.js +0 -232
  162. data/public/javascripts/tinymce/plugins/table/js/table.js +0 -450
  163. data/public/javascripts/tinymce/plugins/table/langs/en_dlg.js +0 -74
  164. data/public/javascripts/tinymce/plugins/table/merge_cells.htm +0 -32
  165. data/public/javascripts/tinymce/plugins/table/row.htm +0 -157
  166. data/public/javascripts/tinymce/plugins/table/table.htm +0 -188
  167. data/public/javascripts/tinymce/plugins/template/blank.htm +0 -12
  168. data/public/javascripts/tinymce/plugins/template/css/template.css +0 -23
  169. data/public/javascripts/tinymce/plugins/template/editor_plugin.js +0 -1
  170. data/public/javascripts/tinymce/plugins/template/editor_plugin_src.js +0 -159
  171. data/public/javascripts/tinymce/plugins/template/js/template.js +0 -106
  172. data/public/javascripts/tinymce/plugins/template/langs/en_dlg.js +0 -15
  173. data/public/javascripts/tinymce/plugins/template/template.htm +0 -31
  174. data/public/javascripts/tinymce/plugins/visualchars/editor_plugin.js +0 -1
  175. data/public/javascripts/tinymce/plugins/visualchars/editor_plugin_src.js +0 -83
  176. data/public/javascripts/tinymce/plugins/wordcount/editor_plugin.js +0 -1
  177. data/public/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +0 -114
  178. data/public/javascripts/tinymce/plugins/xhtmlxtras/abbr.htm +0 -142
  179. data/public/javascripts/tinymce/plugins/xhtmlxtras/acronym.htm +0 -142
  180. data/public/javascripts/tinymce/plugins/xhtmlxtras/attributes.htm +0 -149
  181. data/public/javascripts/tinymce/plugins/xhtmlxtras/cite.htm +0 -142
  182. data/public/javascripts/tinymce/plugins/xhtmlxtras/css/attributes.css +0 -11
  183. data/public/javascripts/tinymce/plugins/xhtmlxtras/css/popup.css +0 -9
  184. data/public/javascripts/tinymce/plugins/xhtmlxtras/del.htm +0 -162
  185. data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin.js +0 -1
  186. data/public/javascripts/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +0 -132
  187. data/public/javascripts/tinymce/plugins/xhtmlxtras/ins.htm +0 -162
  188. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/abbr.js +0 -28
  189. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/acronym.js +0 -28
  190. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/attributes.js +0 -125
  191. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/cite.js +0 -28
  192. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/del.js +0 -53
  193. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/element_common.js +0 -229
  194. data/public/javascripts/tinymce/plugins/xhtmlxtras/js/ins.js +0 -53
  195. data/public/javascripts/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +0 -32
  196. data/public/javascripts/tinymce/themes/advanced/about.htm +0 -52
  197. data/public/javascripts/tinymce/themes/advanced/anchor.htm +0 -26
  198. data/public/javascripts/tinymce/themes/advanced/charmap.htm +0 -51
  199. data/public/javascripts/tinymce/themes/advanced/color_picker.htm +0 -74
  200. data/public/javascripts/tinymce/themes/advanced/editor_template.js +0 -1
  201. data/public/javascripts/tinymce/themes/advanced/editor_template_src.js +0 -1360
  202. data/public/javascripts/tinymce/themes/advanced/image.htm +0 -80
  203. data/public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
  204. data/public/javascripts/tinymce/themes/advanced/img/flash.gif +0 -0
  205. data/public/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
  206. data/public/javascripts/tinymce/themes/advanced/img/iframe.gif +0 -0
  207. data/public/javascripts/tinymce/themes/advanced/img/pagebreak.gif +0 -0
  208. data/public/javascripts/tinymce/themes/advanced/img/quicktime.gif +0 -0
  209. data/public/javascripts/tinymce/themes/advanced/img/realmedia.gif +0 -0
  210. data/public/javascripts/tinymce/themes/advanced/img/shockwave.gif +0 -0
  211. data/public/javascripts/tinymce/themes/advanced/img/trans.gif +0 -0
  212. data/public/javascripts/tinymce/themes/advanced/img/video.gif +0 -0
  213. data/public/javascripts/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
  214. data/public/javascripts/tinymce/themes/advanced/js/about.js +0 -73
  215. data/public/javascripts/tinymce/themes/advanced/js/anchor.js +0 -42
  216. data/public/javascripts/tinymce/themes/advanced/js/charmap.js +0 -355
  217. data/public/javascripts/tinymce/themes/advanced/js/color_picker.js +0 -329
  218. data/public/javascripts/tinymce/themes/advanced/js/image.js +0 -247
  219. data/public/javascripts/tinymce/themes/advanced/js/link.js +0 -153
  220. data/public/javascripts/tinymce/themes/advanced/js/source_editor.js +0 -56
  221. data/public/javascripts/tinymce/themes/advanced/langs/en.js +0 -68
  222. data/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +0 -54
  223. data/public/javascripts/tinymce/themes/advanced/link.htm +0 -57
  224. data/public/javascripts/tinymce/themes/advanced/shortcuts.htm +0 -47
  225. data/public/javascripts/tinymce/themes/advanced/skins/default/content.css +0 -47
  226. data/public/javascripts/tinymce/themes/advanced/skins/default/dialog.css +0 -117
  227. data/public/javascripts/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
  228. data/public/javascripts/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
  229. data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  230. data/public/javascripts/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  231. data/public/javascripts/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
  232. data/public/javascripts/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
  233. data/public/javascripts/tinymce/themes/advanced/skins/default/ui.css +0 -213
  234. data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/content.css +0 -23
  235. data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +0 -105
  236. data/public/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +0 -101
  237. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/content.css +0 -46
  238. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +0 -117
  239. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  240. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  241. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  242. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +0 -216
  243. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_black.css +0 -8
  244. data/public/javascripts/tinymce/themes/advanced/skins/o2k7/ui_silver.css +0 -5
  245. data/public/javascripts/tinymce/themes/advanced/source_editor.htm +0 -25
  246. data/public/javascripts/tinymce/themes/simple/editor_template.js +0 -1
  247. data/public/javascripts/tinymce/themes/simple/editor_template_src.js +0 -84
  248. data/public/javascripts/tinymce/themes/simple/img/icons.gif +0 -0
  249. data/public/javascripts/tinymce/themes/simple/langs/en.js +0 -11
  250. data/public/javascripts/tinymce/themes/simple/skins/default/content.css +0 -25
  251. data/public/javascripts/tinymce/themes/simple/skins/default/ui.css +0 -32
  252. data/public/javascripts/tinymce/themes/simple/skins/o2k7/content.css +0 -17
  253. data/public/javascripts/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
  254. data/public/javascripts/tinymce/themes/simple/skins/o2k7/ui.css +0 -35
  255. data/public/javascripts/tinymce/tiny_mce.js +0 -1
  256. data/public/javascripts/tinymce/tiny_mce_popup.js +0 -5
  257. data/public/javascripts/tinymce/tiny_mce_src.js +0 -15752
  258. data/public/javascripts/tinymce/utils/editable_selects.js +0 -70
  259. data/public/javascripts/tinymce/utils/form_utils.js +0 -210
  260. data/public/javascripts/tinymce/utils/mctabs.js +0 -162
  261. data/public/javascripts/tinymce/utils/validate.js +0 -252
@@ -1,70 +0,0 @@
1
- /**
2
- * editable_selects.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- var TinyMCE_EditableSelects = {
12
- editSelectElm : null,
13
-
14
- init : function() {
15
- var nl = document.getElementsByTagName("select"), i, d = document, o;
16
-
17
- for (i=0; i<nl.length; i++) {
18
- if (nl[i].className.indexOf('mceEditableSelect') != -1) {
19
- o = new Option('(value)', '__mce_add_custom__');
20
-
21
- o.className = 'mceAddSelectValue';
22
-
23
- nl[i].options[nl[i].options.length] = o;
24
- nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
25
- }
26
- }
27
- },
28
-
29
- onChangeEditableSelect : function(e) {
30
- var d = document, ne, se = window.event ? window.event.srcElement : e.target;
31
-
32
- if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
33
- ne = d.createElement("input");
34
- ne.id = se.id + "_custom";
35
- ne.name = se.name + "_custom";
36
- ne.type = "text";
37
-
38
- ne.style.width = se.offsetWidth + 'px';
39
- se.parentNode.insertBefore(ne, se);
40
- se.style.display = 'none';
41
- ne.focus();
42
- ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
43
- ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
44
- TinyMCE_EditableSelects.editSelectElm = se;
45
- }
46
- },
47
-
48
- onBlurEditableSelectInput : function() {
49
- var se = TinyMCE_EditableSelects.editSelectElm;
50
-
51
- if (se) {
52
- if (se.previousSibling.value != '') {
53
- addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
54
- selectByValue(document.forms[0], se.id, se.previousSibling.value);
55
- } else
56
- selectByValue(document.forms[0], se.id, '');
57
-
58
- se.style.display = 'inline';
59
- se.parentNode.removeChild(se.previousSibling);
60
- TinyMCE_EditableSelects.editSelectElm = null;
61
- }
62
- },
63
-
64
- onKeyDown : function(e) {
65
- e = e || window.event;
66
-
67
- if (e.keyCode == 13)
68
- TinyMCE_EditableSelects.onBlurEditableSelectInput();
69
- }
70
- };
@@ -1,210 +0,0 @@
1
- /**
2
- * form_utils.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
12
-
13
- function getColorPickerHTML(id, target_form_element) {
14
- var h = "", dom = tinyMCEPopup.dom;
15
-
16
- if (label = dom.select('label[for=' + target_form_element + ']')[0]) {
17
- label.id = label.id || dom.uniqueId();
18
- }
19
-
20
- h += '<a role="button" aria-labelledby="' + id + '_label" id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
21
- h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;<span id="' + id + '_label" class="mceVoiceLabel mceIconOnly" style="display:none;">' + tinyMCEPopup.getLang('browse') + '</span></span></a>';
22
-
23
- return h;
24
- }
25
-
26
- function updateColor(img_id, form_element_id) {
27
- document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value;
28
- }
29
-
30
- function setBrowserDisabled(id, state) {
31
- var img = document.getElementById(id);
32
- var lnk = document.getElementById(id + "_link");
33
-
34
- if (lnk) {
35
- if (state) {
36
- lnk.setAttribute("realhref", lnk.getAttribute("href"));
37
- lnk.removeAttribute("href");
38
- tinyMCEPopup.dom.addClass(img, 'disabled');
39
- } else {
40
- if (lnk.getAttribute("realhref"))
41
- lnk.setAttribute("href", lnk.getAttribute("realhref"));
42
-
43
- tinyMCEPopup.dom.removeClass(img, 'disabled');
44
- }
45
- }
46
- }
47
-
48
- function getBrowserHTML(id, target_form_element, type, prefix) {
49
- var option = prefix + "_" + type + "_browser_callback", cb, html;
50
-
51
- cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback"));
52
-
53
- if (!cb)
54
- return "";
55
-
56
- html = "";
57
- html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">';
58
- html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;</span></a>';
59
-
60
- return html;
61
- }
62
-
63
- function openBrowser(img_id, target_form_element, type, option) {
64
- var img = document.getElementById(img_id);
65
-
66
- if (img.className != "mceButtonDisabled")
67
- tinyMCEPopup.openBrowser(target_form_element, type, option);
68
- }
69
-
70
- function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
71
- if (!form_obj || !form_obj.elements[field_name])
72
- return;
73
-
74
- if (!value)
75
- value = "";
76
-
77
- var sel = form_obj.elements[field_name];
78
-
79
- var found = false;
80
- for (var i=0; i<sel.options.length; i++) {
81
- var option = sel.options[i];
82
-
83
- if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
84
- option.selected = true;
85
- found = true;
86
- } else
87
- option.selected = false;
88
- }
89
-
90
- if (!found && add_custom && value != '') {
91
- var option = new Option(value, value);
92
- option.selected = true;
93
- sel.options[sel.options.length] = option;
94
- sel.selectedIndex = sel.options.length - 1;
95
- }
96
-
97
- return found;
98
- }
99
-
100
- function getSelectValue(form_obj, field_name) {
101
- var elm = form_obj.elements[field_name];
102
-
103
- if (elm == null || elm.options == null || elm.selectedIndex === -1)
104
- return "";
105
-
106
- return elm.options[elm.selectedIndex].value;
107
- }
108
-
109
- function addSelectValue(form_obj, field_name, name, value) {
110
- var s = form_obj.elements[field_name];
111
- var o = new Option(name, value);
112
- s.options[s.options.length] = o;
113
- }
114
-
115
- function addClassesToList(list_id, specific_option) {
116
- // Setup class droplist
117
- var styleSelectElm = document.getElementById(list_id);
118
- var styles = tinyMCEPopup.getParam('theme_advanced_styles', false);
119
- styles = tinyMCEPopup.getParam(specific_option, styles);
120
-
121
- if (styles) {
122
- var stylesAr = styles.split(';');
123
-
124
- for (var i=0; i<stylesAr.length; i++) {
125
- if (stylesAr != "") {
126
- var key, value;
127
-
128
- key = stylesAr[i].split('=')[0];
129
- value = stylesAr[i].split('=')[1];
130
-
131
- styleSelectElm.options[styleSelectElm.length] = new Option(key, value);
132
- }
133
- }
134
- } else {
135
- tinymce.each(tinyMCEPopup.editor.dom.getClasses(), function(o) {
136
- styleSelectElm.options[styleSelectElm.length] = new Option(o.title || o['class'], o['class']);
137
- });
138
- }
139
- }
140
-
141
- function isVisible(element_id) {
142
- var elm = document.getElementById(element_id);
143
-
144
- return elm && elm.style.display != "none";
145
- }
146
-
147
- function convertRGBToHex(col) {
148
- var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
149
-
150
- var rgb = col.replace(re, "$1,$2,$3").split(',');
151
- if (rgb.length == 3) {
152
- r = parseInt(rgb[0]).toString(16);
153
- g = parseInt(rgb[1]).toString(16);
154
- b = parseInt(rgb[2]).toString(16);
155
-
156
- r = r.length == 1 ? '0' + r : r;
157
- g = g.length == 1 ? '0' + g : g;
158
- b = b.length == 1 ? '0' + b : b;
159
-
160
- return "#" + r + g + b;
161
- }
162
-
163
- return col;
164
- }
165
-
166
- function convertHexToRGB(col) {
167
- if (col.indexOf('#') != -1) {
168
- col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
169
-
170
- r = parseInt(col.substring(0, 2), 16);
171
- g = parseInt(col.substring(2, 4), 16);
172
- b = parseInt(col.substring(4, 6), 16);
173
-
174
- return "rgb(" + r + "," + g + "," + b + ")";
175
- }
176
-
177
- return col;
178
- }
179
-
180
- function trimSize(size) {
181
- return size.replace(/([0-9\.]+)(px|%|in|cm|mm|em|ex|pt|pc)/i, '$1$2');
182
- }
183
-
184
- function getCSSSize(size) {
185
- size = trimSize(size);
186
-
187
- if (size == "")
188
- return "";
189
-
190
- // Add px
191
- if (/^[0-9]+$/.test(size))
192
- size += 'px';
193
- // Sanity check, IE doesn't like broken values
194
- else if (!(/^[0-9\.]+(px|%|in|cm|mm|em|ex|pt|pc)$/i.test(size)))
195
- return "";
196
-
197
- return size;
198
- }
199
-
200
- function getStyle(elm, attrib, style) {
201
- var val = tinyMCEPopup.dom.getAttrib(elm, attrib);
202
-
203
- if (val != '')
204
- return '' + val;
205
-
206
- if (typeof(style) == 'undefined')
207
- style = attrib;
208
-
209
- return tinyMCEPopup.dom.getStyle(elm, style);
210
- }
@@ -1,162 +0,0 @@
1
- /**
2
- * mctabs.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- function MCTabs() {
12
- this.settings = [];
13
- this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatcher');
14
- };
15
-
16
- MCTabs.prototype.init = function(settings) {
17
- this.settings = settings;
18
- };
19
-
20
- MCTabs.prototype.getParam = function(name, default_value) {
21
- var value = null;
22
-
23
- value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
24
-
25
- // Fix bool values
26
- if (value == "true" || value == "false")
27
- return (value == "true");
28
-
29
- return value;
30
- };
31
-
32
- MCTabs.prototype.showTab =function(tab){
33
- tab.className = 'current';
34
- tab.setAttribute("aria-selected", true);
35
- tab.setAttribute("aria-expanded", true);
36
- tab.tabIndex = 0;
37
- };
38
-
39
- MCTabs.prototype.hideTab =function(tab){
40
- var t=this;
41
-
42
- tab.className = '';
43
- tab.setAttribute("aria-selected", false);
44
- tab.setAttribute("aria-expanded", false);
45
- tab.tabIndex = -1;
46
- };
47
-
48
- MCTabs.prototype.showPanel = function(panel) {
49
- panel.className = 'current';
50
- panel.setAttribute("aria-hidden", false);
51
- };
52
-
53
- MCTabs.prototype.hidePanel = function(panel) {
54
- panel.className = 'panel';
55
- panel.setAttribute("aria-hidden", true);
56
- };
57
-
58
- MCTabs.prototype.getPanelForTab = function(tabElm) {
59
- return tinyMCEPopup.dom.getAttrib(tabElm, "aria-controls");
60
- };
61
-
62
- MCTabs.prototype.displayTab = function(tab_id, panel_id, avoid_focus) {
63
- var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i, t = this;
64
-
65
- tabElm = document.getElementById(tab_id);
66
-
67
- if (panel_id === undefined) {
68
- panel_id = t.getPanelForTab(tabElm);
69
- }
70
-
71
- panelElm= document.getElementById(panel_id);
72
- panelContainerElm = panelElm ? panelElm.parentNode : null;
73
- tabContainerElm = tabElm ? tabElm.parentNode : null;
74
- selectionClass = t.getParam('selection_class', 'current');
75
-
76
- if (tabElm && tabContainerElm) {
77
- nodes = tabContainerElm.childNodes;
78
-
79
- // Hide all other tabs
80
- for (i = 0; i < nodes.length; i++) {
81
- if (nodes[i].nodeName == "LI") {
82
- t.hideTab(nodes[i]);
83
- }
84
- }
85
-
86
- // Show selected tab
87
- t.showTab(tabElm);
88
- }
89
-
90
- if (panelElm && panelContainerElm) {
91
- nodes = panelContainerElm.childNodes;
92
-
93
- // Hide all other panels
94
- for (i = 0; i < nodes.length; i++) {
95
- if (nodes[i].nodeName == "DIV")
96
- t.hidePanel(nodes[i]);
97
- }
98
-
99
- if (!avoid_focus) {
100
- tabElm.focus();
101
- }
102
-
103
- // Show selected panel
104
- t.showPanel(panelElm);
105
- }
106
- };
107
-
108
- MCTabs.prototype.getAnchor = function() {
109
- var pos, url = document.location.href;
110
-
111
- if ((pos = url.lastIndexOf('#')) != -1)
112
- return url.substring(pos + 1);
113
-
114
- return "";
115
- };
116
-
117
-
118
- //Global instance
119
- var mcTabs = new MCTabs();
120
-
121
- tinyMCEPopup.onInit.add(function() {
122
- var tinymce = tinyMCEPopup.getWin().tinymce, dom = tinyMCEPopup.dom, each = tinymce.each;
123
-
124
- each(dom.select('div.tabs'), function(tabContainerElm) {
125
- var keyNav;
126
-
127
- dom.setAttrib(tabContainerElm, "role", "tablist");
128
-
129
- var items = tinyMCEPopup.dom.select('li', tabContainerElm);
130
- var action = function(id) {
131
- mcTabs.displayTab(id, mcTabs.getPanelForTab(id));
132
- mcTabs.onChange.dispatch(id);
133
- };
134
-
135
- each(items, function(item) {
136
- dom.setAttrib(item, 'role', 'tab');
137
- dom.bind(item, 'click', function(evt) {
138
- action(item.id);
139
- });
140
- });
141
-
142
- dom.bind(dom.getRoot(), 'keydown', function(evt) {
143
- if (evt.keyCode === 9 && evt.ctrlKey && !evt.altKey) { // Tab
144
- keyNav.moveFocus(evt.shiftKey ? -1 : 1);
145
- tinymce.dom.Event.cancel(evt);
146
- }
147
- });
148
-
149
- each(dom.select('a', tabContainerElm), function(a) {
150
- dom.setAttrib(a, 'tabindex', '-1');
151
- });
152
-
153
- keyNav = tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
154
- root: tabContainerElm,
155
- items: items,
156
- onAction: action,
157
- actOnFocus: true,
158
- enableLeftRight: true,
159
- enableUpDown: true
160
- }, tinyMCEPopup.dom);
161
- });
162
- });
@@ -1,252 +0,0 @@
1
- /**
2
- * validate.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
- /**
12
- // String validation:
13
-
14
- if (!Validator.isEmail('myemail'))
15
- alert('Invalid email.');
16
-
17
- // Form validation:
18
-
19
- var f = document.forms['myform'];
20
-
21
- if (!Validator.isEmail(f.myemail))
22
- alert('Invalid email.');
23
- */
24
-
25
- var Validator = {
26
- isEmail : function(s) {
27
- return this.test(s, '^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$');
28
- },
29
-
30
- isAbsUrl : function(s) {
31
- return this.test(s, '^(news|telnet|nttp|file|http|ftp|https)://[-A-Za-z0-9\\.]+\\/?.*$');
32
- },
33
-
34
- isSize : function(s) {
35
- return this.test(s, '^[0-9]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
36
- },
37
-
38
- isId : function(s) {
39
- return this.test(s, '^[A-Za-z_]([A-Za-z0-9_])*$');
40
- },
41
-
42
- isEmpty : function(s) {
43
- var nl, i;
44
-
45
- if (s.nodeName == 'SELECT' && s.selectedIndex < 1)
46
- return true;
47
-
48
- if (s.type == 'checkbox' && !s.checked)
49
- return true;
50
-
51
- if (s.type == 'radio') {
52
- for (i=0, nl = s.form.elements; i<nl.length; i++) {
53
- if (nl[i].type == "radio" && nl[i].name == s.name && nl[i].checked)
54
- return false;
55
- }
56
-
57
- return true;
58
- }
59
-
60
- return new RegExp('^\\s*$').test(s.nodeType == 1 ? s.value : s);
61
- },
62
-
63
- isNumber : function(s, d) {
64
- return !isNaN(s.nodeType == 1 ? s.value : s) && (!d || !this.test(s, '^-?[0-9]*\\.[0-9]*$'));
65
- },
66
-
67
- test : function(s, p) {
68
- s = s.nodeType == 1 ? s.value : s;
69
-
70
- return s == '' || new RegExp(p).test(s);
71
- }
72
- };
73
-
74
- var AutoValidator = {
75
- settings : {
76
- id_cls : 'id',
77
- int_cls : 'int',
78
- url_cls : 'url',
79
- number_cls : 'number',
80
- email_cls : 'email',
81
- size_cls : 'size',
82
- required_cls : 'required',
83
- invalid_cls : 'invalid',
84
- min_cls : 'min',
85
- max_cls : 'max'
86
- },
87
-
88
- init : function(s) {
89
- var n;
90
-
91
- for (n in s)
92
- this.settings[n] = s[n];
93
- },
94
-
95
- validate : function(f) {
96
- var i, nl, s = this.settings, c = 0;
97
-
98
- nl = this.tags(f, 'label');
99
- for (i=0; i<nl.length; i++) {
100
- this.removeClass(nl[i], s.invalid_cls);
101
- nl[i].setAttribute('aria-invalid', false);
102
- }
103
-
104
- c += this.validateElms(f, 'input');
105
- c += this.validateElms(f, 'select');
106
- c += this.validateElms(f, 'textarea');
107
-
108
- return c == 3;
109
- },
110
-
111
- invalidate : function(n) {
112
- this.mark(n.form, n);
113
- },
114
-
115
- getErrorMessages : function(f) {
116
- var nl, i, s = this.settings, field, msg, values, messages = [], ed = tinyMCEPopup.editor;
117
- nl = this.tags(f, "label");
118
- for (i=0; i<nl.length; i++) {
119
- if (this.hasClass(nl[i], s.invalid_cls)) {
120
- field = document.getElementById(nl[i].getAttribute("for"));
121
- values = { field: nl[i].textContent };
122
- if (this.hasClass(field, s.min_cls, true)) {
123
- message = ed.getLang('invalid_data_min');
124
- values.min = this.getNum(field, s.min_cls);
125
- } else if (this.hasClass(field, s.number_cls)) {
126
- message = ed.getLang('invalid_data_number');
127
- } else if (this.hasClass(field, s.size_cls)) {
128
- message = ed.getLang('invalid_data_size');
129
- } else {
130
- message = ed.getLang('invalid_data');
131
- }
132
-
133
- message = message.replace(/{\#([^}]+)\}/g, function(a, b) {
134
- return values[b] || '{#' + b + '}';
135
- });
136
- messages.push(message);
137
- }
138
- }
139
- return messages;
140
- },
141
-
142
- reset : function(e) {
143
- var t = ['label', 'input', 'select', 'textarea'];
144
- var i, j, nl, s = this.settings;
145
-
146
- if (e == null)
147
- return;
148
-
149
- for (i=0; i<t.length; i++) {
150
- nl = this.tags(e.form ? e.form : e, t[i]);
151
- for (j=0; j<nl.length; j++) {
152
- this.removeClass(nl[j], s.invalid_cls);
153
- nl[j].setAttribute('aria-invalid', false);
154
- }
155
- }
156
- },
157
-
158
- validateElms : function(f, e) {
159
- var nl, i, n, s = this.settings, st = true, va = Validator, v;
160
-
161
- nl = this.tags(f, e);
162
- for (i=0; i<nl.length; i++) {
163
- n = nl[i];
164
-
165
- this.removeClass(n, s.invalid_cls);
166
-
167
- if (this.hasClass(n, s.required_cls) && va.isEmpty(n))
168
- st = this.mark(f, n);
169
-
170
- if (this.hasClass(n, s.number_cls) && !va.isNumber(n))
171
- st = this.mark(f, n);
172
-
173
- if (this.hasClass(n, s.int_cls) && !va.isNumber(n, true))
174
- st = this.mark(f, n);
175
-
176
- if (this.hasClass(n, s.url_cls) && !va.isAbsUrl(n))
177
- st = this.mark(f, n);
178
-
179
- if (this.hasClass(n, s.email_cls) && !va.isEmail(n))
180
- st = this.mark(f, n);
181
-
182
- if (this.hasClass(n, s.size_cls) && !va.isSize(n))
183
- st = this.mark(f, n);
184
-
185
- if (this.hasClass(n, s.id_cls) && !va.isId(n))
186
- st = this.mark(f, n);
187
-
188
- if (this.hasClass(n, s.min_cls, true)) {
189
- v = this.getNum(n, s.min_cls);
190
-
191
- if (isNaN(v) || parseInt(n.value) < parseInt(v))
192
- st = this.mark(f, n);
193
- }
194
-
195
- if (this.hasClass(n, s.max_cls, true)) {
196
- v = this.getNum(n, s.max_cls);
197
-
198
- if (isNaN(v) || parseInt(n.value) > parseInt(v))
199
- st = this.mark(f, n);
200
- }
201
- }
202
-
203
- return st;
204
- },
205
-
206
- hasClass : function(n, c, d) {
207
- return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className);
208
- },
209
-
210
- getNum : function(n, c) {
211
- c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0];
212
- c = c.replace(/[^0-9]/g, '');
213
-
214
- return c;
215
- },
216
-
217
- addClass : function(n, c, b) {
218
- var o = this.removeClass(n, c);
219
- n.className = b ? c + (o != '' ? (' ' + o) : '') : (o != '' ? (o + ' ') : '') + c;
220
- },
221
-
222
- removeClass : function(n, c) {
223
- c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' ');
224
- return n.className = c != ' ' ? c : '';
225
- },
226
-
227
- tags : function(f, s) {
228
- return f.getElementsByTagName(s);
229
- },
230
-
231
- mark : function(f, n) {
232
- var s = this.settings;
233
-
234
- this.addClass(n, s.invalid_cls);
235
- n.setAttribute('aria-invalid', 'true');
236
- this.markLabels(f, n, s.invalid_cls);
237
-
238
- return false;
239
- },
240
-
241
- markLabels : function(f, n, ic) {
242
- var nl, i;
243
-
244
- nl = this.tags(f, "label");
245
- for (i=0; i<nl.length; i++) {
246
- if (nl[i].getAttribute("for") == n.id || nl[i].htmlFor == n.id)
247
- this.addClass(nl[i], ic);
248
- }
249
-
250
- return null;
251
- }
252
- };