erp_app 3.1.16 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1634) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -5
  3. data/app/controllers/erp_app/desktop/configuration_management/base_controller.rb +2 -2
  4. data/app/controllers/erp_app/desktop/configuration_management/options_controller.rb +14 -14
  5. data/app/controllers/erp_app/desktop/configuration_management/types_controller.rb +3 -3
  6. data/app/controllers/erp_app/desktop/control_panel/application_management_controller.rb +2 -2
  7. data/app/controllers/erp_app/desktop/file_manager/base_controller.rb +1 -1
  8. data/app/controllers/erp_app/desktop/job_tracker/base_controller.rb +5 -6
  9. data/app/controllers/erp_app/desktop/security_management/base_controller.rb +7 -7
  10. data/app/controllers/erp_app/desktop/security_management/capabilities_controller.rb +37 -42
  11. data/app/controllers/erp_app/desktop/security_management/groups_controller.rb +70 -75
  12. data/app/controllers/erp_app/desktop/security_management/roles_controller.rb +63 -68
  13. data/app/controllers/erp_app/desktop/security_management/users_controller.rb +45 -50
  14. data/app/controllers/erp_app/login_controller.rb +20 -11
  15. data/app/controllers/erp_app/mobile/user_management/base_controller.rb +4 -5
  16. data/app/controllers/erp_app/organizer/application_management_controller.rb +47 -0
  17. data/app/controllers/erp_app/organizer/crm/contact_mechanisms_controller.rb +150 -0
  18. data/app/controllers/erp_app/organizer/crm/parties_controller.rb +326 -0
  19. data/app/controllers/erp_app/organizer/crm/relationship_controller.rb +28 -30
  20. data/app/controllers/erp_app/organizer/crm/users_controller.rb +250 -0
  21. data/app/controllers/erp_app/public_controller.rb +9 -2
  22. data/app/controllers/erp_app/shared/audit_log_controller.rb +68 -0
  23. data/app/controllers/erp_app/shared/configuration_controller.rb +3 -3
  24. data/app/controllers/erp_app/shared/notes_controller.rb +50 -40
  25. data/app/controllers/erp_app/widget_proxy_controller.rb +6 -4
  26. data/app/models/application.rb +8 -2
  27. data/app/models/configuration.rb +46 -24
  28. data/app/models/configuration_item.rb +8 -0
  29. data/app/models/desktop.rb +0 -14
  30. data/app/models/organizer.rb +0 -14
  31. data/app/models/widget.rb +0 -3
  32. data/app/views/erp_app/desktop/base/index.erb +28 -35
  33. data/app/views/erp_app/login/index.erb +5 -2
  34. data/app/views/erp_app/organizer/base/index.erb +22 -17
  35. data/app/views/erp_app/organizer/crm/parties/details.erb +89 -0
  36. data/app/views/erp_app/pixlr/close.erb +5 -0
  37. data/config/routes.rb +74 -42
  38. data/db/data_migrations/20130703181549_create_tail_desktop_application.rb +4 -7
  39. data/db/data_migrations/20131102171801_add_customer_role_type.rb +11 -0
  40. data/db/data_migrations/20131108191057_add_customer_employee_reln.rb +26 -0
  41. data/db/data_migrations/20140122205941_remove_theme_preference.rb +21 -0
  42. data/db/migrate/20131112013049_add_erp_app_missing_indexes.rb +31 -0
  43. data/db/migrate/20131129205550_add_precedence_to_configuration_item_types.rb +7 -0
  44. data/lib/active_ext/active_ext.rb +1 -1
  45. data/lib/active_ext/ext_helpers/field_builder.rb +140 -140
  46. data/lib/erp_app/application_resource_loader/desktop_organizer_loader.rb +1 -2
  47. data/lib/erp_app/engine.rb +0 -5
  48. data/lib/erp_app/extensions/active_record/has_user_preferences.rb +70 -69
  49. data/lib/erp_app/extensions/railties/action_view/helpers/include_helper.rb +29 -27
  50. data/lib/erp_app/version.rb +7 -3
  51. data/lib/erp_app/widgets/base.rb +21 -4
  52. data/lib/erp_app/widgets/loader.rb +2 -2
  53. data/lib/erp_app.rb +1 -0
  54. data/lib/generators/cms_widget/USAGE +0 -6
  55. data/lib/generators/cms_widget/templates/javascript/base.js.erb +1 -1
  56. data/lib/generators/desktop_application/templates/migrate/migration_template.erb +4 -6
  57. data/lib/generators/organizer_application/templates/controllers/controller_template.erb +1 -2
  58. data/lib/generators/organizer_application/templates/public/base.js.erb +21 -25
  59. data/public/images/art/compass-ae-logo-reverse-1.png +0 -0
  60. data/public/images/btn/save/save_16x16.png +0 -0
  61. data/public/images/btn/save_all/save_all_16x16.png +0 -0
  62. data/public/images/btn_light/add/add_16x16.png +0 -0
  63. data/public/images/btn_light/left_panel/left_panel_16x16.png +0 -0
  64. data/public/images/btn_light/left_right_panel/left_right_panel_16x16.png +0 -0
  65. data/public/images/btn_light/right_panel/right_panel_16x16.png +0 -0
  66. data/public/images/btn_light/save/save_16x16.png +0 -0
  67. data/public/images/btn_light/save_all/save_all_16x16.png +0 -0
  68. data/public/images/erp_app/desktop/applications/security_management/manage_capabilities.png +0 -0
  69. data/public/images/erp_app/desktop/applications/security_management/manage_groups.png +0 -0
  70. data/public/images/erp_app/desktop/applications/security_management/manage_roles.png +0 -0
  71. data/public/images/erp_app/desktop/applications/security_management/manage_users.png +0 -0
  72. data/public/images/erp_app/desktop/compass_logo_start_icon.png +0 -0
  73. data/public/images/erp_app/organizer/applications/crm/business.png +0 -0
  74. data/public/images/erp_app/organizer/applications/crm/business_64x64.png +0 -0
  75. data/public/images/erp_app/organizer/applications/crm/customer-contact.png +0 -0
  76. data/public/images/erp_app/organizer/applications/crm/customer_360_64x64.png +0 -0
  77. data/public/images/erp_app/organizer/applications/crm/people.png +0 -0
  78. data/public/images/erp_app/organizer/applications/crm/person.png +0 -0
  79. data/public/images/erp_app/organizer/applications/crm/toolbar_find.png +0 -0
  80. data/public/images/erp_app/organizer/applications/crm/vcard.png +0 -0
  81. data/public/images/icons/add/add_16x16.png +0 -0
  82. data/public/images/icons/add/add_light_16x16.png +0 -0
  83. data/public/images/icons/arrow_left_blue/arrow_left_blue_16x16.png +0 -0
  84. data/public/images/icons/arrow_left_blue/arrow_left_blue_32x32.png +0 -0
  85. data/public/images/icons/arrow_left_blue/arrow_left_blue_48x48.png +0 -0
  86. data/public/images/icons/arrow_right_blue/arrow_right_blue_16x16.png +0 -0
  87. data/public/images/icons/arrow_right_blue/arrow_right_blue_32x32.png +0 -0
  88. data/public/images/icons/arrow_right_blue/arrow_right_blue_48x48.png +0 -0
  89. data/public/images/icons/article/article_16x16.png +0 -0
  90. data/public/images/icons/blog/blog_16x16.png +0 -0
  91. data/public/images/icons/blog/blog_24x24.png +0 -0
  92. data/public/images/icons/blog/blog_32x32.png +0 -0
  93. data/public/images/icons/blog/blog_48x48.png +0 -0
  94. data/public/images/icons/book/book_16x16.png +0 -0
  95. data/public/images/icons/calendar/calendar_16x16.png +0 -0
  96. data/public/images/icons/calendar/calendar_64x64.png +0 -0
  97. data/public/images/icons/calendar/calendar_light_16x16.png +0 -0
  98. data/public/images/icons/code/code_16x16.png +0 -0
  99. data/public/images/icons/console/console_16x16.png +0 -0
  100. data/public/images/icons/console/console_64x64.png +0 -0
  101. data/public/images/icons/contact-us/contact-us_48x48.png +0 -0
  102. data/public/images/icons/content/content_16x16.png +0 -0
  103. data/public/images/icons/control_panel/control_panel_16x16.png +0 -0
  104. data/public/images/icons/control_panel/control_panel_48x48.png +0 -0
  105. data/public/images/icons/control_panel/control_panel_64x64.png +0 -0
  106. data/public/images/icons/copy/copy_16x16.png +0 -0
  107. data/public/images/icons/creditcards/creditcards_16x16.png +0 -0
  108. data/public/images/icons/creditcards/creditcards_24x24.png +0 -0
  109. data/public/images/icons/creditcards/creditcards_32x32.png +0 -0
  110. data/public/images/icons/creditcards/creditcards_48x48.png +0 -0
  111. data/public/images/icons/creditcards/creditcards_64x64.png +0 -0
  112. data/public/images/icons/crm/crm_16x16.png +0 -0
  113. data/public/images/icons/crm/crm_light_16x16.png +0 -0
  114. data/public/images/icons/csr/csr_16x16.png +0 -0
  115. data/public/images/icons/csr/csr_256x256.png +0 -0
  116. data/public/images/icons/csr/csr_500x500.png +0 -0
  117. data/public/images/icons/data/data_16x16.png +0 -0
  118. data/public/images/icons/data/data_64x64.png +0 -0
  119. data/public/images/icons/database/database_16x16.png +0 -0
  120. data/public/images/icons/database_column/database_column_16x16.png +0 -0
  121. data/public/images/icons/db_edit_data/db_edit_data_16x16.png +0 -0
  122. data/public/images/icons/db_table/db_table_16x16.png +0 -0
  123. data/public/images/icons/delete/delete_16x16.png +0 -0
  124. data/public/images/icons/doc_settings/doc_settings_16x16.png +0 -0
  125. data/public/images/icons/document/document_16x16.png +0 -0
  126. data/public/images/icons/document_lock/document_lock_16x16.png +0 -0
  127. data/public/images/icons/document_pulse/document_pulse_64x64.png +0 -0
  128. data/public/images/icons/edit/edit_16x16.png +0 -0
  129. data/public/images/icons/exit/exit_16x16.png +0 -0
  130. data/public/images/icons/eye/eye_16x16.png +0 -0
  131. data/public/images/icons/eye/eye_24x24.png +0 -0
  132. data/public/images/icons/eye/eye_32x32.png +0 -0
  133. data/public/images/icons/eye/eye_48x48.png +0 -0
  134. data/public/images/icons/fieldtypes/business_party.png +0 -0
  135. data/public/images/icons/fieldtypes/check.png +0 -0
  136. data/public/images/icons/fieldtypes/date.png +0 -0
  137. data/public/images/icons/fieldtypes/display.png +0 -0
  138. data/public/images/icons/fieldtypes/email.png +0 -0
  139. data/public/images/icons/fieldtypes/file.png +0 -0
  140. data/public/images/icons/fieldtypes/file_assets.png +0 -0
  141. data/public/images/icons/fieldtypes/image.png +0 -0
  142. data/public/images/icons/fieldtypes/money.png +0 -0
  143. data/public/images/icons/fieldtypes/number.png +0 -0
  144. data/public/images/icons/fieldtypes/password.png +0 -0
  145. data/public/images/icons/fieldtypes/question.png +0 -0
  146. data/public/images/icons/fieldtypes/radio.png +0 -0
  147. data/public/images/icons/fieldtypes/select.png +0 -0
  148. data/public/images/icons/fieldtypes/text.png +0 -0
  149. data/public/images/icons/fieldtypes/text.psd +0 -0
  150. data/public/images/icons/fieldtypes/text_area.png +0 -0
  151. data/public/images/icons/fieldtypes/time.png +0 -0
  152. data/public/images/icons/fieldtypes/yes_no.png +0 -0
  153. data/public/images/icons/file_manager/file_manager_16x16.png +0 -0
  154. data/public/images/icons/file_manager/file_manager_light_16x16.png +0 -0
  155. data/public/images/icons/folders/folders_64x64.png +0 -0
  156. data/public/images/icons/footprints/footprints_16x16.png +0 -0
  157. data/public/images/icons/footprints/footprints_light_16x16.png +0 -0
  158. data/public/images/icons/form/form_16x16.png +0 -0
  159. data/public/images/icons/form/form_light_16x16.png +0 -0
  160. data/public/images/icons/gantt/gantt_24x24.png +0 -0
  161. data/public/images/icons/gear/gear_16x16.png +0 -0
  162. data/public/images/icons/gear/gear_light_16x16.png +0 -0
  163. data/public/images/icons/globe/globe_16x16.png +0 -0
  164. data/public/images/icons/globe/globe_64x64.png +0 -0
  165. data/public/images/icons/globe/globe_light_16x16.png +0 -0
  166. data/public/images/icons/google-map/google-map_48x48.png +0 -0
  167. data/public/images/icons/grid/grid_16x16.png +0 -0
  168. data/public/images/icons/grid/grid_64x64.png +0 -0
  169. data/public/images/icons/hierarchy/hierarchy_16x16.png +0 -0
  170. data/public/images/icons/history/history_16x16.png +0 -0
  171. data/public/images/icons/history/history_64x64.png +0 -0
  172. data/public/images/icons/history/history_light_16x16.png +0 -0
  173. data/public/images/icons/home/home_16x16.png +0 -0
  174. data/public/images/icons/home/home_48x48.png +0 -0
  175. data/public/images/icons/ia/ia_16x16.png +0 -0
  176. data/public/images/icons/information/information_16x16.png +0 -0
  177. data/public/images/icons/invoicing/invoicing_48x48.png +0 -0
  178. data/public/images/icons/invoicing/invoicing_64x64.png +0 -0
  179. data/public/images/icons/key/key_16x16.png +0 -0
  180. data/public/images/icons/key/key_64x64.png +0 -0
  181. data/public/images/icons/knitkit/knitkit_16x16.png +0 -0
  182. data/public/images/icons/knitkit/knitkit_48x48.png +0 -0
  183. data/public/images/icons/knitkit/knitkit_light_16x16.png +0 -0
  184. data/public/images/icons/login/login_48x48.png +0 -0
  185. data/public/images/icons/magnifying-glass/magnifying-glass_48x48.png +0 -0
  186. data/public/images/icons/mail/mail_16x16.png +0 -0
  187. data/public/images/icons/mail/mail_24x24.png +0 -0
  188. data/public/images/icons/mail/mail_32x32.png +0 -0
  189. data/public/images/icons/mail/mail_48x48.png +0 -0
  190. data/public/images/icons/manage-profile/manage-profile_48x48.png +0 -0
  191. data/public/images/icons/menu/menu_16x16.png +0 -0
  192. data/public/images/icons/ordered_list/ordered_list_16x16.png +0 -0
  193. data/public/images/icons/package/package_16x16.png +0 -0
  194. data/public/images/icons/package/package_64x64.png +0 -0
  195. data/public/images/icons/package/package_light_16x16.png +0 -0
  196. data/public/images/icons/palette/palette_64x64.png +0 -0
  197. data/public/images/icons/person/person_16x16.png +0 -0
  198. data/public/images/icons/phone/phone_16x16.png +0 -0
  199. data/public/images/icons/phone/phone_64x64.png +0 -0
  200. data/public/images/icons/picture/picture_16x16.png +0 -0
  201. data/public/images/icons/play/play_16x16.png +0 -0
  202. data/public/images/icons/product/product_16x16.png +0 -0
  203. data/public/images/icons/product/product_64x64.png +0 -0
  204. data/public/images/icons/product/product_light_16x16.png +0 -0
  205. data/public/images/icons/query/query_16x16.png +0 -0
  206. data/public/images/icons/redo/redo_16x16.png +0 -0
  207. data/public/images/icons/refresh/refresh_16x16.png +0 -0
  208. data/public/images/icons/report/report_16x16.png +0 -0
  209. data/public/images/icons/reset-password/reset-password_48x48.png +0 -0
  210. data/public/images/icons/rowselect/rowselect_16x16.png +0 -0
  211. data/public/images/icons/save/save_16x16.png +0 -0
  212. data/public/images/icons/save_as/save_as_16x16.png +0 -0
  213. data/public/images/icons/scaffold/scaffold_16x16.png +0 -0
  214. data/public/images/icons/scaffold/scaffold_light_16x16.png +0 -0
  215. data/public/images/icons/search/search_16x16.png +0 -0
  216. data/public/images/icons/search/search_24x24.png +0 -0
  217. data/public/images/icons/search/search_32x32.png +0 -0
  218. data/public/images/icons/search/search_48x48.png +0 -0
  219. data/public/images/icons/search/search_light_16x16.png +0 -0
  220. data/public/images/icons/section/section_16x16.png +0 -0
  221. data/public/images/icons/section/section_24x24.png +0 -0
  222. data/public/images/icons/section/section_32x32.png +0 -0
  223. data/public/images/icons/section/section_48x48.png +0 -0
  224. data/public/images/icons/section_lock/section_lock_16x16.png +0 -0
  225. data/public/images/icons/section_lock/section_lock_24x24.png +0 -0
  226. data/public/images/icons/section_lock/section_lock_32x32.png +0 -0
  227. data/public/images/icons/section_lock/section_lock_48x48.png +0 -0
  228. data/public/images/icons/secure/secure_16x16.png +0 -0
  229. data/public/images/icons/settings/settings_16x16.png +0 -0
  230. data/public/images/icons/settings/settings_light_16x16.png +0 -0
  231. data/public/images/icons/shopping_cart/shopping_card_64x64.png +0 -0
  232. data/public/images/icons/shopping_cart/shopping_cart_32x32.png +0 -0
  233. data/public/images/icons/shopping_cart/shopping_cart_48x48.png +0 -0
  234. data/public/images/icons/sign_up/sign_up_32x32.png +0 -0
  235. data/public/images/icons/sign_up/sign_up_48x48.png +0 -0
  236. data/public/images/icons/sign_up/sign_up_64x64.png +0 -0
  237. data/public/images/icons/signup/signup_48x48.png +0 -0
  238. data/public/images/icons/simple_arrow/simple_arrow_16x16.png +0 -0
  239. data/public/images/icons/small_gear/small_gear_16x16.png +0 -0
  240. data/public/images/icons/sql/sql_16x16.png +0 -0
  241. data/public/images/icons/tables/tables_16x16.png +0 -0
  242. data/public/images/icons/theme/theme_16x16.png +0 -0
  243. data/public/images/icons/theme_upload/theme_upload_16x16.png +0 -0
  244. data/public/images/icons/ticket/tag_16x16.png +0 -0
  245. data/public/images/icons/undo/undo_16x16.png +0 -0
  246. data/public/images/icons/user/user_128x128.png +0 -0
  247. data/public/images/icons/user/user_16x16.png +0 -0
  248. data/public/images/icons/user/user_64x64.png +0 -0
  249. data/public/images/icons/user/user_light_16x16.png +0 -0
  250. data/public/images/icons/user_mgt/user_mgt_16x16.png +0 -0
  251. data/public/images/icons/user_mgt/user_mgt_light_16x16.png +0 -0
  252. data/public/images/icons/vcard/vcard_16x16.png +0 -0
  253. data/public/images/icons/view/view_16x16.png +0 -0
  254. data/public/images/icons/view/view_24x24.png +0 -0
  255. data/public/images/icons/view/view_32x32.png +0 -0
  256. data/public/images/icons/view/view_48x48.png +0 -0
  257. data/public/images/icons/warning/waring_16x16.png +0 -0
  258. data/public/images/icons/website/website_16x16.png +0 -0
  259. data/public/images/icons/website_download/website_download_16x16.png +0 -0
  260. data/public/images/icons/website_publications/website_publications_16x16.png +0 -0
  261. data/public/images/icons/website_upload/website_upload_16x16.png +0 -0
  262. data/public/images/loading_icon.gif +0 -0
  263. data/public/images/splash_screen/browse_docs_icon.png +0 -0
  264. data/public/images/splash_screen/desktop_icon.png +0 -0
  265. data/public/images/tab/tab-default-close.png +0 -0
  266. data/public/javascripts/erp_app/authentication/compass_user.js +77 -69
  267. data/public/javascripts/erp_app/ckeditor/ckeditor.js +927 -152
  268. data/public/javascripts/erp_app/ckeditor/config.js +12 -11
  269. data/public/javascripts/erp_app/ckeditor/contents.css +84 -6
  270. data/public/javascripts/erp_app/ckeditor/lang/en.js +3 -4
  271. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -7
  272. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
  273. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +9 -0
  274. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -0
  275. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +10 -0
  276. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -0
  277. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +9 -0
  278. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -0
  279. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +10 -0
  280. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +10 -0
  281. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +9 -0
  282. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +10 -0
  283. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +10 -0
  284. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -0
  285. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +9 -0
  286. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +10 -0
  287. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +10 -0
  288. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +11 -0
  289. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +10 -0
  290. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +9 -0
  291. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +9 -0
  292. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +9 -0
  293. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -0
  294. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +10 -0
  295. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +9 -0
  296. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +10 -0
  297. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
  298. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +9 -0
  299. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +10 -0
  300. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +9 -0
  301. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +11 -0
  302. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -0
  303. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +9 -0
  304. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -0
  305. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +10 -0
  306. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +9 -0
  307. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +10 -0
  308. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -0
  309. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +10 -0
  310. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -0
  311. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +9 -0
  312. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +8 -0
  313. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +10 -0
  314. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +10 -0
  315. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +9 -0
  316. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +9 -0
  317. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +9 -0
  318. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +10 -0
  319. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +9 -0
  320. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +10 -0
  321. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +9 -0
  322. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +10 -0
  323. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +9 -0
  324. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
  325. data/public/javascripts/erp_app/ckeditor/plugins/about/dialogs/about.js +7 -6
  326. data/public/javascripts/erp_app/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  327. data/public/javascripts/erp_app/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  328. data/public/javascripts/erp_app/ckeditor/plugins/clipboard/dialogs/paste.js +11 -7
  329. data/public/javascripts/erp_app/ckeditor/plugins/codemirror/lang/en.js +12 -0
  330. data/public/javascripts/erp_app/ckeditor/plugins/codemirror/plugin.js +756 -59
  331. data/public/javascripts/erp_app/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -7
  332. data/public/javascripts/erp_app/ckeditor/plugins/dialog/dialogDefinition.js +4 -4
  333. data/public/javascripts/erp_app/ckeditor/plugins/div/dialogs/div.js +9 -8
  334. data/public/javascripts/erp_app/ckeditor/{images → plugins/fakeobjects/images}/spacer.gif +0 -0
  335. data/public/javascripts/erp_app/ckeditor/plugins/find/dialogs/find.js +24 -10
  336. data/public/javascripts/erp_app/ckeditor/plugins/flash/dialogs/flash.js +24 -9
  337. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/button.js +8 -6
  338. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/checkbox.js +8 -6
  339. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/form.js +8 -6
  340. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -6
  341. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/radio.js +8 -6
  342. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/select.js +20 -9
  343. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/textarea.js +8 -6
  344. data/public/javascripts/erp_app/ckeditor/plugins/forms/dialogs/textfield.js +10 -6
  345. data/public/javascripts/erp_app/ckeditor/plugins/icons.png +0 -0
  346. data/public/javascripts/erp_app/ckeditor/plugins/icons_hidpi.png +0 -0
  347. data/public/javascripts/erp_app/ckeditor/plugins/iframe/dialogs/iframe.js +10 -7
  348. data/public/javascripts/erp_app/ckeditor/plugins/image/dialogs/image.js +43 -13
  349. data/public/javascripts/erp_app/ckeditor/{skins/kama → plugins/image}/images/noimage.png +0 -0
  350. data/public/javascripts/erp_app/ckeditor/plugins/inlineeditsave/plugin.js +3 -1
  351. data/public/javascripts/erp_app/ckeditor/plugins/knitkitthemes/plugin.js +2 -5
  352. data/public/javascripts/erp_app/ckeditor/plugins/link/dialogs/anchor.js +8 -6
  353. data/public/javascripts/erp_app/ckeditor/plugins/link/dialogs/link.js +36 -12
  354. data/public/javascripts/erp_app/ckeditor/plugins/link/images/anchor.png +0 -0
  355. data/public/javascripts/erp_app/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  356. data/public/javascripts/erp_app/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -7
  357. data/public/javascripts/erp_app/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  358. data/public/javascripts/erp_app/ckeditor/plugins/magicline/images/icon.png +0 -0
  359. data/public/javascripts/erp_app/ckeditor/plugins/pastefromword/filter/default.js +31 -11
  360. data/public/javascripts/erp_app/ckeditor/plugins/scayt/LICENSE.md +28 -0
  361. data/public/javascripts/erp_app/ckeditor/plugins/scayt/README.md +25 -0
  362. data/public/javascripts/erp_app/ckeditor/plugins/scayt/dialogs/options.js +20 -8
  363. data/public/javascripts/erp_app/ckeditor/plugins/scayt/dialogs/toolbar.css +70 -5
  364. data/public/javascripts/erp_app/ckeditor/plugins/smiley/dialogs/smiley.js +10 -7
  365. data/public/javascripts/erp_app/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  366. data/public/javascripts/erp_app/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  367. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
  368. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
  369. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
  370. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
  371. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  372. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  373. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  374. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  375. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  376. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  377. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
  378. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
  379. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
  380. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  381. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
  382. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
  383. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
  384. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/he.js +13 -0
  385. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  386. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
  387. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
  388. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  389. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
  390. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
  391. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
  392. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  393. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  394. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  395. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
  396. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  397. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
  398. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
  399. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
  400. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
  401. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
  402. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
  403. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
  404. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
  405. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  406. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  407. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
  408. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/vi.js +13 -0
  409. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  410. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -7
  411. data/public/javascripts/erp_app/ckeditor/plugins/syntaxhighlight/dialogs/syntaxhighlight.js +418 -0
  412. data/public/javascripts/erp_app/ckeditor/plugins/syntaxhighlight/icons/syntaxhighlight.png +0 -0
  413. data/public/javascripts/erp_app/ckeditor/plugins/syntaxhighlight/lang/de.js +22 -0
  414. data/public/javascripts/erp_app/ckeditor/plugins/syntaxhighlight/lang/en.js +22 -0
  415. data/public/javascripts/erp_app/ckeditor/plugins/syntaxhighlight/lang/fr.js +22 -0
  416. data/public/javascripts/erp_app/ckeditor/plugins/syntaxhighlight/lang/zh-cn.js +22 -0
  417. data/public/javascripts/erp_app/ckeditor/plugins/syntaxhighlight/plugin.js +144 -0
  418. data/public/javascripts/erp_app/ckeditor/plugins/table/dialogs/table.js +21 -9
  419. data/public/javascripts/erp_app/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -8
  420. data/public/javascripts/erp_app/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  421. data/public/javascripts/erp_app/ckeditor/plugins/templates/dialogs/templates.js +10 -7
  422. data/public/javascripts/erp_app/ckeditor/plugins/templates/templates/default.js +6 -6
  423. data/public/javascripts/erp_app/ckeditor/plugins/wsc/LICENSE.md +28 -0
  424. data/public/javascripts/erp_app/ckeditor/plugins/wsc/README.md +25 -0
  425. data/public/javascripts/erp_app/ckeditor/plugins/wsc/dialogs/ciframe.html +17 -0
  426. data/public/javascripts/erp_app/ckeditor/plugins/wsc/dialogs/tmp.html +131 -0
  427. data/public/javascripts/erp_app/ckeditor/plugins/wsc/dialogs/wsc.css +77 -1
  428. data/public/javascripts/erp_app/ckeditor/plugins/wsc/dialogs/wsc.js +67 -7
  429. data/public/javascripts/erp_app/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
  430. data/public/javascripts/erp_app/ckeditor/skins/moono/dialog.css +5 -0
  431. data/public/javascripts/erp_app/ckeditor/skins/moono/dialog_ie.css +5 -0
  432. data/public/javascripts/erp_app/ckeditor/skins/moono/dialog_ie7.css +5 -0
  433. data/public/javascripts/erp_app/ckeditor/skins/moono/dialog_ie8.css +5 -0
  434. data/public/javascripts/erp_app/ckeditor/skins/moono/dialog_iequirks.css +5 -0
  435. data/public/javascripts/erp_app/ckeditor/skins/moono/dialog_opera.css +5 -0
  436. data/public/javascripts/erp_app/ckeditor/skins/moono/editor.css +20 -0
  437. data/public/javascripts/erp_app/ckeditor/skins/moono/editor_gecko.css +5 -0
  438. data/public/javascripts/erp_app/ckeditor/skins/moono/editor_ie.css +5 -0
  439. data/public/javascripts/erp_app/ckeditor/skins/moono/editor_ie7.css +5 -0
  440. data/public/javascripts/erp_app/ckeditor/skins/moono/editor_ie8.css +5 -0
  441. data/public/javascripts/erp_app/ckeditor/skins/moono/editor_iequirks.css +5 -0
  442. data/public/javascripts/erp_app/ckeditor/skins/moono/icons.png +0 -0
  443. data/public/javascripts/erp_app/ckeditor/skins/moono/icons_hidpi.png +0 -0
  444. data/public/javascripts/erp_app/ckeditor/skins/moono/images/arrow.png +0 -0
  445. data/public/javascripts/erp_app/ckeditor/skins/moono/images/close.png +0 -0
  446. data/public/javascripts/erp_app/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  447. data/public/javascripts/erp_app/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  448. data/public/javascripts/erp_app/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  449. data/public/javascripts/erp_app/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  450. data/public/javascripts/erp_app/ckeditor/skins/moono/images/lock-open.png +0 -0
  451. data/public/javascripts/erp_app/ckeditor/skins/moono/images/lock.png +0 -0
  452. data/public/javascripts/erp_app/ckeditor/skins/moono/images/refresh.png +0 -0
  453. data/public/javascripts/erp_app/ckeditor/skins/moono/readme.md +51 -0
  454. data/public/javascripts/erp_app/ckeditor/styles.js +111 -0
  455. data/public/javascripts/erp_app/codemirror/lib/codemirror.css +204 -106
  456. data/public/javascripts/erp_app/codemirror/lib/codemirror.js +55 -3165
  457. data/public/javascripts/erp_app/codemirror/theme/3024-day.css +34 -0
  458. data/public/javascripts/erp_app/codemirror/theme/3024-night.css +34 -0
  459. data/public/javascripts/erp_app/codemirror/theme/ambiance-mobile.css +5 -0
  460. data/public/javascripts/erp_app/codemirror/theme/ambiance.css +10 -17
  461. data/public/javascripts/erp_app/codemirror/theme/base16-dark.css +34 -0
  462. data/public/javascripts/erp_app/codemirror/theme/base16-light.css +34 -0
  463. data/public/javascripts/erp_app/codemirror/theme/blackboard.css +7 -4
  464. data/public/javascripts/erp_app/codemirror/theme/cobalt.css +7 -4
  465. data/public/javascripts/erp_app/codemirror/theme/eclipse.css +3 -5
  466. data/public/javascripts/erp_app/codemirror/theme/elegant.css +4 -1
  467. data/public/javascripts/erp_app/codemirror/theme/erlang-dark.css +19 -10
  468. data/public/javascripts/erp_app/codemirror/theme/lesser-dark.css +9 -10
  469. data/public/javascripts/erp_app/codemirror/theme/mbo.css +37 -0
  470. data/public/javascripts/erp_app/codemirror/theme/mdn-like.css +44 -0
  471. data/public/javascripts/erp_app/codemirror/theme/midnight.css +43 -0
  472. data/public/javascripts/erp_app/codemirror/theme/monokai.css +5 -4
  473. data/public/javascripts/erp_app/codemirror/theme/neat.css +3 -0
  474. data/public/javascripts/erp_app/codemirror/theme/neo.css +40 -0
  475. data/public/javascripts/erp_app/codemirror/theme/night.css +7 -4
  476. data/public/javascripts/erp_app/codemirror/theme/paraiso-dark.css +34 -0
  477. data/public/javascripts/erp_app/codemirror/theme/paraiso-light.css +34 -0
  478. data/public/javascripts/erp_app/codemirror/theme/pastel-on-dark.css +48 -0
  479. data/public/javascripts/erp_app/codemirror/theme/rubyblue.css +6 -6
  480. data/public/javascripts/erp_app/codemirror/theme/solarized.css +167 -0
  481. data/public/javascripts/erp_app/codemirror/theme/the-matrix.css +26 -0
  482. data/public/javascripts/erp_app/codemirror/theme/tomorrow-night-eighties.css +34 -0
  483. data/public/javascripts/erp_app/codemirror/theme/twilight.css +28 -0
  484. data/public/javascripts/erp_app/codemirror/theme/vibrant-ink.css +9 -6
  485. data/public/javascripts/erp_app/codemirror/theme/xq-dark.css +8 -5
  486. data/public/javascripts/erp_app/codemirror/theme/xq-light.css +43 -0
  487. data/public/javascripts/erp_app/codemirror_highlight.js +2 -2
  488. data/public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js +22 -32
  489. data/public/javascripts/erp_app/desktop/applications/configuration_management/configuration_options_panel.js +1 -1
  490. data/public/javascripts/erp_app/desktop/applications/configuration_management/module.js +2 -2
  491. data/public/javascripts/erp_app/desktop/applications/control_panel/module.js +66 -49
  492. data/public/javascripts/erp_app/desktop/applications/file_manager/module.js +109 -110
  493. data/public/javascripts/erp_app/desktop/applications/job_tracker/jobs_grid.js +3 -3
  494. data/public/javascripts/erp_app/desktop/applications/job_tracker/module.js +1 -1
  495. data/public/javascripts/erp_app/desktop/applications/scaffold/module.js +2 -2
  496. data/public/javascripts/erp_app/desktop/applications/security_management/capabilities_panel.js +49 -65
  497. data/public/javascripts/erp_app/desktop/applications/security_management/capabilities_widget.js +206 -218
  498. data/public/javascripts/erp_app/desktop/applications/security_management/common_widget.js +33 -0
  499. data/public/javascripts/erp_app/desktop/applications/security_management/groups_effective_security.js +1 -1
  500. data/public/javascripts/erp_app/desktop/applications/security_management/groups_panel.js +272 -287
  501. data/public/javascripts/erp_app/desktop/applications/security_management/groups_widget.js +206 -218
  502. data/public/javascripts/erp_app/desktop/applications/security_management/module.js +150 -46
  503. data/public/javascripts/erp_app/desktop/applications/security_management/north_panel.js +31 -0
  504. data/public/javascripts/erp_app/desktop/applications/security_management/roles_panel.js +284 -287
  505. data/public/javascripts/erp_app/desktop/applications/security_management/roles_widget.js +206 -218
  506. data/public/javascripts/erp_app/desktop/applications/security_management/south_panel.js +126 -0
  507. data/public/javascripts/erp_app/desktop/applications/security_management/users_effective_security.js +112 -105
  508. data/public/javascripts/erp_app/desktop/applications/security_management/users_panel.js +53 -85
  509. data/public/javascripts/erp_app/desktop/applications/security_management/users_widget.js +210 -218
  510. data/public/javascripts/erp_app/desktop/applications/tail/module.js +2 -2
  511. data/public/javascripts/erp_app/desktop/applications/user_management/module.js +50 -40
  512. data/public/javascripts/erp_app/desktop/applications/user_management/personal_info_panel.js +113 -113
  513. data/public/javascripts/erp_app/desktop/applications/web_navigator/module.js +18 -8
  514. data/public/javascripts/erp_app/desktop/ext_ux_desktop_module.js +937 -881
  515. data/public/javascripts/erp_app/jquery_support.js +19 -30
  516. data/public/javascripts/erp_app/login/window.js +121 -110
  517. data/public/javascripts/erp_app/organizer/applications/crm/base.js +54 -342
  518. data/public/javascripts/erp_app/organizer/layout.js +184 -95
  519. data/public/javascripts/erp_app/organizer/preference_window.js +66 -55
  520. data/public/javascripts/erp_app/shared/MoneyField.js +119 -0
  521. data/public/javascripts/erp_app/shared/PartySearchField.js +73 -0
  522. data/public/javascripts/erp_app/shared/TransitionCardLayout.js +156 -0
  523. data/public/javascripts/erp_app/shared/audit_log/GridPanel.js +214 -0
  524. data/public/javascripts/erp_app/shared/audit_log/ItemGridPanel.js +103 -0
  525. data/public/javascripts/erp_app/shared/audit_log/TabPanel.js +103 -0
  526. data/public/javascripts/erp_app/shared/compass_ckeditor.js +181 -101
  527. data/public/javascripts/erp_app/shared/compass_codemirror.js +399 -126
  528. data/public/javascripts/erp_app/shared/configuration/configuration_form.js +32 -49
  529. data/public/javascripts/erp_app/shared/configuration/configuration_panel.js +26 -8
  530. data/public/javascripts/erp_app/shared/coolclock/tray_clock2.js +121 -0
  531. data/public/javascripts/erp_app/shared/crm/ContactMechanismGrid.js +812 -0
  532. data/public/javascripts/erp_app/shared/crm/PartyDetailsPanel.js +344 -0
  533. data/public/javascripts/erp_app/shared/crm/PartyForm.js +321 -0
  534. data/public/javascripts/erp_app/shared/crm/PartyFormPanel.js +316 -0
  535. data/public/javascripts/erp_app/shared/crm/PartyGrid.js +591 -0
  536. data/public/javascripts/erp_app/shared/crm/UserForm.js +307 -0
  537. data/public/javascripts/erp_app/shared/crm/UsersGrid.js +492 -0
  538. data/public/javascripts/erp_app/shared/dynamic_editable_grid.js +55 -52
  539. data/public/javascripts/erp_app/shared/dynamic_editable_grid_loader_panel.js +29 -36
  540. data/public/javascripts/erp_app/shared/dynamic_form_fields.js +99 -0
  541. data/public/javascripts/erp_app/shared/file_manager_tree.js +685 -658
  542. data/public/javascripts/erp_app/shared/google_map_panel.js +96 -68
  543. data/public/javascripts/erp_app/shared/notes_grid.js +317 -287
  544. data/public/javascripts/erp_app/shared/preferences/application_management_panel.js +137 -0
  545. data/public/javascripts/erp_app/shared/preferences/form.js +170 -0
  546. data/public/javascripts/erp_app/shared/profile_management_panel.js +62 -63
  547. data/public/javascripts/erp_app/utility.js +271 -65
  548. data/public/javascripts/erp_app/widgets.js +68 -70
  549. data/public/stylesheets/erp_app/desktop/applications/security_management/styles.css +12 -0
  550. data/public/stylesheets/erp_app/desktop/base.css +87 -11
  551. data/public/stylesheets/erp_app/organizer/base.css +6 -0
  552. data/public/stylesheets/erp_app/shared/compass-ext-all.css +335 -213
  553. data/public/stylesheets/erp_app/shared/crm.css +45 -0
  554. data/spec/controllers/organizer/crm/relationship_controller_spec.rb +1 -0
  555. metadata +545 -1272
  556. data/app/controllers/erp_app/desktop/audit_log_viewer/base_controller.rb +0 -55
  557. data/app/controllers/erp_app/organizer/crm/base_controller.rb +0 -333
  558. data/app/views/erp_app/organizer/base/get_party_details.erb +0 -19
  559. data/lib/erp_app/extensions/will_paginate_patch.rb +0 -26
  560. data/public/images/icons/about/about_16x16.png +0 -0
  561. data/public/images/icons/about/about_24x24.png +0 -0
  562. data/public/images/icons/about/about_32x32.png +0 -0
  563. data/public/images/icons/about/about_48x48.png +0 -0
  564. data/public/images/icons/add/add_24x24.png +0 -0
  565. data/public/images/icons/add/add_32x32.png +0 -0
  566. data/public/images/icons/add/add_48x48.png +0 -0
  567. data/public/images/icons/apartment/apartment_16x16.png +0 -0
  568. data/public/images/icons/apartment/apartment_24x24.png +0 -0
  569. data/public/images/icons/apartment/apartment_32x32.png +0 -0
  570. data/public/images/icons/apartment/apartment_48x48.png +0 -0
  571. data/public/images/icons/arrow_left_blue/arrow_left_blue_24x24.png +0 -0
  572. data/public/images/icons/arrow_right_blue/arrow_right_blue_24x24.png +0 -0
  573. data/public/images/icons/back/back_16x16.png +0 -0
  574. data/public/images/icons/back/back_24x24.png +0 -0
  575. data/public/images/icons/back/back_32x32.png +0 -0
  576. data/public/images/icons/back/back_48x48.png +0 -0
  577. data/public/images/icons/battery/battery_16x16.png +0 -0
  578. data/public/images/icons/battery/battery_24x24.png +0 -0
  579. data/public/images/icons/battery/battery_32x32.png +0 -0
  580. data/public/images/icons/battery/battery_48x48.png +0 -0
  581. data/public/images/icons/calendar/calendar_24x24.png +0 -0
  582. data/public/images/icons/calendar/calendar_32x32.png +0 -0
  583. data/public/images/icons/calendar/calendar_48x48.png +0 -0
  584. data/public/images/icons/clock/clock.png +0 -0
  585. data/public/images/icons/compass/compass_16x16.png +0 -0
  586. data/public/images/icons/compass/compass_24x24.png +0 -0
  587. data/public/images/icons/compass/compass_32x32.png +0 -0
  588. data/public/images/icons/compass/compass_48x48.png +0 -0
  589. data/public/images/icons/console/console_32x32.png +0 -0
  590. data/public/images/icons/console/console_48x48.png +0 -0
  591. data/public/images/icons/content/content_256x256.png +0 -0
  592. data/public/images/icons/content/content_32x32.png +0 -0
  593. data/public/images/icons/content/content_48x48.png +0 -0
  594. data/public/images/icons/control_panel/control_panel_24x24.png +0 -0
  595. data/public/images/icons/control_panel/control_panel_32x32.png +0 -0
  596. data/public/images/icons/copy/copy_24x24.png +0 -0
  597. data/public/images/icons/copy/copy_32x32.png +0 -0
  598. data/public/images/icons/copy/copy_48x48.png +0 -0
  599. data/public/images/icons/cut/cut_16x16.png +0 -0
  600. data/public/images/icons/cut/cut_24x24.png +0 -0
  601. data/public/images/icons/cut/cut_32x32.png +0 -0
  602. data/public/images/icons/cut/cut_48x48.png +0 -0
  603. data/public/images/icons/data/data_24x24.png +0 -0
  604. data/public/images/icons/data/data_48x48.png +0 -0
  605. data/public/images/icons/desktop/desktop_16x16.png +0 -0
  606. data/public/images/icons/desktop/desktop_24x24.png +0 -0
  607. data/public/images/icons/desktop/desktop_32x32.png +0 -0
  608. data/public/images/icons/desktop/desktop_48x48.png +0 -0
  609. data/public/images/icons/document_add/document_add_16x16.png +0 -0
  610. data/public/images/icons/document_add/document_add_24x24.png +0 -0
  611. data/public/images/icons/document_add/document_add_32x32.png +0 -0
  612. data/public/images/icons/document_add/document_add_48x48.png +0 -0
  613. data/public/images/icons/document_attachment/document_attachment_16x16.png +0 -0
  614. data/public/images/icons/document_attachment/document_attachment_24x24.png +0 -0
  615. data/public/images/icons/document_attachment/document_attachment_32x32.png +0 -0
  616. data/public/images/icons/document_attachment/document_attachment_48x48.png +0 -0
  617. data/public/images/icons/document_certificate/document_certificate_16x16.png +0 -0
  618. data/public/images/icons/document_certificate/document_certificate_24x24.png +0 -0
  619. data/public/images/icons/document_certificate/document_certificate_32x32.png +0 -0
  620. data/public/images/icons/document_certificate/document_certificate_48x48.png +0 -0
  621. data/public/images/icons/document_chart/document_chart_16x16.png +0 -0
  622. data/public/images/icons/document_chart/document_chart_24x24.png +0 -0
  623. data/public/images/icons/document_chart/document_chart_32x32.png +0 -0
  624. data/public/images/icons/document_chart/document_chart_48x48.png +0 -0
  625. data/public/images/icons/document_connection/document_connection_16x16.png +0 -0
  626. data/public/images/icons/document_connection/document_connection_24x24.png +0 -0
  627. data/public/images/icons/document_connection/document_connection_32x32.png +0 -0
  628. data/public/images/icons/document_connection/document_connection_48x48.png +0 -0
  629. data/public/images/icons/document_cup/document_cup_16x16.png +0 -0
  630. data/public/images/icons/document_cup/document_cup_24x24.png +0 -0
  631. data/public/images/icons/document_cup/document_cup_32x32.png +0 -0
  632. data/public/images/icons/document_cup/document_cup_48x48.png +0 -0
  633. data/public/images/icons/document_delete/document_delete_16x16.png +0 -0
  634. data/public/images/icons/document_delete/document_delete_24x24.png +0 -0
  635. data/public/images/icons/document_delete/document_delete_32x32.png +0 -0
  636. data/public/images/icons/document_delete/document_delete_48x48.png +0 -0
  637. data/public/images/icons/document_dirty/document_dirty_16x16.png +0 -0
  638. data/public/images/icons/document_dirty/document_dirty_24x24.png +0 -0
  639. data/public/images/icons/document_dirty/document_dirty_32x32.png +0 -0
  640. data/public/images/icons/document_dirty/document_dirty_48x48.png +0 -0
  641. data/public/images/icons/document_error/document_error_16x16.png +0 -0
  642. data/public/images/icons/document_error/document_error_24x24.png +0 -0
  643. data/public/images/icons/document_error/document_error_32x32.png +0 -0
  644. data/public/images/icons/document_error/document_error_48x48.png +0 -0
  645. data/public/images/icons/document_exchange/document_exchange_16x16.png +0 -0
  646. data/public/images/icons/document_exchange/document_exchange_24x24.png +0 -0
  647. data/public/images/icons/document_exchange/document_exchange_32x32.png +0 -0
  648. data/public/images/icons/document_exchange/document_exchange_48x48.png +0 -0
  649. data/public/images/icons/document_find/document_find_16x16.png +0 -0
  650. data/public/images/icons/document_find/document_find_24x24.png +0 -0
  651. data/public/images/icons/document_find/document_find_32x32.png +0 -0
  652. data/public/images/icons/document_find/document_find_48x48.png +0 -0
  653. data/public/images/icons/document_forbidden/document_forbidden_16x16.png +0 -0
  654. data/public/images/icons/document_forbidden/document_forbidden_24x24.png +0 -0
  655. data/public/images/icons/document_forbidden/document_forbidden_32x32.png +0 -0
  656. data/public/images/icons/document_forbidden/document_forbidden_48x48.png +0 -0
  657. data/public/images/icons/document_gear/document_gear_16x16.png +0 -0
  658. data/public/images/icons/document_gear/document_gear_24x24.png +0 -0
  659. data/public/images/icons/document_gear/document_gear_32x32.png +0 -0
  660. data/public/images/icons/document_gear/document_gear_48x48.png +0 -0
  661. data/public/images/icons/document_heart/document_heart_16x16.png +0 -0
  662. data/public/images/icons/document_heart/document_heart_24x24.png +0 -0
  663. data/public/images/icons/document_heart/document_heart_32x32.png +0 -0
  664. data/public/images/icons/document_heart/document_heart_48x48.png +0 -0
  665. data/public/images/icons/document_into/document_into_16x16.png +0 -0
  666. data/public/images/icons/document_into/document_into_24x24.png +0 -0
  667. data/public/images/icons/document_into/document_into_32x32.png +0 -0
  668. data/public/images/icons/document_into/document_into_48x48.png +0 -0
  669. data/public/images/icons/document_music/document_music_16x16.png +0 -0
  670. data/public/images/icons/document_music/document_music_24x24.png +0 -0
  671. data/public/images/icons/document_music/document_music_32x32.png +0 -0
  672. data/public/images/icons/document_music/document_music_48x48.png +0 -0
  673. data/public/images/icons/document_new/document_new_16x16.png +0 -0
  674. data/public/images/icons/document_new/document_new_24x24.png +0 -0
  675. data/public/images/icons/document_new/document_new_32x32.png +0 -0
  676. data/public/images/icons/document_new/document_new_48x48.png +0 -0
  677. data/public/images/icons/document_notebook/document_notebook_16x16.png +0 -0
  678. data/public/images/icons/document_notebook/document_notebook_24x24.png +0 -0
  679. data/public/images/icons/document_notebook/document_notebook_32x32.png +0 -0
  680. data/public/images/icons/document_notebook/document_notebook_48x48.png +0 -0
  681. data/public/images/icons/document_pinned/document_pinned_16x16.png +0 -0
  682. data/public/images/icons/document_pinned/document_pinned_24x24.png +0 -0
  683. data/public/images/icons/document_pinned/document_pinned_32x32.png +0 -0
  684. data/public/images/icons/document_pinned/document_pinned_48x48.png +0 -0
  685. data/public/images/icons/document_plain/document_plain_16x16.png +0 -0
  686. data/public/images/icons/document_plain/document_plain_24x24.png +0 -0
  687. data/public/images/icons/document_plain/document_plain_32x32.png +0 -0
  688. data/public/images/icons/document_plain/document_plain_48x48.png +0 -0
  689. data/public/images/icons/document_plain_new/document_plain_new_16x16.png +0 -0
  690. data/public/images/icons/document_plain_new/document_plain_new_24x24.png +0 -0
  691. data/public/images/icons/document_plain_new/document_plain_new_32x32.png +0 -0
  692. data/public/images/icons/document_plain_new/document_plain_new_48x48.png +0 -0
  693. data/public/images/icons/document_preferences/document_preferences_16x16.png +0 -0
  694. data/public/images/icons/document_preferences/document_preferences_24x24.png +0 -0
  695. data/public/images/icons/document_preferences/document_preferences_32x32.png +0 -0
  696. data/public/images/icons/document_preferences/document_preferences_48x48.png +0 -0
  697. data/public/images/icons/document_refresh/document_refresh_16x16.png +0 -0
  698. data/public/images/icons/document_refresh/document_refresh_24x24.png +0 -0
  699. data/public/images/icons/document_refresh/document_refresh_32x32.png +0 -0
  700. data/public/images/icons/document_refresh/document_refresh_48x48.png +0 -0
  701. data/public/images/icons/document_stop/document_stop_16x16.png +0 -0
  702. data/public/images/icons/document_stop/document_stop_24x24.png +0 -0
  703. data/public/images/icons/document_stop/document_stop_32x32.png +0 -0
  704. data/public/images/icons/document_stop/document_stop_48x48.png +0 -0
  705. data/public/images/icons/document_text/document_text_16x16.png +0 -0
  706. data/public/images/icons/document_text/document_text_24x24.png +0 -0
  707. data/public/images/icons/document_text/document_text_32x32.png +0 -0
  708. data/public/images/icons/document_text/document_text_48x48.png +0 -0
  709. data/public/images/icons/document_time/document_time_16x16.png +0 -0
  710. data/public/images/icons/document_time/document_time_24x24.png +0 -0
  711. data/public/images/icons/document_time/document_time_32x32.png +0 -0
  712. data/public/images/icons/document_time/document_time_48x48.png +0 -0
  713. data/public/images/icons/document_view/document_view_16x16.png +0 -0
  714. data/public/images/icons/document_view/document_view_24x24.png +0 -0
  715. data/public/images/icons/document_view/document_view_32x32.png +0 -0
  716. data/public/images/icons/document_view/document_view_48x48.png +0 -0
  717. data/public/images/icons/document_warning/document_warning_16x16.png +0 -0
  718. data/public/images/icons/document_warning/document_warning_24x24.png +0 -0
  719. data/public/images/icons/document_warning/document_warning_32x32.png +0 -0
  720. data/public/images/icons/document_warning/document_warning_48x48.png +0 -0
  721. data/public/images/icons/document_zoom_in/document_zoom_in_16x16.png +0 -0
  722. data/public/images/icons/document_zoom_in/document_zoom_in_24x24.png +0 -0
  723. data/public/images/icons/document_zoom_in/document_zoom_in_32x32.png +0 -0
  724. data/public/images/icons/document_zoom_in/document_zoom_in_48x48.png +0 -0
  725. data/public/images/icons/document_zoom_out/document_zoom_out_16x16.png +0 -0
  726. data/public/images/icons/document_zoom_out/document_zoom_out_24x24.png +0 -0
  727. data/public/images/icons/document_zoom_out/document_zoom_out_32x32.png +0 -0
  728. data/public/images/icons/document_zoom_out/document_zoom_out_48x48.png +0 -0
  729. data/public/images/icons/documents_gear/documents_gear_16x16.png +0 -0
  730. data/public/images/icons/documents_gear/documents_gear_24x24.png +0 -0
  731. data/public/images/icons/documents_gear/documents_gear_32x32.png +0 -0
  732. data/public/images/icons/documents_gear/documents_gear_48x48.png +0 -0
  733. data/public/images/icons/documents_new/documents_new_16x16.png +0 -0
  734. data/public/images/icons/documents_new/documents_new_24x24.png +0 -0
  735. data/public/images/icons/documents_new/documents_new_32x32.png +0 -0
  736. data/public/images/icons/documents_new/documents_new_48x48.png +0 -0
  737. data/public/images/icons/documents_preferences/documents_preferences_16x16.png +0 -0
  738. data/public/images/icons/documents_preferences/documents_preferences_24x24.png +0 -0
  739. data/public/images/icons/documents_preferences/documents_preferences_32x32.png +0 -0
  740. data/public/images/icons/documents_preferences/documents_preferences_48x48.png +0 -0
  741. data/public/images/icons/error/error_16x16.png +0 -0
  742. data/public/images/icons/error/error_24x24.png +0 -0
  743. data/public/images/icons/error/error_32x32.png +0 -0
  744. data/public/images/icons/error/error_48x48.png +0 -0
  745. data/public/images/icons/folder_gear/folder_gear_16x16.png +0 -0
  746. data/public/images/icons/folder_gear/folder_gear_24x24.png +0 -0
  747. data/public/images/icons/folder_gear/folder_gear_32x32.png +0 -0
  748. data/public/images/icons/folder_gear/folder_gear_48x48.png +0 -0
  749. data/public/images/icons/folders/folders_16x16.png +0 -0
  750. data/public/images/icons/folders/folders_24x24.png +0 -0
  751. data/public/images/icons/folders/folders_32x32.png +0 -0
  752. data/public/images/icons/folders/folders_48x48.png +0 -0
  753. data/public/images/icons/globe/globe_24x24.png +0 -0
  754. data/public/images/icons/globe/globe_32x32.png +0 -0
  755. data/public/images/icons/globe/globe_48x48.png +0 -0
  756. data/public/images/icons/grid/grid_32x32.gif +0 -0
  757. data/public/images/icons/grid/grid_48x48.gif +0 -0
  758. data/public/images/icons/grid/grid_48x48.png +0 -0
  759. data/public/images/icons/help/help_16x16.png +0 -0
  760. data/public/images/icons/help/help_24x24.png +0 -0
  761. data/public/images/icons/help/help_32x32.png +0 -0
  762. data/public/images/icons/help/help_48x48.png +0 -0
  763. data/public/images/icons/history/history_24x24.png +0 -0
  764. data/public/images/icons/history/history_32x32.png +0 -0
  765. data/public/images/icons/history/history_48x48.png +0 -0
  766. data/public/images/icons/house/house_16x16.png +0 -0
  767. data/public/images/icons/house/house_24x24.png +0 -0
  768. data/public/images/icons/house/house_32x32.png +0 -0
  769. data/public/images/icons/house/house_48x48.png +0 -0
  770. data/public/images/icons/information/information_24x24.png +0 -0
  771. data/public/images/icons/information/information_32x32.png +0 -0
  772. data/public/images/icons/information/information_48x48.png +0 -0
  773. data/public/images/icons/key/key_24x24.png +0 -0
  774. data/public/images/icons/key/key_32x32.png +0 -0
  775. data/public/images/icons/key/key_48x48.png +0 -0
  776. data/public/images/icons/keyboard/keyboard_16x16.png +0 -0
  777. data/public/images/icons/keyboard/keyboard_24x24.png +0 -0
  778. data/public/images/icons/keyboard/keyboard_32x32.png +0 -0
  779. data/public/images/icons/keyboard/keyboard_48x48.png +0 -0
  780. data/public/images/icons/knowledge/Knowledge_16x16.png +0 -0
  781. data/public/images/icons/knowledge/Knowledge_256x256.png +0 -0
  782. data/public/images/icons/knowledge/Knowledge_32x32.png +0 -0
  783. data/public/images/icons/knowledge/Knowledge_48x48.png +0 -0
  784. data/public/images/icons/laptop/laptop_16x16.png +0 -0
  785. data/public/images/icons/laptop/laptop_24x24.png +0 -0
  786. data/public/images/icons/laptop/laptop_32x32.png +0 -0
  787. data/public/images/icons/laptop/laptop_48x48.png +0 -0
  788. data/public/images/icons/log_out/log_out_16x16.png +0 -0
  789. data/public/images/icons/log_out/log_out_24x24.png +0 -0
  790. data/public/images/icons/log_out/log_out_32x32.png +0 -0
  791. data/public/images/icons/log_out/log_out_48x48.png +0 -0
  792. data/public/images/icons/message/message_16x16.png +0 -0
  793. data/public/images/icons/message/message_24x24.png +0 -0
  794. data/public/images/icons/message/message_32x32.png +0 -0
  795. data/public/images/icons/message/message_48x48.png +0 -0
  796. data/public/images/icons/monitor/monitor_16x16.png +0 -0
  797. data/public/images/icons/monitor/monitor_24x24.png +0 -0
  798. data/public/images/icons/monitor/monitor_32x32.png +0 -0
  799. data/public/images/icons/monitor/monitor_48x48.png +0 -0
  800. data/public/images/icons/mouse/mouse_16x16.png +0 -0
  801. data/public/images/icons/mouse/mouse_24x24.png +0 -0
  802. data/public/images/icons/mouse/mouse_32x32.png +0 -0
  803. data/public/images/icons/mouse/mouse_48x48.png +0 -0
  804. data/public/images/icons/music/music_16x16.png +0 -0
  805. data/public/images/icons/music/music_24x24.png +0 -0
  806. data/public/images/icons/music/music_32x32.png +0 -0
  807. data/public/images/icons/music/music_48x48.png +0 -0
  808. data/public/images/icons/nav_down_blue/nav_down_blue_16x16.png +0 -0
  809. data/public/images/icons/nav_down_blue/nav_down_blue_24x24.png +0 -0
  810. data/public/images/icons/nav_down_blue/nav_down_blue_32x32.png +0 -0
  811. data/public/images/icons/nav_down_blue/nav_down_blue_48x48.png +0 -0
  812. data/public/images/icons/nav_down_left_blue/nav_down_left_blue_16x16.png +0 -0
  813. data/public/images/icons/nav_down_left_blue/nav_down_left_blue_24x24.png +0 -0
  814. data/public/images/icons/nav_down_left_blue/nav_down_left_blue_32x32.png +0 -0
  815. data/public/images/icons/nav_down_left_blue/nav_down_left_blue_48x48.png +0 -0
  816. data/public/images/icons/nav_down_right_blue/nav_down_right_blue_16x16.png +0 -0
  817. data/public/images/icons/nav_down_right_blue/nav_down_right_blue_24x24.png +0 -0
  818. data/public/images/icons/nav_down_right_blue/nav_down_right_blue_32x32.png +0 -0
  819. data/public/images/icons/nav_down_right_blue/nav_down_right_blue_48x48.png +0 -0
  820. data/public/images/icons/nav_left_blue/nav_left_blue_16x16.png +0 -0
  821. data/public/images/icons/nav_left_blue/nav_left_blue_24x24.png +0 -0
  822. data/public/images/icons/nav_left_blue/nav_left_blue_32x32.png +0 -0
  823. data/public/images/icons/nav_left_blue/nav_left_blue_48x48.png +0 -0
  824. data/public/images/icons/nav_plain_blue/nav_plain_blue_16x16.png +0 -0
  825. data/public/images/icons/nav_plain_blue/nav_plain_blue_24x24.png +0 -0
  826. data/public/images/icons/nav_plain_blue/nav_plain_blue_32x32.png +0 -0
  827. data/public/images/icons/nav_plain_blue/nav_plain_blue_48x48.png +0 -0
  828. data/public/images/icons/nav_redo_blue/nav_redo_blue_16x16.png +0 -0
  829. data/public/images/icons/nav_redo_blue/nav_redo_blue_24x24.png +0 -0
  830. data/public/images/icons/nav_redo_blue/nav_redo_blue_32x32.png +0 -0
  831. data/public/images/icons/nav_redo_blue/nav_redo_blue_48x48.png +0 -0
  832. data/public/images/icons/nav_refresh_blue/nav_refresh_blue_16x16.png +0 -0
  833. data/public/images/icons/nav_refresh_blue/nav_refresh_blue_24x24.png +0 -0
  834. data/public/images/icons/nav_refresh_blue/nav_refresh_blue_32x32.png +0 -0
  835. data/public/images/icons/nav_refresh_blue/nav_refresh_blue_48x48.png +0 -0
  836. data/public/images/icons/nav_right_blue/nav_right_blue_16x16.png +0 -0
  837. data/public/images/icons/nav_right_blue/nav_right_blue_24x24.png +0 -0
  838. data/public/images/icons/nav_right_blue/nav_right_blue_32x32.png +0 -0
  839. data/public/images/icons/nav_right_blue/nav_right_blue_48x48.png +0 -0
  840. data/public/images/icons/nav_undo_blue/nav_undo_blue_16x16.png +0 -0
  841. data/public/images/icons/nav_undo_blue/nav_undo_blue_24x24.png +0 -0
  842. data/public/images/icons/nav_undo_blue/nav_undo_blue_32x32.png +0 -0
  843. data/public/images/icons/nav_undo_blue/nav_undo_blue_48x48.png +0 -0
  844. data/public/images/icons/nav_up_blue/nav_up_blue_16x16.png +0 -0
  845. data/public/images/icons/nav_up_blue/nav_up_blue_24x24.png +0 -0
  846. data/public/images/icons/nav_up_blue/nav_up_blue_32x32.png +0 -0
  847. data/public/images/icons/nav_up_blue/nav_up_blue_48x48.png +0 -0
  848. data/public/images/icons/nav_up_left_blue/nav_up_left_blue_16x16.png +0 -0
  849. data/public/images/icons/nav_up_left_blue/nav_up_left_blue_24x24.png +0 -0
  850. data/public/images/icons/nav_up_left_blue/nav_up_left_blue_32x32.png +0 -0
  851. data/public/images/icons/nav_up_left_blue/nav_up_left_blue_48x48.png +0 -0
  852. data/public/images/icons/nav_up_right_blue/nav_up_right_blue_16x16.png +0 -0
  853. data/public/images/icons/nav_up_right_blue/nav_up_right_blue_24x24.png +0 -0
  854. data/public/images/icons/nav_up_right_blue/nav_up_right_blue_32x32.png +0 -0
  855. data/public/images/icons/nav_up_right_blue/nav_up_right_blue_48x48.png +0 -0
  856. data/public/images/icons/new/new_16x16.png +0 -0
  857. data/public/images/icons/new/new_24x24.png +0 -0
  858. data/public/images/icons/new/new_32x32.png +0 -0
  859. data/public/images/icons/new/new_48x48.png +0 -0
  860. data/public/images/icons/note_add/note_add_16x16.png +0 -0
  861. data/public/images/icons/note_add/note_add_24x24.png +0 -0
  862. data/public/images/icons/note_add/note_add_32x32.png +0 -0
  863. data/public/images/icons/note_add/note_add_48x48.png +0 -0
  864. data/public/images/icons/note_delete/note_delete_16x16.png +0 -0
  865. data/public/images/icons/note_delete/note_delete_24x24.png +0 -0
  866. data/public/images/icons/note_delete/note_delete_32x32.png +0 -0
  867. data/public/images/icons/note_delete/note_delete_48x48.png +0 -0
  868. data/public/images/icons/note_edit/note_edit_16x16.png +0 -0
  869. data/public/images/icons/note_edit/note_edit_24x24.png +0 -0
  870. data/public/images/icons/note_edit/note_edit_32x32.png +0 -0
  871. data/public/images/icons/note_edit/note_edit_48x48.png +0 -0
  872. data/public/images/icons/note_error/note_error_16x16.png +0 -0
  873. data/public/images/icons/note_error/note_error_24x24.png +0 -0
  874. data/public/images/icons/note_error/note_error_32x32.png +0 -0
  875. data/public/images/icons/note_error/note_error_48x48.png +0 -0
  876. data/public/images/icons/note_find/note_find_16x16.png +0 -0
  877. data/public/images/icons/note_find/note_find_24x24.png +0 -0
  878. data/public/images/icons/note_find/note_find_32x32.png +0 -0
  879. data/public/images/icons/note_find/note_find_48x48.png +0 -0
  880. data/public/images/icons/note_information/note_information_16x16.png +0 -0
  881. data/public/images/icons/note_information/note_information_24x24.png +0 -0
  882. data/public/images/icons/note_information/note_information_32x32.png +0 -0
  883. data/public/images/icons/note_information/note_information_48x48.png +0 -0
  884. data/public/images/icons/note_new/note_new_16x16.png +0 -0
  885. data/public/images/icons/note_new/note_new_24x24.png +0 -0
  886. data/public/images/icons/note_new/note_new_32x32.png +0 -0
  887. data/public/images/icons/note_new/note_new_48x48.png +0 -0
  888. data/public/images/icons/note_ok/note_ok_16x16.png +0 -0
  889. data/public/images/icons/note_ok/note_ok_24x24.png +0 -0
  890. data/public/images/icons/note_ok/note_ok_32x32.png +0 -0
  891. data/public/images/icons/note_ok/note_ok_48x48.png +0 -0
  892. data/public/images/icons/note_pinned/note_pinned_16x16.png +0 -0
  893. data/public/images/icons/note_pinned/note_pinned_24x24.png +0 -0
  894. data/public/images/icons/note_pinned/note_pinned_32x32.png +0 -0
  895. data/public/images/icons/note_pinned/note_pinned_48x48.png +0 -0
  896. data/public/images/icons/note_plain/note_plain_16x16.png +0 -0
  897. data/public/images/icons/note_plain/note_plain_24x24.png +0 -0
  898. data/public/images/icons/note_plain/note_plain_32x32.png +0 -0
  899. data/public/images/icons/note_plain/note_plain_48x48.png +0 -0
  900. data/public/images/icons/note_view/note_view_16x16.png +0 -0
  901. data/public/images/icons/note_view/note_view_24x24.png +0 -0
  902. data/public/images/icons/note_view/note_view_32x32.png +0 -0
  903. data/public/images/icons/note_view/note_view_48x48.png +0 -0
  904. data/public/images/icons/note_warning/note_warning_16x16.png +0 -0
  905. data/public/images/icons/note_warning/note_warning_24x24.png +0 -0
  906. data/public/images/icons/note_warning/note_warning_32x32.png +0 -0
  907. data/public/images/icons/note_warning/note_warning_48x48.png +0 -0
  908. data/public/images/icons/open/open_16x16.png +0 -0
  909. data/public/images/icons/open/open_24x24.png +0 -0
  910. data/public/images/icons/open/open_32x32.png +0 -0
  911. data/public/images/icons/open/open_48x48.png +0 -0
  912. data/public/images/icons/palette/palette_16x16.png +0 -0
  913. data/public/images/icons/palette/palette_24x24.png +0 -0
  914. data/public/images/icons/palette/palette_32x32.png +0 -0
  915. data/public/images/icons/palette/palette_48x48.png +0 -0
  916. data/public/images/icons/paperclip/paperclip_16x16.png +0 -0
  917. data/public/images/icons/paperclip/paperclip_24x24.png +0 -0
  918. data/public/images/icons/paperclip/paperclip_32x32.png +0 -0
  919. data/public/images/icons/paperclip/paperclip_48x48.png +0 -0
  920. data/public/images/icons/paste/paste_16x16.png +0 -0
  921. data/public/images/icons/paste/paste_24x24.png +0 -0
  922. data/public/images/icons/paste/paste_32x32.png +0 -0
  923. data/public/images/icons/paste/paste_48x48.png +0 -0
  924. data/public/images/icons/picture/picture_24x24.png +0 -0
  925. data/public/images/icons/picture/picture_32x32.png +0 -0
  926. data/public/images/icons/picture/picture_48x48.png +0 -0
  927. data/public/images/icons/presentation/presentation_16x16.png +0 -0
  928. data/public/images/icons/presentation/presentation_24x24.png +0 -0
  929. data/public/images/icons/presentation/presentation_32x32.png +0 -0
  930. data/public/images/icons/presentation/presentation_48x48.png +0 -0
  931. data/public/images/icons/presentation_chart/presentation_chart_16x16.png +0 -0
  932. data/public/images/icons/presentation_chart/presentation_chart_24x24.png +0 -0
  933. data/public/images/icons/presentation_chart/presentation_chart_32x32.png +0 -0
  934. data/public/images/icons/presentation_chart/presentation_chart_48x48.png +0 -0
  935. data/public/images/icons/previous/previous_16x16.png +0 -0
  936. data/public/images/icons/previous/previous_24x24.png +0 -0
  937. data/public/images/icons/previous/previous_32x32.png +0 -0
  938. data/public/images/icons/previous/previous_48x48.png +0 -0
  939. data/public/images/icons/print/print_16x16.png +0 -0
  940. data/public/images/icons/print/print_24x24.png +0 -0
  941. data/public/images/icons/print/print_32x32.png +0 -0
  942. data/public/images/icons/print/print_48x48.png +0 -0
  943. data/public/images/icons/printer/printer_16x16.png +0 -0
  944. data/public/images/icons/printer/printer_24x24.png +0 -0
  945. data/public/images/icons/printer/printer_32x32.png +0 -0
  946. data/public/images/icons/printer/printer_48x48.png +0 -0
  947. data/public/images/icons/prodconfig/Prodconfig_16x16.png +0 -0
  948. data/public/images/icons/prodconfig/Prodconfig_256x256.png +0 -0
  949. data/public/images/icons/prodconfig/Prodconfig_32x32.png +0 -0
  950. data/public/images/icons/prodconfig/Prodconfig_48x48.png +0 -0
  951. data/public/images/icons/question_and_answer/question_and_answer_16x16.png +0 -0
  952. data/public/images/icons/question_and_answer/question_and_answer_24x24.png +0 -0
  953. data/public/images/icons/question_and_answer/question_and_answer_32x32.png +0 -0
  954. data/public/images/icons/question_and_answer/question_and_answer_48x48.png +0 -0
  955. data/public/images/icons/replace/replace_16x16.png +0 -0
  956. data/public/images/icons/replace/replace_24x24.png +0 -0
  957. data/public/images/icons/replace/replace_32x32.png +0 -0
  958. data/public/images/icons/replace/replace_48x48.png +0 -0
  959. data/public/images/icons/scroll/scroll_16x16.png +0 -0
  960. data/public/images/icons/scroll/scroll_24x24.png +0 -0
  961. data/public/images/icons/scroll/scroll_32x32.png +0 -0
  962. data/public/images/icons/scroll/scroll_48x48.png +0 -0
  963. data/public/images/icons/send/send_16x16.png +0 -0
  964. data/public/images/icons/send/send_24x24.png +0 -0
  965. data/public/images/icons/send/send_32x32.png +0 -0
  966. data/public/images/icons/send/send_48x48.png +0 -0
  967. data/public/images/icons/settings/settings_24x24.png +0 -0
  968. data/public/images/icons/settings/settings_32x32.png +0 -0
  969. data/public/images/icons/settings/settings_48x48.png +0 -0
  970. data/public/images/icons/shoppingbasket/shoppingbasket_16x16.png +0 -0
  971. data/public/images/icons/shoppingbasket/shoppingbasket_24x24.png +0 -0
  972. data/public/images/icons/shoppingbasket/shoppingbasket_32x32.png +0 -0
  973. data/public/images/icons/shoppingbasket/shoppingbasket_48x48.png +0 -0
  974. data/public/images/icons/shoppingbasket_add/shoppingbasket_add_16x16.png +0 -0
  975. data/public/images/icons/shoppingbasket_add/shoppingbasket_add_24x24.png +0 -0
  976. data/public/images/icons/shoppingbasket_add/shoppingbasket_add_32x32.png +0 -0
  977. data/public/images/icons/shoppingbasket_add/shoppingbasket_add_48x48.png +0 -0
  978. data/public/images/icons/shoppingbasket_delete/shoppingbasket_delete_16x16.png +0 -0
  979. data/public/images/icons/shoppingbasket_delete/shoppingbasket_delete_24x24.png +0 -0
  980. data/public/images/icons/shoppingbasket_delete/shoppingbasket_delete_32x32.png +0 -0
  981. data/public/images/icons/shoppingbasket_delete/shoppingbasket_delete_48x48.png +0 -0
  982. data/public/images/icons/shoppingbasket_edit/shoppingbasket_edit_16x16.png +0 -0
  983. data/public/images/icons/shoppingbasket_edit/shoppingbasket_edit_24x24.png +0 -0
  984. data/public/images/icons/shoppingbasket_edit/shoppingbasket_edit_32x32.png +0 -0
  985. data/public/images/icons/shoppingbasket_edit/shoppingbasket_edit_48x48.png +0 -0
  986. data/public/images/icons/shoppingbasket_full/shoppingbasket_full_16x16.png +0 -0
  987. data/public/images/icons/shoppingbasket_full/shoppingbasket_full_24x24.png +0 -0
  988. data/public/images/icons/shoppingbasket_full/shoppingbasket_full_32x32.png +0 -0
  989. data/public/images/icons/shoppingbasket_full/shoppingbasket_full_48x48.png +0 -0
  990. data/public/images/icons/shoppingcart/shoppingcart_16x16.png +0 -0
  991. data/public/images/icons/shoppingcart/shoppingcart_24x24.png +0 -0
  992. data/public/images/icons/shoppingcart/shoppingcart_32x32.png +0 -0
  993. data/public/images/icons/shoppingcart/shoppingcart_48x48.png +0 -0
  994. data/public/images/icons/shoppingcart_add/shoppingcart_add_16x16.png +0 -0
  995. data/public/images/icons/shoppingcart_add/shoppingcart_add_24x24.png +0 -0
  996. data/public/images/icons/shoppingcart_add/shoppingcart_add_32x32.png +0 -0
  997. data/public/images/icons/shoppingcart_add/shoppingcart_add_48x48.png +0 -0
  998. data/public/images/icons/shoppingcart_delete/shoppingcart_delete_16x16.png +0 -0
  999. data/public/images/icons/shoppingcart_delete/shoppingcart_delete_24x24.png +0 -0
  1000. data/public/images/icons/shoppingcart_delete/shoppingcart_delete_32x32.png +0 -0
  1001. data/public/images/icons/shoppingcart_delete/shoppingcart_delete_48x48.png +0 -0
  1002. data/public/images/icons/shoppingcart_edit/shoppingcart_edit_16x16.png +0 -0
  1003. data/public/images/icons/shoppingcart_edit/shoppingcart_edit_24x24.png +0 -0
  1004. data/public/images/icons/shoppingcart_edit/shoppingcart_edit_32x32.png +0 -0
  1005. data/public/images/icons/shoppingcart_edit/shoppingcart_edit_48x48.png +0 -0
  1006. data/public/images/icons/shoppingcart_full/shoppingcart_full_16x16.png +0 -0
  1007. data/public/images/icons/shoppingcart_full/shoppingcart_full_24x24.png +0 -0
  1008. data/public/images/icons/shoppingcart_full/shoppingcart_full_32x32.png +0 -0
  1009. data/public/images/icons/shoppingcart_full/shoppingcart_full_48x48.png +0 -0
  1010. data/public/images/icons/sort_ascending/sort_ascending_16x16.png +0 -0
  1011. data/public/images/icons/sort_ascending/sort_ascending_24x24.png +0 -0
  1012. data/public/images/icons/sort_ascending/sort_ascending_32x32.png +0 -0
  1013. data/public/images/icons/sort_ascending/sort_ascending_48x48.png +0 -0
  1014. data/public/images/icons/sort_az_ascending/sort_az_ascending_16x16.png +0 -0
  1015. data/public/images/icons/sort_az_ascending/sort_az_ascending_24x24.png +0 -0
  1016. data/public/images/icons/sort_az_ascending/sort_az_ascending_32x32.png +0 -0
  1017. data/public/images/icons/sort_az_ascending/sort_az_ascending_48x48.png +0 -0
  1018. data/public/images/icons/sort_az_descending/sort_az_descending_16x16.png +0 -0
  1019. data/public/images/icons/sort_az_descending/sort_az_descending_24x24.png +0 -0
  1020. data/public/images/icons/sort_az_descending/sort_az_descending_32x32.png +0 -0
  1021. data/public/images/icons/sort_az_descending/sort_az_descending_48x48.png +0 -0
  1022. data/public/images/icons/sort_descending/sort_descending_16x16.png +0 -0
  1023. data/public/images/icons/sort_descending/sort_descending_24x24.png +0 -0
  1024. data/public/images/icons/sort_descending/sort_descending_32x32.png +0 -0
  1025. data/public/images/icons/sort_descending/sort_descending_48x48.png +0 -0
  1026. data/public/images/icons/sort_down/sort_down_16x16.png +0 -0
  1027. data/public/images/icons/sort_down/sort_down_24x24.png +0 -0
  1028. data/public/images/icons/sort_down/sort_down_32x32.png +0 -0
  1029. data/public/images/icons/sort_down/sort_down_48x48.png +0 -0
  1030. data/public/images/icons/sort_up/sort_up_16x16.png +0 -0
  1031. data/public/images/icons/sort_up/sort_up_24x24.png +0 -0
  1032. data/public/images/icons/sort_up/sort_up_32x32.png +0 -0
  1033. data/public/images/icons/sort_up/sort_up_48x48.png +0 -0
  1034. data/public/images/icons/spellcheck/spellcheck_16x16.png +0 -0
  1035. data/public/images/icons/spellcheck/spellcheck_24x24.png +0 -0
  1036. data/public/images/icons/spellcheck/spellcheck_32x32.png +0 -0
  1037. data/public/images/icons/spellcheck/spellcheck_48x48.png +0 -0
  1038. data/public/images/icons/synchronize/synchronize_16x16.png +0 -0
  1039. data/public/images/icons/synchronize/synchronize_24x24.png +0 -0
  1040. data/public/images/icons/synchronize/synchronize_32x32.png +0 -0
  1041. data/public/images/icons/synchronize/synchronize_48x48.png +0 -0
  1042. data/public/images/icons/toolbar/class.png +0 -0
  1043. data/public/images/icons/toolbar/class_folder.png +0 -0
  1044. data/public/images/icons/toolbar/mixed_folder.png +0 -0
  1045. data/public/images/icons/toolbar/object_graph.png +0 -0
  1046. data/public/images/icons/toolbar/package_yellow.png +0 -0
  1047. data/public/images/icons/toolbar/table_go.png +0 -0
  1048. data/public/images/icons/undo/undo_24x24.png +0 -0
  1049. data/public/images/icons/undo/undo_32x32.png +0 -0
  1050. data/public/images/icons/undo/undo_48x48.png +0 -0
  1051. data/public/images/icons/upload/upload_16x16.png +0 -0
  1052. data/public/images/icons/upload/upload_24x24.png +0 -0
  1053. data/public/images/icons/upload/upload_32x32.png +0 -0
  1054. data/public/images/icons/upload/upload_48x48.png +0 -0
  1055. data/public/images/icons/user/user_24x24.png +0 -0
  1056. data/public/images/icons/user/user_32x32.png +0 -0
  1057. data/public/images/icons/user/user_48x48.png +0 -0
  1058. data/public/images/icons/warning/warning_16x16.png +0 -0
  1059. data/public/images/icons/warning/warning_24x24.png +0 -0
  1060. data/public/images/icons/warning/warning_32x32.png +0 -0
  1061. data/public/images/icons/warning/warning_48x48.png +0 -0
  1062. data/public/images/icons/zoom_in/zoom_in_16x16.png +0 -0
  1063. data/public/images/icons/zoom_in/zoom_in_24x24.png +0 -0
  1064. data/public/images/icons/zoom_in/zoom_in_32x32.png +0 -0
  1065. data/public/images/icons/zoom_in/zoom_in_48x48.png +0 -0
  1066. data/public/images/icons/zoom_out/zoom_out_16x16.png +0 -0
  1067. data/public/images/icons/zoom_out/zoom_out_24x24.png +0 -0
  1068. data/public/images/icons/zoom_out/zoom_out_32x32.png +0 -0
  1069. data/public/images/icons/zoom_out/zoom_out_48x48.png +0 -0
  1070. data/public/images/wallpaper/blue.gif +0 -0
  1071. data/public/javascripts/erp_app/authentication/widget_manager.js +0 -119
  1072. data/public/javascripts/erp_app/ckeditor/lang/_languages.js +0 -6
  1073. data/public/javascripts/erp_app/ckeditor/lang/_translationstatus.txt +0 -64
  1074. data/public/javascripts/erp_app/ckeditor/lang/af.js +0 -6
  1075. data/public/javascripts/erp_app/ckeditor/lang/ar.js +0 -6
  1076. data/public/javascripts/erp_app/ckeditor/lang/bg.js +0 -6
  1077. data/public/javascripts/erp_app/ckeditor/lang/bn.js +0 -6
  1078. data/public/javascripts/erp_app/ckeditor/lang/bs.js +0 -6
  1079. data/public/javascripts/erp_app/ckeditor/lang/ca.js +0 -6
  1080. data/public/javascripts/erp_app/ckeditor/lang/cs.js +0 -6
  1081. data/public/javascripts/erp_app/ckeditor/lang/cy.js +0 -6
  1082. data/public/javascripts/erp_app/ckeditor/lang/da.js +0 -6
  1083. data/public/javascripts/erp_app/ckeditor/lang/de.js +0 -6
  1084. data/public/javascripts/erp_app/ckeditor/lang/el.js +0 -6
  1085. data/public/javascripts/erp_app/ckeditor/lang/en-au.js +0 -6
  1086. data/public/javascripts/erp_app/ckeditor/lang/en-ca.js +0 -6
  1087. data/public/javascripts/erp_app/ckeditor/lang/en-gb.js +0 -6
  1088. data/public/javascripts/erp_app/ckeditor/lang/eo.js +0 -6
  1089. data/public/javascripts/erp_app/ckeditor/lang/es.js +0 -6
  1090. data/public/javascripts/erp_app/ckeditor/lang/et.js +0 -6
  1091. data/public/javascripts/erp_app/ckeditor/lang/eu.js +0 -6
  1092. data/public/javascripts/erp_app/ckeditor/lang/fa.js +0 -6
  1093. data/public/javascripts/erp_app/ckeditor/lang/fi.js +0 -6
  1094. data/public/javascripts/erp_app/ckeditor/lang/fo.js +0 -6
  1095. data/public/javascripts/erp_app/ckeditor/lang/fr-ca.js +0 -6
  1096. data/public/javascripts/erp_app/ckeditor/lang/fr.js +0 -6
  1097. data/public/javascripts/erp_app/ckeditor/lang/gl.js +0 -6
  1098. data/public/javascripts/erp_app/ckeditor/lang/gu.js +0 -6
  1099. data/public/javascripts/erp_app/ckeditor/lang/he.js +0 -6
  1100. data/public/javascripts/erp_app/ckeditor/lang/hi.js +0 -6
  1101. data/public/javascripts/erp_app/ckeditor/lang/hr.js +0 -6
  1102. data/public/javascripts/erp_app/ckeditor/lang/hu.js +0 -6
  1103. data/public/javascripts/erp_app/ckeditor/lang/id.js +0 -6
  1104. data/public/javascripts/erp_app/ckeditor/lang/is.js +0 -6
  1105. data/public/javascripts/erp_app/ckeditor/lang/it.js +0 -6
  1106. data/public/javascripts/erp_app/ckeditor/lang/ja.js +0 -6
  1107. data/public/javascripts/erp_app/ckeditor/lang/ka.js +0 -6
  1108. data/public/javascripts/erp_app/ckeditor/lang/km.js +0 -6
  1109. data/public/javascripts/erp_app/ckeditor/lang/ko.js +0 -6
  1110. data/public/javascripts/erp_app/ckeditor/lang/lt.js +0 -6
  1111. data/public/javascripts/erp_app/ckeditor/lang/lv.js +0 -6
  1112. data/public/javascripts/erp_app/ckeditor/lang/mk.js +0 -6
  1113. data/public/javascripts/erp_app/ckeditor/lang/mn.js +0 -6
  1114. data/public/javascripts/erp_app/ckeditor/lang/ms.js +0 -6
  1115. data/public/javascripts/erp_app/ckeditor/lang/nb.js +0 -6
  1116. data/public/javascripts/erp_app/ckeditor/lang/nl.js +0 -6
  1117. data/public/javascripts/erp_app/ckeditor/lang/no.js +0 -6
  1118. data/public/javascripts/erp_app/ckeditor/lang/pl.js +0 -6
  1119. data/public/javascripts/erp_app/ckeditor/lang/pt-br.js +0 -6
  1120. data/public/javascripts/erp_app/ckeditor/lang/pt.js +0 -6
  1121. data/public/javascripts/erp_app/ckeditor/lang/ro.js +0 -6
  1122. data/public/javascripts/erp_app/ckeditor/lang/ru.js +0 -6
  1123. data/public/javascripts/erp_app/ckeditor/lang/sk.js +0 -6
  1124. data/public/javascripts/erp_app/ckeditor/lang/sl.js +0 -6
  1125. data/public/javascripts/erp_app/ckeditor/lang/sr-latn.js +0 -6
  1126. data/public/javascripts/erp_app/ckeditor/lang/sr.js +0 -6
  1127. data/public/javascripts/erp_app/ckeditor/lang/sv.js +0 -6
  1128. data/public/javascripts/erp_app/ckeditor/lang/th.js +0 -6
  1129. data/public/javascripts/erp_app/ckeditor/lang/tr.js +0 -6
  1130. data/public/javascripts/erp_app/ckeditor/lang/ug.js +0 -6
  1131. data/public/javascripts/erp_app/ckeditor/lang/uk.js +0 -6
  1132. data/public/javascripts/erp_app/ckeditor/lang/vi.js +0 -6
  1133. data/public/javascripts/erp_app/ckeditor/lang/zh-cn.js +0 -6
  1134. data/public/javascripts/erp_app/ckeditor/lang/zh.js +0 -6
  1135. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/_translationstatus.txt +0 -25
  1136. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/cs.js +0 -6
  1137. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/cy.js +0 -6
  1138. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/da.js +0 -6
  1139. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/de.js +0 -6
  1140. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/el.js +0 -6
  1141. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
  1142. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/eo.js +0 -6
  1143. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/fa.js +0 -6
  1144. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/fi.js +0 -6
  1145. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/fr.js +0 -6
  1146. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/gu.js +0 -6
  1147. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
  1148. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/it.js +0 -6
  1149. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/mk.js +0 -6
  1150. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/nb.js +0 -6
  1151. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/nl.js +0 -6
  1152. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/no.js +0 -6
  1153. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/pt-br.js +0 -6
  1154. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/ro.js +0 -6
  1155. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/tr.js +0 -6
  1156. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/ug.js +0 -6
  1157. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/vi.js +0 -6
  1158. data/public/javascripts/erp_app/ckeditor/plugins/a11yhelp/lang/zh-cn.js +0 -6
  1159. data/public/javascripts/erp_app/ckeditor/plugins/adobeair/plugin.js +0 -6
  1160. data/public/javascripts/erp_app/ckeditor/plugins/ajax/plugin.js +0 -6
  1161. data/public/javascripts/erp_app/ckeditor/plugins/autogrow/plugin.js +0 -6
  1162. data/public/javascripts/erp_app/ckeditor/plugins/bbcode/plugin.js +0 -9
  1163. data/public/javascripts/erp_app/ckeditor/plugins/compassupload/plugin.js +0 -21
  1164. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/_translationstatus.txt +0 -28
  1165. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/bg.js +0 -6
  1166. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/cs.js +0 -6
  1167. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/cy.js +0 -6
  1168. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/da.js +0 -6
  1169. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/de.js +0 -6
  1170. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/el.js +0 -6
  1171. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/en.js +0 -6
  1172. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/eo.js +0 -6
  1173. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/et.js +0 -6
  1174. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/fa.js +0 -6
  1175. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/fi.js +0 -6
  1176. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/fr.js +0 -6
  1177. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/gu.js +0 -6
  1178. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/he.js +0 -6
  1179. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/hr.js +0 -6
  1180. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/it.js +0 -6
  1181. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/nb.js +0 -6
  1182. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/nl.js +0 -6
  1183. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/no.js +0 -6
  1184. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/pl.js +0 -6
  1185. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/pt-br.js +0 -6
  1186. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/tr.js +0 -6
  1187. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/ug.js +0 -6
  1188. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/uk.js +0 -6
  1189. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/vi.js +0 -6
  1190. data/public/javascripts/erp_app/ckeditor/plugins/devtools/lang/zh-cn.js +0 -6
  1191. data/public/javascripts/erp_app/ckeditor/plugins/devtools/plugin.js +0 -6
  1192. data/public/javascripts/erp_app/ckeditor/plugins/docprops/dialogs/docprops.js +0 -10
  1193. data/public/javascripts/erp_app/ckeditor/plugins/docprops/plugin.js +0 -6
  1194. data/public/javascripts/erp_app/ckeditor/plugins/iframedialog/plugin.js +0 -6
  1195. data/public/javascripts/erp_app/ckeditor/plugins/link/images/anchor.gif +0 -0
  1196. data/public/javascripts/erp_app/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
  1197. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
  1198. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/_translationstatus.txt +0 -27
  1199. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/bg.js +0 -6
  1200. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/cs.js +0 -6
  1201. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/cy.js +0 -6
  1202. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/da.js +0 -6
  1203. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/de.js +0 -6
  1204. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/el.js +0 -6
  1205. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/en.js +0 -6
  1206. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/eo.js +0 -6
  1207. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/et.js +0 -6
  1208. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/fa.js +0 -6
  1209. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/fi.js +0 -6
  1210. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/fr.js +0 -6
  1211. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/he.js +0 -6
  1212. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/hr.js +0 -6
  1213. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/it.js +0 -6
  1214. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/nb.js +0 -6
  1215. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/nl.js +0 -6
  1216. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/no.js +0 -6
  1217. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/pl.js +0 -6
  1218. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/pt-br.js +0 -6
  1219. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/tr.js +0 -6
  1220. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/ug.js +0 -6
  1221. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/uk.js +0 -6
  1222. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/vi.js +0 -6
  1223. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/lang/zh-cn.js +0 -6
  1224. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  1225. data/public/javascripts/erp_app/ckeditor/plugins/placeholder/plugin.js +0 -6
  1226. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/codemirror_config.js +0 -85
  1227. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/editor.css +0 -96
  1228. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/buttonbg.gif +0 -0
  1229. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/cancel.png +0 -0
  1230. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/highlight.png +0 -0
  1231. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/redo.png +0 -0
  1232. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/reindent.png +0 -0
  1233. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/save.png +0 -0
  1234. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/search.png +0 -0
  1235. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/images/undo.png +0 -0
  1236. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/config/nocolors.css +0 -24
  1237. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/LICENSE +0 -23
  1238. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/bigtest.html +0 -1296
  1239. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/compress.html +0 -169
  1240. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/css/csharpcolors.css +0 -60
  1241. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/index.html +0 -61
  1242. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/js/parsecsharp.js +0 -329
  1243. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/csharp/js/tokenizecsharp.js +0 -196
  1244. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/freemarker/LICENSE +0 -24
  1245. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/freemarker/css/freemarkercolors.css +0 -63
  1246. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/freemarker/index.html +0 -75
  1247. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/freemarker/js/parsefreemarker.js +0 -380
  1248. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/groovy/index.html +0 -57
  1249. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/java/LICENSE +0 -20
  1250. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/java/css/javacolors.css +0 -64
  1251. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/java/index.html +0 -66
  1252. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/java/js/parsejava.js +0 -285
  1253. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/java/js/tokenizejava.js +0 -222
  1254. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/lua/LICENSE +0 -32
  1255. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/lua/css/luacolors.css +0 -63
  1256. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/lua/index.html +0 -68
  1257. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/lua/js/parselua.js +0 -254
  1258. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/ometa/LICENSE +0 -23
  1259. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/ometa/css/ometacolors.css +0 -63
  1260. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/ometa/index.html +0 -77
  1261. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/ometa/js/parseometa.js +0 -364
  1262. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/ometa/js/tokenizeometa.js +0 -209
  1263. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/php/LICENSE +0 -37
  1264. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/php/css/phpcolors.css +0 -114
  1265. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/php/index.html +0 -310
  1266. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/php/js/parsephp.js +0 -419
  1267. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/php/js/parsephphtmlmixed.js +0 -116
  1268. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/php/js/tokenizephp.js +0 -1208
  1269. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/plsql/LICENSE +0 -22
  1270. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/plsql/css/plsqlcolors.css +0 -57
  1271. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/plsql/index.html +0 -67
  1272. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/plsql/js/parseplsql.js +0 -233
  1273. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/python/LICENSE +0 -32
  1274. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/python/css/pythoncolors.css +0 -58
  1275. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/python/index.html +0 -141
  1276. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/python/js/parsepython.js +0 -541
  1277. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/regex/css/js-regexcolors.css +0 -214
  1278. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/regex/css/regexcolors.css +0 -214
  1279. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/regex/index.html +0 -114
  1280. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/regex/js/parsejavascript_and_regex.js +0 -91
  1281. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/regex/js/parseregex-unicode.js +0 -284
  1282. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/regex/js/parseregex.js +0 -847
  1283. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/regex/js-regex.html +0 -118
  1284. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/scheme/LICENSE +0 -23
  1285. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/scheme/css/schemecolors.css +0 -45
  1286. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/scheme/index.html +0 -82
  1287. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/scheme/js/parsescheme.js +0 -428
  1288. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/scheme/js/tokenizescheme.js +0 -241
  1289. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/sql/LICENSE +0 -22
  1290. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/sql/css/sqlcolors.css +0 -59
  1291. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/sql/index.html +0 -56
  1292. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/sql/js/parsesql.js +0 -267
  1293. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/xquery/LICENSE +0 -13
  1294. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/xquery/css/xqcolors-dark.css +0 -93
  1295. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/xquery/css/xqcolors.css +0 -99
  1296. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/xquery/css/xqcolors2.css +0 -96
  1297. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/xquery/index.html +0 -552
  1298. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/xquery/js/parsexquery.js +0 -234
  1299. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/contrib/xquery/js/tokenizexquery.js +0 -457
  1300. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/baboon.png +0 -0
  1301. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/baboon_vector.ai +3 -962
  1302. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/csscolors.css +0 -55
  1303. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/docs.css +0 -158
  1304. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/font.js +0 -15
  1305. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/jscolors.css +0 -59
  1306. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/people.jpg +0 -0
  1307. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/sparqlcolors.css +0 -43
  1308. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/css/xmlcolors.css +0 -55
  1309. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/csstest.html +0 -60
  1310. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/faq.html +0 -86
  1311. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/favicon.ico +0 -0
  1312. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/googleb196c451afc2ee11.html +0 -1
  1313. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/googlehostedservice.html +0 -1
  1314. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/highlight.html +0 -82
  1315. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/htmltest.html +0 -53
  1316. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/index.html +0 -254
  1317. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/codemirror.js +0 -582
  1318. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/editor.js +0 -1670
  1319. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/highlight.js +0 -68
  1320. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/mirrorframe.js +0 -81
  1321. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/parsecss.js +0 -161
  1322. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/parsedummy.js +0 -32
  1323. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/parsehtmlmixed.js +0 -93
  1324. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/parsejavascript.js +0 -359
  1325. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/parsesparql.js +0 -162
  1326. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/parsexml.js +0 -291
  1327. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/select.js +0 -697
  1328. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/stringstream.js +0 -159
  1329. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/tokenize.js +0 -57
  1330. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/tokenizejavascript.js +0 -174
  1331. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/undo.js +0 -413
  1332. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/unittests.js +0 -44
  1333. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/js/util.js +0 -133
  1334. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/jstest.html +0 -56
  1335. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/manual.html +0 -806
  1336. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/mixedtest.html +0 -52
  1337. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/sparqltest.html +0 -41
  1338. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/story.html +0 -672
  1339. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/unittests.html +0 -125
  1340. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/editor/xhtmltest.xhtml +0 -50
  1341. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/lang/de.js +0 -20
  1342. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/codemirror/lang/en.js +0 -20
  1343. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/dialogs/sourcepopup.js +0 -102
  1344. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/lang/de.js +0 -9
  1345. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/lang/en.js +0 -9
  1346. data/public/javascripts/erp_app/ckeditor/plugins/sourcepopup/plugin.js +0 -27
  1347. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/_translationstatus.txt +0 -22
  1348. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/cs.js +0 -6
  1349. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/cy.js +0 -6
  1350. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/de.js +0 -6
  1351. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/el.js +0 -6
  1352. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/en.js +0 -6
  1353. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/eo.js +0 -6
  1354. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/et.js +0 -6
  1355. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/fa.js +0 -6
  1356. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/fi.js +0 -6
  1357. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/fr.js +0 -6
  1358. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/he.js +0 -6
  1359. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/hr.js +0 -6
  1360. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/it.js +0 -6
  1361. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/nb.js +0 -6
  1362. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/nl.js +0 -6
  1363. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/no.js +0 -6
  1364. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/pt-br.js +0 -6
  1365. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/tr.js +0 -6
  1366. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/ug.js +0 -6
  1367. data/public/javascripts/erp_app/ckeditor/plugins/specialchar/lang/zh-cn.js +0 -6
  1368. data/public/javascripts/erp_app/ckeditor/plugins/styles/styles/default.js +0 -6
  1369. data/public/javascripts/erp_app/ckeditor/plugins/stylesheetparser/plugin.js +0 -6
  1370. data/public/javascripts/erp_app/ckeditor/plugins/tableresize/plugin.js +0 -7
  1371. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
  1372. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/_translationstatus.txt +0 -28
  1373. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/bg.js +0 -6
  1374. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/cs.js +0 -6
  1375. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/cy.js +0 -6
  1376. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/da.js +0 -6
  1377. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/de.js +0 -6
  1378. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/el.js +0 -6
  1379. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/en.js +0 -6
  1380. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/eo.js +0 -6
  1381. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/et.js +0 -6
  1382. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/fa.js +0 -6
  1383. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/fi.js +0 -6
  1384. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/fr.js +0 -6
  1385. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/he.js +0 -6
  1386. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/hr.js +0 -6
  1387. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/it.js +0 -6
  1388. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/mk.js +0 -6
  1389. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/nb.js +0 -6
  1390. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/nl.js +0 -6
  1391. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/no.js +0 -6
  1392. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/pl.js +0 -6
  1393. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/pt-br.js +0 -6
  1394. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/tr.js +0 -6
  1395. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/ug.js +0 -6
  1396. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/uk.js +0 -6
  1397. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/vi.js +0 -6
  1398. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/lang/zh-cn.js +0 -6
  1399. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/plugin.js +0 -6
  1400. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  1401. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  1402. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  1403. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  1404. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  1405. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
  1406. data/public/javascripts/erp_app/ckeditor/plugins/uicolor/yui/yui.js +0 -76
  1407. data/public/javascripts/erp_app/ckeditor/plugins/xml/plugin.js +0 -6
  1408. data/public/javascripts/erp_app/ckeditor/skins/kama/dialog.css +0 -10
  1409. data/public/javascripts/erp_app/ckeditor/skins/kama/editor.css +0 -13
  1410. data/public/javascripts/erp_app/ckeditor/skins/kama/icons.png +0 -0
  1411. data/public/javascripts/erp_app/ckeditor/skins/kama/icons_rtl.png +0 -0
  1412. data/public/javascripts/erp_app/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  1413. data/public/javascripts/erp_app/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  1414. data/public/javascripts/erp_app/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  1415. data/public/javascripts/erp_app/ckeditor/skins/kama/images/mini.gif +0 -0
  1416. data/public/javascripts/erp_app/ckeditor/skins/kama/images/sprites.png +0 -0
  1417. data/public/javascripts/erp_app/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  1418. data/public/javascripts/erp_app/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  1419. data/public/javascripts/erp_app/ckeditor/skins/kama/skin.js +0 -7
  1420. data/public/javascripts/erp_app/ckeditor/skins/kama/templates.css +0 -6
  1421. data/public/javascripts/erp_app/ckeditor/skins/office2003/dialog.css +0 -10
  1422. data/public/javascripts/erp_app/ckeditor/skins/office2003/editor.css +0 -14
  1423. data/public/javascripts/erp_app/ckeditor/skins/office2003/icons.png +0 -0
  1424. data/public/javascripts/erp_app/ckeditor/skins/office2003/icons_rtl.png +0 -0
  1425. data/public/javascripts/erp_app/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  1426. data/public/javascripts/erp_app/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  1427. data/public/javascripts/erp_app/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  1428. data/public/javascripts/erp_app/ckeditor/skins/office2003/images/mini.gif +0 -0
  1429. data/public/javascripts/erp_app/ckeditor/skins/office2003/images/noimage.png +0 -0
  1430. data/public/javascripts/erp_app/ckeditor/skins/office2003/images/sprites.png +0 -0
  1431. data/public/javascripts/erp_app/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  1432. data/public/javascripts/erp_app/ckeditor/skins/office2003/skin.js +0 -6
  1433. data/public/javascripts/erp_app/ckeditor/skins/office2003/templates.css +0 -6
  1434. data/public/javascripts/erp_app/ckeditor/skins/v2/dialog.css +0 -9
  1435. data/public/javascripts/erp_app/ckeditor/skins/v2/editor.css +0 -13
  1436. data/public/javascripts/erp_app/ckeditor/skins/v2/icons.png +0 -0
  1437. data/public/javascripts/erp_app/ckeditor/skins/v2/icons_rtl.png +0 -0
  1438. data/public/javascripts/erp_app/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  1439. data/public/javascripts/erp_app/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  1440. data/public/javascripts/erp_app/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  1441. data/public/javascripts/erp_app/ckeditor/skins/v2/images/mini.gif +0 -0
  1442. data/public/javascripts/erp_app/ckeditor/skins/v2/images/noimage.png +0 -0
  1443. data/public/javascripts/erp_app/ckeditor/skins/v2/images/sprites.png +0 -0
  1444. data/public/javascripts/erp_app/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  1445. data/public/javascripts/erp_app/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  1446. data/public/javascripts/erp_app/ckeditor/skins/v2/skin.js +0 -6
  1447. data/public/javascripts/erp_app/ckeditor/skins/v2/templates.css +0 -6
  1448. data/public/javascripts/erp_app/ckeditor/themes/default/theme.js +0 -8
  1449. data/public/javascripts/erp_app/codemirror/LICENSE +0 -23
  1450. data/public/javascripts/erp_app/codemirror/README.md +0 -8
  1451. data/public/javascripts/erp_app/codemirror/doc/baboon.png +0 -0
  1452. data/public/javascripts/erp_app/codemirror/doc/baboon_vector.svg +0 -153
  1453. data/public/javascripts/erp_app/codemirror/doc/compress.html +0 -165
  1454. data/public/javascripts/erp_app/codemirror/doc/docs.css +0 -165
  1455. data/public/javascripts/erp_app/codemirror/doc/internals.html +0 -497
  1456. data/public/javascripts/erp_app/codemirror/doc/manual.html +0 -1231
  1457. data/public/javascripts/erp_app/codemirror/doc/oldrelease.html +0 -356
  1458. data/public/javascripts/erp_app/codemirror/doc/realworld.html +0 -72
  1459. data/public/javascripts/erp_app/codemirror/doc/reporting.html +0 -60
  1460. data/public/javascripts/erp_app/codemirror/doc/upgrade_v2.2.html +0 -98
  1461. data/public/javascripts/erp_app/codemirror/keymap/emacs.js +0 -29
  1462. data/public/javascripts/erp_app/codemirror/keymap/vim.js +0 -788
  1463. data/public/javascripts/erp_app/codemirror/lib/util/closetag.js +0 -164
  1464. data/public/javascripts/erp_app/codemirror/lib/util/dialog.css +0 -27
  1465. data/public/javascripts/erp_app/codemirror/lib/util/dialog.js +0 -70
  1466. data/public/javascripts/erp_app/codemirror/lib/util/foldcode.js +0 -196
  1467. data/public/javascripts/erp_app/codemirror/lib/util/formatting.js +0 -193
  1468. data/public/javascripts/erp_app/codemirror/lib/util/javascript-hint.js +0 -134
  1469. data/public/javascripts/erp_app/codemirror/lib/util/loadmode.js +0 -51
  1470. data/public/javascripts/erp_app/codemirror/lib/util/match-highlighter.js +0 -44
  1471. data/public/javascripts/erp_app/codemirror/lib/util/multiplex.js +0 -77
  1472. data/public/javascripts/erp_app/codemirror/lib/util/overlay.js +0 -59
  1473. data/public/javascripts/erp_app/codemirror/lib/util/pig-hint.js +0 -123
  1474. data/public/javascripts/erp_app/codemirror/lib/util/runmode-standalone.js +0 -90
  1475. data/public/javascripts/erp_app/codemirror/lib/util/runmode.js +0 -53
  1476. data/public/javascripts/erp_app/codemirror/lib/util/search.js +0 -118
  1477. data/public/javascripts/erp_app/codemirror/lib/util/searchcursor.js +0 -119
  1478. data/public/javascripts/erp_app/codemirror/lib/util/simple-hint.css +0 -16
  1479. data/public/javascripts/erp_app/codemirror/lib/util/simple-hint.js +0 -102
  1480. data/public/javascripts/erp_app/codemirror/lib/util/xml-hint.js +0 -137
  1481. data/public/javascripts/erp_app/codemirror/mode/clike/clike.js +0 -285
  1482. data/public/javascripts/erp_app/codemirror/mode/clike/index.html +0 -102
  1483. data/public/javascripts/erp_app/codemirror/mode/clike/scala.html +0 -766
  1484. data/public/javascripts/erp_app/codemirror/mode/clojure/clojure.js +0 -206
  1485. data/public/javascripts/erp_app/codemirror/mode/clojure/index.html +0 -67
  1486. data/public/javascripts/erp_app/codemirror/mode/coffeescript/LICENSE +0 -22
  1487. data/public/javascripts/erp_app/codemirror/mode/coffeescript/coffeescript.js +0 -346
  1488. data/public/javascripts/erp_app/codemirror/mode/coffeescript/index.html +0 -728
  1489. data/public/javascripts/erp_app/codemirror/mode/commonlisp/commonlisp.js +0 -101
  1490. data/public/javascripts/erp_app/codemirror/mode/commonlisp/index.html +0 -165
  1491. data/public/javascripts/erp_app/codemirror/mode/css/css.js +0 -448
  1492. data/public/javascripts/erp_app/codemirror/mode/css/index.html +0 -58
  1493. data/public/javascripts/erp_app/codemirror/mode/css/test.js +0 -501
  1494. data/public/javascripts/erp_app/codemirror/mode/diff/diff.js +0 -32
  1495. data/public/javascripts/erp_app/codemirror/mode/diff/index.html +0 -105
  1496. data/public/javascripts/erp_app/codemirror/mode/ecl/ecl.js +0 -203
  1497. data/public/javascripts/erp_app/codemirror/mode/ecl/index.html +0 -42
  1498. data/public/javascripts/erp_app/codemirror/mode/erlang/erlang.js +0 -463
  1499. data/public/javascripts/erp_app/codemirror/mode/erlang/index.html +0 -63
  1500. data/public/javascripts/erp_app/codemirror/mode/gfm/gfm.js +0 -94
  1501. data/public/javascripts/erp_app/codemirror/mode/gfm/index.html +0 -71
  1502. data/public/javascripts/erp_app/codemirror/mode/gfm/test.js +0 -225
  1503. data/public/javascripts/erp_app/codemirror/mode/go/go.js +0 -170
  1504. data/public/javascripts/erp_app/codemirror/mode/go/index.html +0 -73
  1505. data/public/javascripts/erp_app/codemirror/mode/groovy/groovy.js +0 -210
  1506. data/public/javascripts/erp_app/codemirror/mode/groovy/index.html +0 -72
  1507. data/public/javascripts/erp_app/codemirror/mode/haskell/haskell.js +0 -242
  1508. data/public/javascripts/erp_app/codemirror/mode/haskell/index.html +0 -61
  1509. data/public/javascripts/erp_app/codemirror/mode/haxe/haxe.js +0 -429
  1510. data/public/javascripts/erp_app/codemirror/mode/haxe/index.html +0 -91
  1511. data/public/javascripts/erp_app/codemirror/mode/htmlembedded/htmlembedded.js +0 -73
  1512. data/public/javascripts/erp_app/codemirror/mode/htmlembedded/index.html +0 -50
  1513. data/public/javascripts/erp_app/codemirror/mode/htmlmixed/htmlmixed.js +0 -84
  1514. data/public/javascripts/erp_app/codemirror/mode/htmlmixed/index.html +0 -52
  1515. data/public/javascripts/erp_app/codemirror/mode/javascript/index.html +0 -85
  1516. data/public/javascripts/erp_app/codemirror/mode/javascript/javascript.js +0 -409
  1517. data/public/javascripts/erp_app/codemirror/mode/javascript/typescript.html +0 -48
  1518. data/public/javascripts/erp_app/codemirror/mode/jinja2/index.html +0 -38
  1519. data/public/javascripts/erp_app/codemirror/mode/jinja2/jinja2.js +0 -42
  1520. data/public/javascripts/erp_app/codemirror/mode/less/index.html +0 -740
  1521. data/public/javascripts/erp_app/codemirror/mode/less/less.js +0 -266
  1522. data/public/javascripts/erp_app/codemirror/mode/lua/index.html +0 -73
  1523. data/public/javascripts/erp_app/codemirror/mode/lua/lua.js +0 -140
  1524. data/public/javascripts/erp_app/codemirror/mode/markdown/index.html +0 -343
  1525. data/public/javascripts/erp_app/codemirror/mode/markdown/markdown.js +0 -481
  1526. data/public/javascripts/erp_app/codemirror/mode/markdown/test.js +0 -1266
  1527. data/public/javascripts/erp_app/codemirror/mode/mysql/index.html +0 -42
  1528. data/public/javascripts/erp_app/codemirror/mode/mysql/mysql.js +0 -186
  1529. data/public/javascripts/erp_app/codemirror/mode/ntriples/index.html +0 -33
  1530. data/public/javascripts/erp_app/codemirror/mode/ntriples/ntriples.js +0 -172
  1531. data/public/javascripts/erp_app/codemirror/mode/ocaml/index.html +0 -130
  1532. data/public/javascripts/erp_app/codemirror/mode/ocaml/ocaml.js +0 -114
  1533. data/public/javascripts/erp_app/codemirror/mode/pascal/LICENSE +0 -7
  1534. data/public/javascripts/erp_app/codemirror/mode/pascal/index.html +0 -49
  1535. data/public/javascripts/erp_app/codemirror/mode/pascal/pascal.js +0 -94
  1536. data/public/javascripts/erp_app/codemirror/mode/perl/LICENSE +0 -19
  1537. data/public/javascripts/erp_app/codemirror/mode/perl/index.html +0 -63
  1538. data/public/javascripts/erp_app/codemirror/mode/perl/perl.js +0 -816
  1539. data/public/javascripts/erp_app/codemirror/mode/php/index.html +0 -49
  1540. data/public/javascripts/erp_app/codemirror/mode/php/php.js +0 -148
  1541. data/public/javascripts/erp_app/codemirror/mode/pig/index.html +0 -43
  1542. data/public/javascripts/erp_app/codemirror/mode/pig/pig.js +0 -172
  1543. data/public/javascripts/erp_app/codemirror/mode/plsql/index.html +0 -63
  1544. data/public/javascripts/erp_app/codemirror/mode/plsql/plsql.js +0 -217
  1545. data/public/javascripts/erp_app/codemirror/mode/properties/index.html +0 -41
  1546. data/public/javascripts/erp_app/codemirror/mode/properties/properties.js +0 -63
  1547. data/public/javascripts/erp_app/codemirror/mode/python/LICENSE.txt +0 -21
  1548. data/public/javascripts/erp_app/codemirror/mode/python/index.html +0 -123
  1549. data/public/javascripts/erp_app/codemirror/mode/python/python.js +0 -338
  1550. data/public/javascripts/erp_app/codemirror/mode/r/LICENSE +0 -24
  1551. data/public/javascripts/erp_app/codemirror/mode/r/index.html +0 -74
  1552. data/public/javascripts/erp_app/codemirror/mode/r/r.js +0 -141
  1553. data/public/javascripts/erp_app/codemirror/mode/rpm/changes/changes.js +0 -19
  1554. data/public/javascripts/erp_app/codemirror/mode/rpm/changes/index.html +0 -54
  1555. data/public/javascripts/erp_app/codemirror/mode/rpm/spec/index.html +0 -100
  1556. data/public/javascripts/erp_app/codemirror/mode/rpm/spec/spec.css +0 -5
  1557. data/public/javascripts/erp_app/codemirror/mode/rpm/spec/spec.js +0 -66
  1558. data/public/javascripts/erp_app/codemirror/mode/rst/index.html +0 -526
  1559. data/public/javascripts/erp_app/codemirror/mode/rst/rst.js +0 -326
  1560. data/public/javascripts/erp_app/codemirror/mode/ruby/LICENSE +0 -24
  1561. data/public/javascripts/erp_app/codemirror/mode/ruby/index.html +0 -172
  1562. data/public/javascripts/erp_app/codemirror/mode/ruby/ruby.js +0 -195
  1563. data/public/javascripts/erp_app/codemirror/mode/rust/index.html +0 -49
  1564. data/public/javascripts/erp_app/codemirror/mode/rust/rust.js +0 -432
  1565. data/public/javascripts/erp_app/codemirror/mode/scheme/index.html +0 -65
  1566. data/public/javascripts/erp_app/codemirror/mode/scheme/scheme.js +0 -230
  1567. data/public/javascripts/erp_app/codemirror/mode/shell/index.html +0 -50
  1568. data/public/javascripts/erp_app/codemirror/mode/shell/shell.js +0 -118
  1569. data/public/javascripts/erp_app/codemirror/mode/sieve/LICENSE +0 -23
  1570. data/public/javascripts/erp_app/codemirror/mode/sieve/index.html +0 -81
  1571. data/public/javascripts/erp_app/codemirror/mode/sieve/sieve.js +0 -156
  1572. data/public/javascripts/erp_app/codemirror/mode/smalltalk/index.html +0 -56
  1573. data/public/javascripts/erp_app/codemirror/mode/smalltalk/smalltalk.js +0 -139
  1574. data/public/javascripts/erp_app/codemirror/mode/smarty/index.html +0 -83
  1575. data/public/javascripts/erp_app/codemirror/mode/smarty/smarty.js +0 -148
  1576. data/public/javascripts/erp_app/codemirror/mode/sparql/index.html +0 -41
  1577. data/public/javascripts/erp_app/codemirror/mode/sparql/sparql.js +0 -143
  1578. data/public/javascripts/erp_app/codemirror/mode/stex/index.html +0 -98
  1579. data/public/javascripts/erp_app/codemirror/mode/stex/stex.js +0 -182
  1580. data/public/javascripts/erp_app/codemirror/mode/stex/test.js +0 -343
  1581. data/public/javascripts/erp_app/codemirror/mode/tiddlywiki/index.html +0 -141
  1582. data/public/javascripts/erp_app/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
  1583. data/public/javascripts/erp_app/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -384
  1584. data/public/javascripts/erp_app/codemirror/mode/tiki/index.html +0 -83
  1585. data/public/javascripts/erp_app/codemirror/mode/tiki/tiki.css +0 -26
  1586. data/public/javascripts/erp_app/codemirror/mode/tiki/tiki.js +0 -309
  1587. data/public/javascripts/erp_app/codemirror/mode/vb/LICENSE.txt +0 -21
  1588. data/public/javascripts/erp_app/codemirror/mode/vb/index.html +0 -89
  1589. data/public/javascripts/erp_app/codemirror/mode/vb/vb.js +0 -260
  1590. data/public/javascripts/erp_app/codemirror/mode/vbscript/index.html +0 -43
  1591. data/public/javascripts/erp_app/codemirror/mode/vbscript/vbscript.js +0 -26
  1592. data/public/javascripts/erp_app/codemirror/mode/velocity/index.html +0 -104
  1593. data/public/javascripts/erp_app/codemirror/mode/velocity/velocity.js +0 -146
  1594. data/public/javascripts/erp_app/codemirror/mode/verilog/index.html +0 -211
  1595. data/public/javascripts/erp_app/codemirror/mode/verilog/verilog.js +0 -194
  1596. data/public/javascripts/erp_app/codemirror/mode/xml/index.html +0 -45
  1597. data/public/javascripts/erp_app/codemirror/mode/xml/xml.js +0 -318
  1598. data/public/javascripts/erp_app/codemirror/mode/xquery/LICENSE +0 -20
  1599. data/public/javascripts/erp_app/codemirror/mode/xquery/index.html +0 -223
  1600. data/public/javascripts/erp_app/codemirror/mode/xquery/test/index.html +0 -27
  1601. data/public/javascripts/erp_app/codemirror/mode/xquery/test/testBase.js +0 -42
  1602. data/public/javascripts/erp_app/codemirror/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
  1603. data/public/javascripts/erp_app/codemirror/mode/xquery/test/testMultiAttr.js +0 -16
  1604. data/public/javascripts/erp_app/codemirror/mode/xquery/test/testNamespaces.js +0 -91
  1605. data/public/javascripts/erp_app/codemirror/mode/xquery/test/testProcessingInstructions.js +0 -16
  1606. data/public/javascripts/erp_app/codemirror/mode/xquery/test/testQuotes.js +0 -19
  1607. data/public/javascripts/erp_app/codemirror/mode/xquery/xquery.js +0 -451
  1608. data/public/javascripts/erp_app/codemirror/mode/yaml/index.html +0 -68
  1609. data/public/javascripts/erp_app/codemirror/mode/yaml/yaml.js +0 -95
  1610. data/public/javascripts/erp_app/codemirror/package.json +0 -21
  1611. data/public/javascripts/erp_app/codemirror/test/driver.js +0 -129
  1612. data/public/javascripts/erp_app/codemirror/test/index.html +0 -171
  1613. data/public/javascripts/erp_app/codemirror/test/lint/lint.js +0 -120
  1614. data/public/javascripts/erp_app/codemirror/test/lint/parse-js.js +0 -1372
  1615. data/public/javascripts/erp_app/codemirror/test/mode_test.css +0 -10
  1616. data/public/javascripts/erp_app/codemirror/test/mode_test.js +0 -203
  1617. data/public/javascripts/erp_app/codemirror/test/phantom_driver.js +0 -30
  1618. data/public/javascripts/erp_app/codemirror/test/run.js +0 -32
  1619. data/public/javascripts/erp_app/codemirror/test/test.js +0 -677
  1620. data/public/javascripts/erp_app/desktop/applications/control_panel/application_management_panel.js +0 -109
  1621. data/public/javascripts/erp_app/desktop/applications/control_panel/desktop_management_panel.js +0 -218
  1622. data/public/javascripts/erp_app/organizer/applications/crm/contact_mechanism_grid.js +0 -559
  1623. data/public/javascripts/erp_app/organizer/applications/crm/individual_windows.js +0 -237
  1624. data/public/javascripts/erp_app/organizer/applications/crm/organization_windows.js +0 -167
  1625. data/public/javascripts/erp_app/organizer/applications/crm/party_grid.js +0 -423
  1626. data/public/javascripts/erp_app/organizer/applications/crm/userinfo.js +0 -215
  1627. data/public/javascripts/erp_app/shared/audit_log/audit_log_grid_panel.js +0 -169
  1628. data/public/javascripts/erp_app/shared/audit_log/audit_log_item_grid_panel.js +0 -99
  1629. data/public/javascripts/erp_app/shared/audit_log/audit_log_tab_panel.js +0 -52
  1630. data/public/javascripts/erp_app/shared/coolclock/coolclock.js +0 -314
  1631. data/public/javascripts/erp_app/shared/coolclock/moreskins.js +0 -212
  1632. data/public/javascripts/erp_app/shared/coolclock/tray_clock.js +0 -145
  1633. data/public/javascripts/erp_app/shared/dynamic_forms/dynamic_form_fields.js +0 -99
  1634. data/public/javascripts/erp_app/shared/preference_form.js +0 -155
@@ -1,1670 +0,0 @@
1
- /* The Editor object manages the content of the editable frame. It
2
- * catches events, colours nodes, and indents lines. This file also
3
- * holds some functions for transforming arbitrary DOM structures into
4
- * plain sequences of <span> and <br> elements
5
- */
6
-
7
- var internetExplorer = document.selection && window.ActiveXObject && /MSIE/.test(navigator.userAgent);
8
- var webkit = /AppleWebKit/.test(navigator.userAgent);
9
- var safari = /Apple Computer, Inc/.test(navigator.vendor);
10
- var gecko = navigator.userAgent.match(/gecko\/(\d{8})/i);
11
- if (gecko) gecko = Number(gecko[1]);
12
- var mac = /Mac/.test(navigator.platform);
13
-
14
- // TODO this is related to the backspace-at-end-of-line bug. Remove
15
- // this if Opera gets their act together, make the version check more
16
- // broad if they don't.
17
- var brokenOpera = window.opera && /Version\/10.[56]/.test(navigator.userAgent);
18
- // TODO remove this once WebKit 533 becomes less common.
19
- var slowWebkit = /AppleWebKit\/533/.test(navigator.userAgent);
20
-
21
- // Make sure a string does not contain two consecutive 'collapseable'
22
- // whitespace characters.
23
- function makeWhiteSpace(n) {
24
- var buffer = [], nb = true;
25
- for (; n > 0; n--) {
26
- buffer.push((nb || n == 1) ? nbsp : " ");
27
- nb ^= true;
28
- }
29
- return buffer.join("");
30
- }
31
-
32
- // Create a set of white-space characters that will not be collapsed
33
- // by the browser, but will not break text-wrapping either.
34
- function fixSpaces(string) {
35
- if (string.charAt(0) == " ") string = nbsp + string.slice(1);
36
- return string.replace(/\t/g, function() {return makeWhiteSpace(indentUnit);})
37
- .replace(/[ \u00a0]{2,}/g, function(s) {return makeWhiteSpace(s.length);});
38
- }
39
-
40
- function cleanText(text) {
41
- return text.replace(/\u00a0/g, " ").replace(/\u200b/g, "");
42
- }
43
-
44
- // Create a SPAN node with the expected properties for document part
45
- // spans.
46
- function makePartSpan(value) {
47
- var text = value;
48
- if (value.nodeType == 3) text = value.nodeValue;
49
- else value = document.createTextNode(text);
50
-
51
- var span = document.createElement("span");
52
- span.isPart = true;
53
- span.appendChild(value);
54
- span.currentText = text;
55
- return span;
56
- }
57
-
58
- function alwaysZero() {return 0;}
59
-
60
- // On webkit, when the last BR of the document does not have text
61
- // behind it, the cursor can not be put on the line after it. This
62
- // makes pressing enter at the end of the document occasionally do
63
- // nothing (or at least seem to do nothing). To work around it, this
64
- // function makes sure the document ends with a span containing a
65
- // zero-width space character. The traverseDOM iterator filters such
66
- // character out again, so that the parsers won't see them. This
67
- // function is called from a few strategic places to make sure the
68
- // zwsp is restored after the highlighting process eats it.
69
- var webkitLastLineHack = webkit ?
70
- function(container) {
71
- var last = container.lastChild;
72
- if (!last || !last.hackBR) {
73
- var br = document.createElement("br");
74
- br.hackBR = true;
75
- container.appendChild(br);
76
- }
77
- } : function() {};
78
-
79
- function asEditorLines(string) {
80
- var tab = makeWhiteSpace(indentUnit);
81
- return map(string.replace(/\t/g, tab).replace(/\u00a0/g, " ").replace(/\r\n?/g, "\n").split("\n"), fixSpaces);
82
- }
83
-
84
- var Editor = (function(){
85
- // The HTML elements whose content should be suffixed by a newline
86
- // when converting them to flat text.
87
- var newlineElements = {"P": true, "DIV": true, "LI": true};
88
-
89
- // Helper function for traverseDOM. Flattens an arbitrary DOM node
90
- // into an array of textnodes and <br> tags.
91
- function simplifyDOM(root, atEnd) {
92
- var result = [];
93
- var leaving = true;
94
-
95
- function simplifyNode(node, top) {
96
- if (node.nodeType == 3) {
97
- var text = node.nodeValue = fixSpaces(node.nodeValue.replace(/[\r\u200b]/g, "").replace(/\n/g, " "));
98
- if (text.length) leaving = false;
99
- result.push(node);
100
- }
101
- else if (isBR(node) && node.childNodes.length == 0) {
102
- leaving = true;
103
- result.push(node);
104
- }
105
- else {
106
- for (var n = node.firstChild; n; n = n.nextSibling) simplifyNode(n);
107
- if (!leaving && newlineElements.hasOwnProperty(node.nodeName.toUpperCase())) {
108
- leaving = true;
109
- if (!atEnd || !top)
110
- result.push(document.createElement("br"));
111
- }
112
- }
113
- }
114
-
115
- simplifyNode(root, true);
116
- return result;
117
- }
118
-
119
- // Creates a MochiKit-style iterator that goes over a series of DOM
120
- // nodes. The values it yields are strings, the textual content of
121
- // the nodes. It makes sure that all nodes up to and including the
122
- // one whose text is being yielded have been 'normalized' to be just
123
- // <span> and <br> elements.
124
- function traverseDOM(start){
125
- var nodeQueue = [];
126
-
127
- // Create a function that can be used to insert nodes after the
128
- // one given as argument.
129
- function pointAt(node){
130
- var parent = node.parentNode;
131
- var next = node.nextSibling;
132
- return function(newnode) {
133
- parent.insertBefore(newnode, next);
134
- };
135
- }
136
- var point = null;
137
-
138
- // This an Opera-specific hack -- always insert an empty span
139
- // between two BRs, because Opera's cursor code gets terribly
140
- // confused when the cursor is between two BRs.
141
- var afterBR = true;
142
-
143
- // Insert a normalized node at the current point. If it is a text
144
- // node, wrap it in a <span>, and give that span a currentText
145
- // property -- this is used to cache the nodeValue, because
146
- // directly accessing nodeValue is horribly slow on some browsers.
147
- // The dirty property is used by the highlighter to determine
148
- // which parts of the document have to be re-highlighted.
149
- function insertPart(part){
150
- var text = "\n";
151
- if (part.nodeType == 3) {
152
- select.snapshotChanged();
153
- part = makePartSpan(part);
154
- text = part.currentText;
155
- afterBR = false;
156
- }
157
- else {
158
- if (afterBR && window.opera)
159
- point(makePartSpan(""));
160
- afterBR = true;
161
- }
162
- part.dirty = true;
163
- nodeQueue.push(part);
164
- point(part);
165
- return text;
166
- }
167
-
168
- // Extract the text and newlines from a DOM node, insert them into
169
- // the document, and return the textual content. Used to replace
170
- // non-normalized nodes.
171
- function writeNode(node, end) {
172
- var simplified = simplifyDOM(node, end);
173
- for (var i = 0; i < simplified.length; i++)
174
- simplified[i] = insertPart(simplified[i]);
175
- return simplified.join("");
176
- }
177
-
178
- // Check whether a node is a normalized <span> element.
179
- function partNode(node){
180
- if (node.isPart && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {
181
- var text = node.firstChild.nodeValue;
182
- node.dirty = node.dirty || text != node.currentText;
183
- node.currentText = text;
184
- return !/[\n\t\r]/.test(node.currentText);
185
- }
186
- return false;
187
- }
188
-
189
- // Advance to next node, return string for current node.
190
- function next() {
191
- if (!start) throw StopIteration;
192
- var node = start;
193
- start = node.nextSibling;
194
-
195
- if (partNode(node)){
196
- nodeQueue.push(node);
197
- afterBR = false;
198
- return node.currentText;
199
- }
200
- else if (isBR(node)) {
201
- if (afterBR && window.opera)
202
- node.parentNode.insertBefore(makePartSpan(""), node);
203
- nodeQueue.push(node);
204
- afterBR = true;
205
- return "\n";
206
- }
207
- else {
208
- var end = !node.nextSibling;
209
- point = pointAt(node);
210
- removeElement(node);
211
- return writeNode(node, end);
212
- }
213
- }
214
-
215
- // MochiKit iterators are objects with a next function that
216
- // returns the next value or throws StopIteration when there are
217
- // no more values.
218
- return {next: next, nodes: nodeQueue};
219
- }
220
-
221
- // Determine the text size of a processed node.
222
- function nodeSize(node) {
223
- return isBR(node) ? 1 : node.currentText.length;
224
- }
225
-
226
- // Search backwards through the top-level nodes until the next BR or
227
- // the start of the frame.
228
- function startOfLine(node) {
229
- while (node && !isBR(node)) node = node.previousSibling;
230
- return node;
231
- }
232
- function endOfLine(node, container) {
233
- if (!node) node = container.firstChild;
234
- else if (isBR(node)) node = node.nextSibling;
235
-
236
- while (node && !isBR(node)) node = node.nextSibling;
237
- return node;
238
- }
239
-
240
- function time() {return new Date().getTime();}
241
-
242
- // Client interface for searching the content of the editor. Create
243
- // these by calling CodeMirror.getSearchCursor. To use, call
244
- // findNext on the resulting object -- this returns a boolean
245
- // indicating whether anything was found, and can be called again to
246
- // skip to the next find. Use the select and replace methods to
247
- // actually do something with the found locations.
248
- function SearchCursor(editor, pattern, from, caseFold) {
249
- this.editor = editor;
250
- this.history = editor.history;
251
- this.history.commit();
252
- this.valid = !!pattern;
253
- this.atOccurrence = false;
254
- if (caseFold == undefined) caseFold = typeof pattern == "string" && pattern == pattern.toLowerCase();
255
-
256
- function getText(node){
257
- var line = cleanText(editor.history.textAfter(node));
258
- return (caseFold ? line.toLowerCase() : line);
259
- }
260
-
261
- var topPos = {node: null, offset: 0}, self = this;
262
- if (from && typeof from == "object" && typeof from.character == "number") {
263
- editor.checkLine(from.line);
264
- var pos = {node: from.line, offset: from.character};
265
- this.pos = {from: pos, to: pos};
266
- }
267
- else if (from) {
268
- this.pos = {from: select.cursorPos(editor.container, true) || topPos,
269
- to: select.cursorPos(editor.container, false) || topPos};
270
- }
271
- else {
272
- this.pos = {from: topPos, to: topPos};
273
- }
274
-
275
- if (typeof pattern != "string") { // Regexp match
276
- this.matches = function(reverse, node, offset) {
277
- if (reverse) {
278
- var line = getText(node).slice(0, offset), match = line.match(pattern), start = 0;
279
- while (match) {
280
- var ind = line.indexOf(match[0]);
281
- start += ind;
282
- line = line.slice(ind + 1);
283
- var newmatch = line.match(pattern);
284
- if (newmatch) match = newmatch;
285
- else break;
286
- }
287
- }
288
- else {
289
- var line = getText(node).slice(offset), match = line.match(pattern),
290
- start = match && offset + line.indexOf(match[0]);
291
- }
292
- if (match) {
293
- self.currentMatch = match;
294
- return {from: {node: node, offset: start},
295
- to: {node: node, offset: start + match[0].length}};
296
- }
297
- };
298
- return;
299
- }
300
-
301
- if (caseFold) pattern = pattern.toLowerCase();
302
- // Create a matcher function based on the kind of string we have.
303
- var target = pattern.split("\n");
304
- this.matches = (target.length == 1) ?
305
- // For one-line strings, searching can be done simply by calling
306
- // indexOf or lastIndexOf on the current line.
307
- function(reverse, node, offset) {
308
- var line = getText(node), len = pattern.length, match;
309
- if (reverse ? (offset >= len && (match = line.lastIndexOf(pattern, offset - len)) != -1)
310
- : (match = line.indexOf(pattern, offset)) != -1)
311
- return {from: {node: node, offset: match},
312
- to: {node: node, offset: match + len}};
313
- } :
314
- // Multi-line strings require internal iteration over lines, and
315
- // some clunky checks to make sure the first match ends at the
316
- // end of the line and the last match starts at the start.
317
- function(reverse, node, offset) {
318
- var idx = (reverse ? target.length - 1 : 0), match = target[idx], line = getText(node);
319
- var offsetA = (reverse ? line.indexOf(match) + match.length : line.lastIndexOf(match));
320
- if (reverse ? offsetA >= offset || offsetA != match.length
321
- : offsetA <= offset || offsetA != line.length - match.length)
322
- return;
323
-
324
- var pos = node;
325
- while (true) {
326
- if (reverse && !pos) return;
327
- pos = (reverse ? this.history.nodeBefore(pos) : this.history.nodeAfter(pos) );
328
- if (!reverse && !pos) return;
329
-
330
- line = getText(pos);
331
- match = target[reverse ? --idx : ++idx];
332
-
333
- if (idx > 0 && idx < target.length - 1) {
334
- if (line != match) return;
335
- else continue;
336
- }
337
- var offsetB = (reverse ? line.lastIndexOf(match) : line.indexOf(match) + match.length);
338
- if (reverse ? offsetB != line.length - match.length : offsetB != match.length)
339
- return;
340
- return {from: {node: reverse ? pos : node, offset: reverse ? offsetB : offsetA},
341
- to: {node: reverse ? node : pos, offset: reverse ? offsetA : offsetB}};
342
- }
343
- };
344
- }
345
-
346
- SearchCursor.prototype = {
347
- findNext: function() {return this.find(false);},
348
- findPrevious: function() {return this.find(true);},
349
-
350
- find: function(reverse) {
351
- if (!this.valid) return false;
352
-
353
- var self = this, pos = reverse ? this.pos.from : this.pos.to,
354
- node = pos.node, offset = pos.offset;
355
- // Reset the cursor if the current line is no longer in the DOM tree.
356
- if (node && !node.parentNode) {
357
- node = null; offset = 0;
358
- }
359
- function savePosAndFail() {
360
- var pos = {node: node, offset: offset};
361
- self.pos = {from: pos, to: pos};
362
- self.atOccurrence = false;
363
- return false;
364
- }
365
-
366
- while (true) {
367
- if (this.pos = this.matches(reverse, node, offset)) {
368
- this.atOccurrence = true;
369
- return true;
370
- }
371
-
372
- if (reverse) {
373
- if (!node) return savePosAndFail();
374
- node = this.history.nodeBefore(node);
375
- offset = this.history.textAfter(node).length;
376
- }
377
- else {
378
- var next = this.history.nodeAfter(node);
379
- if (!next) {
380
- offset = this.history.textAfter(node).length;
381
- return savePosAndFail();
382
- }
383
- node = next;
384
- offset = 0;
385
- }
386
- }
387
- },
388
-
389
- select: function() {
390
- if (this.atOccurrence) {
391
- select.setCursorPos(this.editor.container, this.pos.from, this.pos.to);
392
- select.scrollToCursor(this.editor.container);
393
- }
394
- },
395
-
396
- replace: function(string) {
397
- if (this.atOccurrence) {
398
- var fragments = this.currentMatch;
399
- if (fragments)
400
- string = string.replace(/\\(\d)/, function(m, i){return fragments[i];});
401
- var end = this.editor.replaceRange(this.pos.from, this.pos.to, string);
402
- this.pos.to = end;
403
- this.atOccurrence = false;
404
- }
405
- },
406
-
407
- position: function() {
408
- if (this.atOccurrence)
409
- return {line: this.pos.from.node, character: this.pos.from.offset};
410
- }
411
- };
412
-
413
- // The Editor object is the main inside-the-iframe interface.
414
- function Editor(options) {
415
- this.options = options;
416
- window.indentUnit = options.indentUnit;
417
- var container = this.container = document.body;
418
- this.history = new UndoHistory(container, options.undoDepth, options.undoDelay, this);
419
- var self = this;
420
-
421
- if (!Editor.Parser)
422
- throw "No parser loaded.";
423
- if (options.parserConfig && Editor.Parser.configure)
424
- Editor.Parser.configure(options.parserConfig);
425
-
426
- if (!options.readOnly && !internetExplorer)
427
- select.setCursorPos(container, {node: null, offset: 0});
428
-
429
- this.dirty = [];
430
- this.importCode(options.content || "");
431
- this.history.onChange = options.onChange;
432
-
433
- if (!options.readOnly) {
434
- if (options.continuousScanning !== false) {
435
- this.scanner = this.documentScanner(options.passTime);
436
- this.delayScanning();
437
- }
438
-
439
- function setEditable() {
440
- // Use contentEditable instead of designMode on IE, since designMode frames
441
- // can not run any scripts. It would be nice if we could use contentEditable
442
- // everywhere, but it is significantly flakier than designMode on every
443
- // single non-IE browser.
444
- if (document.body.contentEditable != undefined && internetExplorer)
445
- document.body.contentEditable = "true";
446
- else
447
- document.designMode = "on";
448
-
449
- // Work around issue where you have to click on the actual
450
- // body of the document to focus it in IE, making focusing
451
- // hard when the document is small.
452
- if (internetExplorer && options.height != "dynamic")
453
- document.body.style.minHeight = (
454
- window.frameElement.clientHeight - 2 * document.body.offsetTop - 5) + "px";
455
-
456
- document.documentElement.style.borderWidth = "0";
457
- if (!options.textWrapping)
458
- container.style.whiteSpace = "nowrap";
459
- }
460
-
461
- // If setting the frame editable fails, try again when the user
462
- // focus it (happens when the frame is not visible on
463
- // initialisation, in Firefox).
464
- try {
465
- setEditable();
466
- }
467
- catch(e) {
468
- var focusEvent = addEventHandler(document, "focus", function() {
469
- focusEvent();
470
- setEditable();
471
- }, true);
472
- }
473
-
474
- addEventHandler(document, "keydown", method(this, "keyDown"));
475
- addEventHandler(document, "keypress", method(this, "keyPress"));
476
- addEventHandler(document, "keyup", method(this, "keyUp"));
477
-
478
- function cursorActivity() {self.cursorActivity(false);}
479
- addEventHandler(internetExplorer ? document.body : window, "mouseup", cursorActivity);
480
- addEventHandler(document.body, "cut", cursorActivity);
481
-
482
- // workaround for a gecko bug [?] where going forward and then
483
- // back again breaks designmode (no more cursor)
484
- if (gecko)
485
- addEventHandler(window, "pagehide", function(){self.unloaded = true;});
486
-
487
- addEventHandler(document.body, "paste", function(event) {
488
- cursorActivity();
489
- var text = null;
490
- try {
491
- var clipboardData = event.clipboardData || window.clipboardData;
492
- if (clipboardData) text = clipboardData.getData('Text');
493
- }
494
- catch(e) {}
495
- if (text !== null) {
496
- event.stop();
497
- self.replaceSelection(text);
498
- select.scrollToCursor(self.container);
499
- }
500
- });
501
-
502
- if (this.options.autoMatchParens)
503
- addEventHandler(document.body, "click", method(this, "scheduleParenHighlight"));
504
- }
505
- else if (!options.textWrapping) {
506
- container.style.whiteSpace = "nowrap";
507
- }
508
- }
509
-
510
- function isSafeKey(code) {
511
- return (code >= 16 && code <= 18) || // shift, control, alt
512
- (code >= 33 && code <= 40); // arrows, home, end
513
- }
514
-
515
- Editor.prototype = {
516
- // Import a piece of code into the editor.
517
- importCode: function(code) {
518
- var lines = asEditorLines(code), chunk = 1000;
519
- if (!this.options.incrementalLoading || lines.length < chunk) {
520
- this.history.push(null, null, lines);
521
- this.history.reset();
522
- }
523
- else {
524
- var cur = 0, self = this;
525
- function addChunk() {
526
- var chunklines = lines.slice(cur, cur + chunk);
527
- chunklines.push("");
528
- self.history.push(self.history.nodeBefore(null), null, chunklines);
529
- self.history.reset();
530
- cur += chunk;
531
- if (cur < lines.length)
532
- parent.setTimeout(addChunk, 1000);
533
- }
534
- addChunk();
535
- }
536
- },
537
-
538
- // Extract the code from the editor.
539
- getCode: function() {
540
- if (!this.container.firstChild)
541
- return "";
542
-
543
- var accum = [];
544
- select.markSelection();
545
- forEach(traverseDOM(this.container.firstChild), method(accum, "push"));
546
- select.selectMarked();
547
- // On webkit, don't count last (empty) line if the webkitLastLineHack BR is present
548
- if (webkit && this.container.lastChild.hackBR)
549
- accum.pop();
550
- webkitLastLineHack(this.container);
551
- return cleanText(accum.join(""));
552
- },
553
-
554
- checkLine: function(node) {
555
- if (node === false || !(node == null || node.parentNode == this.container || node.hackBR))
556
- throw parent.CodeMirror.InvalidLineHandle;
557
- },
558
-
559
- cursorPosition: function(start) {
560
- if (start == null) start = true;
561
- var pos = select.cursorPos(this.container, start);
562
- if (pos) return {line: pos.node, character: pos.offset};
563
- else return {line: null, character: 0};
564
- },
565
-
566
- firstLine: function() {
567
- return null;
568
- },
569
-
570
- lastLine: function() {
571
- var last = this.container.lastChild;
572
- if (last) last = startOfLine(last);
573
- if (last && last.hackBR) last = startOfLine(last.previousSibling);
574
- return last;
575
- },
576
-
577
- nextLine: function(line) {
578
- this.checkLine(line);
579
- var end = endOfLine(line, this.container);
580
- if (!end || end.hackBR) return false;
581
- else return end;
582
- },
583
-
584
- prevLine: function(line) {
585
- this.checkLine(line);
586
- if (line == null) return false;
587
- return startOfLine(line.previousSibling);
588
- },
589
-
590
- visibleLineCount: function() {
591
- var line = this.container.firstChild;
592
- while (line && isBR(line)) line = line.nextSibling; // BR heights are unreliable
593
- if (!line) return false;
594
- var innerHeight = (window.innerHeight
595
- || document.documentElement.clientHeight
596
- || document.body.clientHeight);
597
- return Math.floor(innerHeight / line.offsetHeight);
598
- },
599
-
600
- selectLines: function(startLine, startOffset, endLine, endOffset) {
601
- this.checkLine(startLine);
602
- var start = {node: startLine, offset: startOffset}, end = null;
603
- if (endOffset !== undefined) {
604
- this.checkLine(endLine);
605
- end = {node: endLine, offset: endOffset};
606
- }
607
- select.setCursorPos(this.container, start, end);
608
- select.scrollToCursor(this.container);
609
- },
610
-
611
- lineContent: function(line) {
612
- var accum = [];
613
- for (line = line ? line.nextSibling : this.container.firstChild;
614
- line && !isBR(line); line = line.nextSibling)
615
- accum.push(nodeText(line));
616
- return cleanText(accum.join(""));
617
- },
618
-
619
- setLineContent: function(line, content) {
620
- this.history.commit();
621
- this.replaceRange({node: line, offset: 0},
622
- {node: line, offset: this.history.textAfter(line).length},
623
- content);
624
- this.addDirtyNode(line);
625
- this.scheduleHighlight();
626
- },
627
-
628
- removeLine: function(line) {
629
- var node = line ? line.nextSibling : this.container.firstChild;
630
- while (node) {
631
- var next = node.nextSibling;
632
- removeElement(node);
633
- if (isBR(node)) break;
634
- node = next;
635
- }
636
- this.addDirtyNode(line);
637
- this.scheduleHighlight();
638
- },
639
-
640
- insertIntoLine: function(line, position, content) {
641
- var before = null;
642
- if (position == "end") {
643
- before = endOfLine(line, this.container);
644
- }
645
- else {
646
- for (var cur = line ? line.nextSibling : this.container.firstChild; cur; cur = cur.nextSibling) {
647
- if (position == 0) {
648
- before = cur;
649
- break;
650
- }
651
- var text = nodeText(cur);
652
- if (text.length > position) {
653
- before = cur.nextSibling;
654
- content = text.slice(0, position) + content + text.slice(position);
655
- removeElement(cur);
656
- break;
657
- }
658
- position -= text.length;
659
- }
660
- }
661
-
662
- var lines = asEditorLines(content);
663
- for (var i = 0; i < lines.length; i++) {
664
- if (i > 0) this.container.insertBefore(document.createElement("BR"), before);
665
- this.container.insertBefore(makePartSpan(lines[i]), before);
666
- }
667
- this.addDirtyNode(line);
668
- this.scheduleHighlight();
669
- },
670
-
671
- // Retrieve the selected text.
672
- selectedText: function() {
673
- var h = this.history;
674
- h.commit();
675
-
676
- var start = select.cursorPos(this.container, true),
677
- end = select.cursorPos(this.container, false);
678
- if (!start || !end) return "";
679
-
680
- if (start.node == end.node)
681
- return h.textAfter(start.node).slice(start.offset, end.offset);
682
-
683
- var text = [h.textAfter(start.node).slice(start.offset)];
684
- for (var pos = h.nodeAfter(start.node); pos != end.node; pos = h.nodeAfter(pos))
685
- text.push(h.textAfter(pos));
686
- text.push(h.textAfter(end.node).slice(0, end.offset));
687
- return cleanText(text.join("\n"));
688
- },
689
-
690
- // Replace the selection with another piece of text.
691
- replaceSelection: function(text) {
692
- this.history.commit();
693
-
694
- var start = select.cursorPos(this.container, true),
695
- end = select.cursorPos(this.container, false);
696
- if (!start || !end) return;
697
-
698
- end = this.replaceRange(start, end, text);
699
- select.setCursorPos(this.container, end);
700
- webkitLastLineHack(this.container);
701
- },
702
-
703
- cursorCoords: function(start, internal) {
704
- var sel = select.cursorPos(this.container, start);
705
- if (!sel) return null;
706
- var off = sel.offset, node = sel.node, self = this;
707
- function measureFromNode(node, xOffset) {
708
- var y = -(document.body.scrollTop || document.documentElement.scrollTop || 0),
709
- x = -(document.body.scrollLeft || document.documentElement.scrollLeft || 0) + xOffset;
710
- forEach([node, internal ? null : window.frameElement], function(n) {
711
- while (n) {x += n.offsetLeft; y += n.offsetTop;n = n.offsetParent;}
712
- });
713
- return {x: x, y: y, yBot: y + node.offsetHeight};
714
- }
715
- function withTempNode(text, f) {
716
- var node = document.createElement("SPAN");
717
- node.appendChild(document.createTextNode(text));
718
- try {return f(node);}
719
- finally {if (node.parentNode) node.parentNode.removeChild(node);}
720
- }
721
-
722
- while (off) {
723
- node = node ? node.nextSibling : this.container.firstChild;
724
- var txt = nodeText(node);
725
- if (off < txt.length)
726
- return withTempNode(txt.substr(0, off), function(tmp) {
727
- tmp.style.position = "absolute"; tmp.style.visibility = "hidden";
728
- tmp.className = node.className;
729
- self.container.appendChild(tmp);
730
- return measureFromNode(node, tmp.offsetWidth);
731
- });
732
- off -= txt.length;
733
- }
734
- if (node && isSpan(node))
735
- return measureFromNode(node, node.offsetWidth);
736
- else if (node && node.nextSibling && isSpan(node.nextSibling))
737
- return measureFromNode(node.nextSibling, 0);
738
- else
739
- return withTempNode("\u200b", function(tmp) {
740
- if (node) node.parentNode.insertBefore(tmp, node.nextSibling);
741
- else self.container.insertBefore(tmp, self.container.firstChild);
742
- return measureFromNode(tmp, 0);
743
- });
744
- },
745
-
746
- reroutePasteEvent: function() {
747
- if (this.capturingPaste || window.opera || (gecko && gecko >= 20101026)) return;
748
- this.capturingPaste = true;
749
- var te = window.frameElement.CodeMirror.textareaHack;
750
- var coords = this.cursorCoords(true, true);
751
- te.style.top = coords.y + "px";
752
- if (internetExplorer) {
753
- var snapshot = select.getBookmark(this.container);
754
- if (snapshot) this.selectionSnapshot = snapshot;
755
- }
756
- parent.focus();
757
- te.value = "";
758
- te.focus();
759
-
760
- var self = this;
761
- parent.setTimeout(function() {
762
- self.capturingPaste = false;
763
- window.focus();
764
- if (self.selectionSnapshot) // IE hack
765
- window.select.setBookmark(self.container, self.selectionSnapshot);
766
- var text = te.value;
767
- if (text) {
768
- self.replaceSelection(text);
769
- select.scrollToCursor(self.container);
770
- }
771
- }, 10);
772
- },
773
-
774
- replaceRange: function(from, to, text) {
775
- var lines = asEditorLines(text);
776
- lines[0] = this.history.textAfter(from.node).slice(0, from.offset) + lines[0];
777
- var lastLine = lines[lines.length - 1];
778
- lines[lines.length - 1] = lastLine + this.history.textAfter(to.node).slice(to.offset);
779
- var end = this.history.nodeAfter(to.node);
780
- this.history.push(from.node, end, lines);
781
- return {node: this.history.nodeBefore(end),
782
- offset: lastLine.length};
783
- },
784
-
785
- getSearchCursor: function(string, fromCursor, caseFold) {
786
- return new SearchCursor(this, string, fromCursor, caseFold);
787
- },
788
-
789
- // Re-indent the whole buffer
790
- reindent: function() {
791
- if (this.container.firstChild)
792
- this.indentRegion(null, this.container.lastChild);
793
- },
794
-
795
- reindentSelection: function(direction) {
796
- if (!select.somethingSelected()) {
797
- this.indentAtCursor(direction);
798
- }
799
- else {
800
- var start = select.selectionTopNode(this.container, true),
801
- end = select.selectionTopNode(this.container, false);
802
- if (start === false || end === false) return;
803
- this.indentRegion(start, end, direction);
804
- }
805
- },
806
-
807
- grabKeys: function(eventHandler, filter) {
808
- this.frozen = eventHandler;
809
- this.keyFilter = filter;
810
- },
811
- ungrabKeys: function() {
812
- this.frozen = "leave";
813
- },
814
-
815
- setParser: function(name, parserConfig) {
816
- Editor.Parser = window[name];
817
- parserConfig = parserConfig || this.options.parserConfig;
818
- if (parserConfig && Editor.Parser.configure)
819
- Editor.Parser.configure(parserConfig);
820
-
821
- if (this.container.firstChild) {
822
- forEach(this.container.childNodes, function(n) {
823
- if (n.nodeType != 3) n.dirty = true;
824
- });
825
- this.addDirtyNode(this.firstChild);
826
- this.scheduleHighlight();
827
- }
828
- },
829
-
830
- // Intercept enter and tab, and assign their new functions.
831
- keyDown: function(event) {
832
- if (this.frozen == "leave") {this.frozen = null; this.keyFilter = null;}
833
- if (this.frozen && (!this.keyFilter || this.keyFilter(event.keyCode, event))) {
834
- event.stop();
835
- this.frozen(event);
836
- return;
837
- }
838
-
839
- var code = event.keyCode;
840
- // Don't scan when the user is typing.
841
- this.delayScanning();
842
- // Schedule a paren-highlight event, if configured.
843
- if (this.options.autoMatchParens)
844
- this.scheduleParenHighlight();
845
-
846
- // The various checks for !altKey are there because AltGr sets both
847
- // ctrlKey and altKey to true, and should not be recognised as
848
- // Control.
849
- if (code == 13) { // enter
850
- if (event.ctrlKey && !event.altKey) {
851
- this.reparseBuffer();
852
- }
853
- else {
854
- select.insertNewlineAtCursor();
855
- var mode = this.options.enterMode;
856
- if (mode != "flat") this.indentAtCursor(mode == "keep" ? "keep" : undefined);
857
- select.scrollToCursor(this.container);
858
- }
859
- event.stop();
860
- }
861
- else if (code == 9 && this.options.tabMode != "default" && !event.ctrlKey) { // tab
862
- this.handleTab(!event.shiftKey);
863
- event.stop();
864
- }
865
- else if (code == 32 && event.shiftKey && this.options.tabMode == "default") { // space
866
- this.handleTab(true);
867
- event.stop();
868
- }
869
- else if (code == 36 && !event.shiftKey && !event.ctrlKey) { // home
870
- if (this.home()) event.stop();
871
- }
872
- else if (code == 35 && !event.shiftKey && !event.ctrlKey) { // end
873
- if (this.end()) event.stop();
874
- }
875
- // Only in Firefox is the default behavior for PgUp/PgDn correct.
876
- else if (code == 33 && !event.shiftKey && !event.ctrlKey && !gecko) { // PgUp
877
- if (this.pageUp()) event.stop();
878
- }
879
- else if (code == 34 && !event.shiftKey && !event.ctrlKey && !gecko) { // PgDn
880
- if (this.pageDown()) event.stop();
881
- }
882
- else if ((code == 219 || code == 221) && event.ctrlKey && !event.altKey) { // [, ]
883
- this.highlightParens(event.shiftKey, true);
884
- event.stop();
885
- }
886
- else if (event.metaKey && !event.shiftKey && (code == 37 || code == 39)) { // Meta-left/right
887
- var cursor = select.selectionTopNode(this.container);
888
- if (cursor === false || !this.container.firstChild) return;
889
-
890
- if (code == 37) select.focusAfterNode(startOfLine(cursor), this.container);
891
- else {
892
- var end = endOfLine(cursor, this.container);
893
- select.focusAfterNode(end ? end.previousSibling : this.container.lastChild, this.container);
894
- }
895
- event.stop();
896
- }
897
- else if ((event.ctrlKey || event.metaKey) && !event.altKey) {
898
- if ((event.shiftKey && code == 90) || code == 89) { // shift-Z, Y
899
- select.scrollToNode(this.history.redo());
900
- event.stop();
901
- }
902
- else if (code == 90 || (safari && code == 8)) { // Z, backspace
903
- select.scrollToNode(this.history.undo());
904
- event.stop();
905
- }
906
- else if (code == 83 && this.options.saveFunction) { // S
907
- this.options.saveFunction();
908
- event.stop();
909
- }
910
- else if (code == 86 && !mac) { // V
911
- this.reroutePasteEvent();
912
- }
913
- }
914
- },
915
-
916
- // Check for characters that should re-indent the current line,
917
- // and prevent Opera from handling enter and tab anyway.
918
- keyPress: function(event) {
919
- var electric = this.options.electricChars && Editor.Parser.electricChars, self = this;
920
- // Hack for Opera, and Firefox on OS X, in which stopping a
921
- // keydown event does not prevent the associated keypress event
922
- // from happening, so we have to cancel enter and tab again
923
- // here.
924
- if ((this.frozen && (!this.keyFilter || this.keyFilter(event.keyCode || event.code, event))) ||
925
- event.code == 13 || (event.code == 9 && this.options.tabMode != "default") ||
926
- (event.code == 32 && event.shiftKey && this.options.tabMode == "default"))
927
- event.stop();
928
- else if (mac && (event.ctrlKey || event.metaKey) && event.character == "v") {
929
- this.reroutePasteEvent();
930
- }
931
- else if (electric && electric.indexOf(event.character) != -1)
932
- parent.setTimeout(function(){self.indentAtCursor(null);}, 0);
933
- // Work around a bug where pressing backspace at the end of a
934
- // line, or delete at the start, often causes the cursor to jump
935
- // to the start of the line in Opera 10.60.
936
- else if (brokenOpera) {
937
- if (event.code == 8) { // backspace
938
- var sel = select.selectionTopNode(this.container), self = this,
939
- next = sel ? sel.nextSibling : this.container.firstChild;
940
- if (sel !== false && next && isBR(next))
941
- parent.setTimeout(function(){
942
- if (select.selectionTopNode(self.container) == next)
943
- select.focusAfterNode(next.previousSibling, self.container);
944
- }, 20);
945
- }
946
- else if (event.code == 46) { // delete
947
- var sel = select.selectionTopNode(this.container), self = this;
948
- if (sel && isBR(sel)) {
949
- parent.setTimeout(function(){
950
- if (select.selectionTopNode(self.container) != sel)
951
- select.focusAfterNode(sel, self.container);
952
- }, 20);
953
- }
954
- }
955
- }
956
- // In 533.* WebKit versions, when the document is big, typing
957
- // something at the end of a line causes the browser to do some
958
- // kind of stupid heavy operation, creating delays of several
959
- // seconds before the typed characters appear. This very crude
960
- // hack inserts a temporary zero-width space after the cursor to
961
- // make it not be at the end of the line.
962
- else if (slowWebkit) {
963
- var sel = select.selectionTopNode(this.container),
964
- next = sel ? sel.nextSibling : this.container.firstChild;
965
- // Doesn't work on empty lines, for some reason those always
966
- // trigger the delay.
967
- if (sel && next && isBR(next) && !isBR(sel)) {
968
- var cheat = document.createTextNode("\u200b");
969
- this.container.insertBefore(cheat, next);
970
- parent.setTimeout(function() {
971
- if (cheat.nodeValue == "\u200b") removeElement(cheat);
972
- else cheat.nodeValue = cheat.nodeValue.replace("\u200b", "");
973
- }, 20);
974
- }
975
- }
976
-
977
- // Magic incantation that works abound a webkit bug when you
978
- // can't type on a blank line following a line that's wider than
979
- // the window.
980
- if (webkit && !this.options.textWrapping)
981
- setTimeout(function () {
982
- var node = select.selectionTopNode(self.container, true);
983
- if (node && node.nodeType == 3 && node.previousSibling && isBR(node.previousSibling)
984
- && node.nextSibling && isBR(node.nextSibling))
985
- node.parentNode.replaceChild(document.createElement("BR"), node.previousSibling);
986
- }, 50);
987
- },
988
-
989
- // Mark the node at the cursor dirty when a non-safe key is
990
- // released.
991
- keyUp: function(event) {
992
- this.cursorActivity(isSafeKey(event.keyCode));
993
- },
994
-
995
- // Indent the line following a given <br>, or null for the first
996
- // line. If given a <br> element, this must have been highlighted
997
- // so that it has an indentation method. Returns the whitespace
998
- // element that has been modified or created (if any).
999
- indentLineAfter: function(start, direction) {
1000
- function whiteSpaceAfter(node) {
1001
- var ws = node ? node.nextSibling : self.container.firstChild;
1002
- if (!ws || !hasClass(ws, "whitespace")) return null;
1003
- return ws;
1004
- }
1005
-
1006
- // whiteSpace is the whitespace span at the start of the line,
1007
- // or null if there is no such node.
1008
- var self = this, whiteSpace = whiteSpaceAfter(start);
1009
- var newIndent = 0, curIndent = whiteSpace ? whiteSpace.currentText.length : 0;
1010
-
1011
- var firstText = whiteSpace ? whiteSpace.nextSibling : (start ? start.nextSibling : this.container.firstChild);
1012
- if (direction == "keep") {
1013
- if (start) {
1014
- var prevWS = whiteSpaceAfter(startOfLine(start.previousSibling))
1015
- if (prevWS) newIndent = prevWS.currentText.length;
1016
- }
1017
- }
1018
- else {
1019
- // Sometimes the start of the line can influence the correct
1020
- // indentation, so we retrieve it.
1021
- var nextChars = (start && firstText && firstText.currentText) ? firstText.currentText : "";
1022
-
1023
- // Ask the lexical context for the correct indentation, and
1024
- // compute how much this differs from the current indentation.
1025
- if (direction != null && this.options.tabMode == "shift")
1026
- newIndent = direction ? curIndent + indentUnit : Math.max(0, curIndent - indentUnit)
1027
- else if (start)
1028
- newIndent = start.indentation(nextChars, curIndent, direction, firstText);
1029
- else if (Editor.Parser.firstIndentation)
1030
- newIndent = Editor.Parser.firstIndentation(nextChars, curIndent, direction, firstText);
1031
- }
1032
-
1033
- var indentDiff = newIndent - curIndent;
1034
-
1035
- // If there is too much, this is just a matter of shrinking a span.
1036
- if (indentDiff < 0) {
1037
- if (newIndent == 0) {
1038
- if (firstText) select.snapshotMove(whiteSpace.firstChild, firstText.firstChild || firstText, 0);
1039
- removeElement(whiteSpace);
1040
- whiteSpace = null;
1041
- }
1042
- else {
1043
- select.snapshotMove(whiteSpace.firstChild, whiteSpace.firstChild, indentDiff, true);
1044
- whiteSpace.currentText = makeWhiteSpace(newIndent);
1045
- whiteSpace.firstChild.nodeValue = whiteSpace.currentText;
1046
- }
1047
- }
1048
- // Not enough...
1049
- else if (indentDiff > 0) {
1050
- // If there is whitespace, we grow it.
1051
- if (whiteSpace) {
1052
- whiteSpace.currentText = makeWhiteSpace(newIndent);
1053
- whiteSpace.firstChild.nodeValue = whiteSpace.currentText;
1054
- select.snapshotMove(whiteSpace.firstChild, whiteSpace.firstChild, indentDiff, true);
1055
- }
1056
- // Otherwise, we have to add a new whitespace node.
1057
- else {
1058
- whiteSpace = makePartSpan(makeWhiteSpace(newIndent));
1059
- whiteSpace.className = "whitespace";
1060
- if (start) insertAfter(whiteSpace, start);
1061
- else this.container.insertBefore(whiteSpace, this.container.firstChild);
1062
- select.snapshotMove(firstText && (firstText.firstChild || firstText),
1063
- whiteSpace.firstChild, newIndent, false, true);
1064
- }
1065
- }
1066
- // Make sure cursor ends up after the whitespace
1067
- else if (whiteSpace) {
1068
- select.snapshotMove(whiteSpace.firstChild, whiteSpace.firstChild, newIndent, false);
1069
- }
1070
- if (indentDiff != 0) this.addDirtyNode(start);
1071
- },
1072
-
1073
- // Re-highlight the selected part of the document.
1074
- highlightAtCursor: function() {
1075
- var pos = select.selectionTopNode(this.container, true);
1076
- var to = select.selectionTopNode(this.container, false);
1077
- if (pos === false || to === false) return false;
1078
-
1079
- select.markSelection();
1080
- if (this.highlight(pos, endOfLine(to, this.container), true, 20) === false)
1081
- return false;
1082
- select.selectMarked();
1083
- return true;
1084
- },
1085
-
1086
- // When tab is pressed with text selected, the whole selection is
1087
- // re-indented, when nothing is selected, the line with the cursor
1088
- // is re-indented.
1089
- handleTab: function(direction) {
1090
- if (this.options.tabMode == "spaces")
1091
- select.insertTabAtCursor();
1092
- else
1093
- this.reindentSelection(direction);
1094
- },
1095
-
1096
- // Custom home behaviour that doesn't land the cursor in front of
1097
- // leading whitespace unless pressed twice.
1098
- home: function() {
1099
- var cur = select.selectionTopNode(this.container, true), start = cur;
1100
- if (cur === false || !(!cur || cur.isPart || isBR(cur)) || !this.container.firstChild)
1101
- return false;
1102
-
1103
- while (cur && !isBR(cur)) cur = cur.previousSibling;
1104
- var next = cur ? cur.nextSibling : this.container.firstChild;
1105
- if (next && next != start && next.isPart && hasClass(next, "whitespace"))
1106
- select.focusAfterNode(next, this.container);
1107
- else
1108
- select.focusAfterNode(cur, this.container);
1109
-
1110
- select.scrollToCursor(this.container);
1111
- return true;
1112
- },
1113
-
1114
- // Some browsers (Opera) don't manage to handle the end key
1115
- // properly in the face of vertical scrolling.
1116
- end: function() {
1117
- var cur = select.selectionTopNode(this.container, true);
1118
- if (cur === false) return false;
1119
- cur = endOfLine(cur, this.container);
1120
- if (!cur) return false;
1121
- select.focusAfterNode(cur.previousSibling, this.container);
1122
- select.scrollToCursor(this.container);
1123
- return true;
1124
- },
1125
-
1126
- pageUp: function() {
1127
- var line = this.cursorPosition().line, scrollAmount = this.visibleLineCount();
1128
- if (line === false || scrollAmount === false) return false;
1129
- // Try to keep one line on the screen.
1130
- scrollAmount -= 2;
1131
- for (var i = 0; i < scrollAmount; i++) {
1132
- line = this.prevLine(line);
1133
- if (line === false) break;
1134
- }
1135
- if (i == 0) return false; // Already at first line
1136
- select.setCursorPos(this.container, {node: line, offset: 0});
1137
- select.scrollToCursor(this.container);
1138
- return true;
1139
- },
1140
-
1141
- pageDown: function() {
1142
- var line = this.cursorPosition().line, scrollAmount = this.visibleLineCount();
1143
- if (line === false || scrollAmount === false) return false;
1144
- // Try to move to the last line of the current page.
1145
- scrollAmount -= 2;
1146
- for (var i = 0; i < scrollAmount; i++) {
1147
- var nextLine = this.nextLine(line);
1148
- if (nextLine === false) break;
1149
- line = nextLine;
1150
- }
1151
- if (i == 0) return false; // Already at last line
1152
- select.setCursorPos(this.container, {node: line, offset: 0});
1153
- select.scrollToCursor(this.container);
1154
- return true;
1155
- },
1156
-
1157
- // Delay (or initiate) the next paren highlight event.
1158
- scheduleParenHighlight: function() {
1159
- if (this.parenEvent) parent.clearTimeout(this.parenEvent);
1160
- var self = this;
1161
- this.parenEvent = parent.setTimeout(function(){self.highlightParens();}, 300);
1162
- },
1163
-
1164
- // Take the token before the cursor. If it contains a character in
1165
- // '()[]{}', search for the matching paren/brace/bracket, and
1166
- // highlight them in green for a moment, or red if no proper match
1167
- // was found.
1168
- highlightParens: function(jump, fromKey) {
1169
- var self = this, mark = this.options.markParen;
1170
- if (typeof mark == "string") mark = [mark, mark];
1171
- // give the relevant nodes a colour.
1172
- function highlight(node, ok) {
1173
- if (!node) return;
1174
- if (!mark) {
1175
- node.style.fontWeight = "bold";
1176
- node.style.color = ok ? "#8F8" : "#F88";
1177
- }
1178
- else if (mark.call) mark(node, ok);
1179
- else node.className += " " + mark[ok ? 0 : 1];
1180
- }
1181
- function unhighlight(node) {
1182
- if (!node) return;
1183
- if (mark && !mark.call)
1184
- removeClass(removeClass(node, mark[0]), mark[1]);
1185
- else if (self.options.unmarkParen)
1186
- self.options.unmarkParen(node);
1187
- else {
1188
- node.style.fontWeight = "";
1189
- node.style.color = "";
1190
- }
1191
- }
1192
- if (!fromKey && self.highlighted) {
1193
- unhighlight(self.highlighted[0]);
1194
- unhighlight(self.highlighted[1]);
1195
- }
1196
-
1197
- if (!window || !window.parent || !window.select) return;
1198
- // Clear the event property.
1199
- if (this.parenEvent) parent.clearTimeout(this.parenEvent);
1200
- this.parenEvent = null;
1201
-
1202
- // Extract a 'paren' from a piece of text.
1203
- function paren(node) {
1204
- if (node.currentText) {
1205
- var match = node.currentText.match(/^[\s\u00a0]*([\(\)\[\]{}])[\s\u00a0]*$/);
1206
- return match && match[1];
1207
- }
1208
- }
1209
- // Determine the direction a paren is facing.
1210
- function forward(ch) {
1211
- return /[\(\[\{]/.test(ch);
1212
- }
1213
-
1214
- var ch, cursor = select.selectionTopNode(this.container, true);
1215
- if (!cursor || !this.highlightAtCursor()) return;
1216
- cursor = select.selectionTopNode(this.container, true);
1217
- if (!(cursor && ((ch = paren(cursor)) || (cursor = cursor.nextSibling) && (ch = paren(cursor)))))
1218
- return;
1219
- // We only look for tokens with the same className.
1220
- var className = cursor.className, dir = forward(ch), match = matching[ch];
1221
-
1222
- // Since parts of the document might not have been properly
1223
- // highlighted, and it is hard to know in advance which part we
1224
- // have to scan, we just try, and when we find dirty nodes we
1225
- // abort, parse them, and re-try.
1226
- function tryFindMatch() {
1227
- var stack = [], ch, ok = true;
1228
- for (var runner = cursor; runner; runner = dir ? runner.nextSibling : runner.previousSibling) {
1229
- if (runner.className == className && isSpan(runner) && (ch = paren(runner))) {
1230
- if (forward(ch) == dir)
1231
- stack.push(ch);
1232
- else if (!stack.length)
1233
- ok = false;
1234
- else if (stack.pop() != matching[ch])
1235
- ok = false;
1236
- if (!stack.length) break;
1237
- }
1238
- else if (runner.dirty || !isSpan(runner) && !isBR(runner)) {
1239
- return {node: runner, status: "dirty"};
1240
- }
1241
- }
1242
- return {node: runner, status: runner && ok};
1243
- }
1244
-
1245
- while (true) {
1246
- var found = tryFindMatch();
1247
- if (found.status == "dirty") {
1248
- this.highlight(found.node, endOfLine(found.node));
1249
- // Needed because in some corner cases a highlight does not
1250
- // reach a node.
1251
- found.node.dirty = false;
1252
- continue;
1253
- }
1254
- else {
1255
- highlight(cursor, found.status);
1256
- highlight(found.node, found.status);
1257
- if (fromKey)
1258
- parent.setTimeout(function() {unhighlight(cursor); unhighlight(found.node);}, 500);
1259
- else
1260
- self.highlighted = [cursor, found.node];
1261
- if (jump && found.node)
1262
- select.focusAfterNode(found.node.previousSibling, this.container);
1263
- break;
1264
- }
1265
- }
1266
- },
1267
-
1268
- // Adjust the amount of whitespace at the start of the line that
1269
- // the cursor is on so that it is indented properly.
1270
- indentAtCursor: function(direction) {
1271
- if (!this.container.firstChild) return;
1272
- // The line has to have up-to-date lexical information, so we
1273
- // highlight it first.
1274
- if (!this.highlightAtCursor()) return;
1275
- var cursor = select.selectionTopNode(this.container, false);
1276
- // If we couldn't determine the place of the cursor,
1277
- // there's nothing to indent.
1278
- if (cursor === false)
1279
- return;
1280
- select.markSelection();
1281
- this.indentLineAfter(startOfLine(cursor), direction);
1282
- select.selectMarked();
1283
- },
1284
-
1285
- // Indent all lines whose start falls inside of the current
1286
- // selection.
1287
- indentRegion: function(start, end, direction) {
1288
- var current = (start = startOfLine(start)), before = start && startOfLine(start.previousSibling);
1289
- if (!isBR(end)) end = endOfLine(end, this.container);
1290
- this.addDirtyNode(start);
1291
-
1292
- do {
1293
- var next = endOfLine(current, this.container);
1294
- if (current) this.highlight(before, next, true);
1295
- this.indentLineAfter(current, direction);
1296
- before = current;
1297
- current = next;
1298
- } while (current != end);
1299
- select.setCursorPos(this.container, {node: start, offset: 0}, {node: end, offset: 0});
1300
- },
1301
-
1302
- // Find the node that the cursor is in, mark it as dirty, and make
1303
- // sure a highlight pass is scheduled.
1304
- cursorActivity: function(safe) {
1305
- // pagehide event hack above
1306
- if (this.unloaded) {
1307
- window.document.designMode = "off";
1308
- window.document.designMode = "on";
1309
- this.unloaded = false;
1310
- }
1311
-
1312
- if (internetExplorer) {
1313
- this.container.createTextRange().execCommand("unlink");
1314
- clearTimeout(this.saveSelectionSnapshot);
1315
- var self = this;
1316
- this.saveSelectionSnapshot = setTimeout(function() {
1317
- var snapshot = select.getBookmark(self.container);
1318
- if (snapshot) self.selectionSnapshot = snapshot;
1319
- }, 200);
1320
- }
1321
-
1322
- var activity = this.options.onCursorActivity;
1323
- if (!safe || activity) {
1324
- var cursor = select.selectionTopNode(this.container, false);
1325
- if (cursor === false || !this.container.firstChild) return;
1326
- cursor = cursor || this.container.firstChild;
1327
- if (activity) activity(cursor);
1328
- if (!safe) {
1329
- this.scheduleHighlight();
1330
- this.addDirtyNode(cursor);
1331
- }
1332
- }
1333
- },
1334
-
1335
- reparseBuffer: function() {
1336
- forEach(this.container.childNodes, function(node) {node.dirty = true;});
1337
- if (this.container.firstChild)
1338
- this.addDirtyNode(this.container.firstChild);
1339
- },
1340
-
1341
- // Add a node to the set of dirty nodes, if it isn't already in
1342
- // there.
1343
- addDirtyNode: function(node) {
1344
- node = node || this.container.firstChild;
1345
- if (!node) return;
1346
-
1347
- for (var i = 0; i < this.dirty.length; i++)
1348
- if (this.dirty[i] == node) return;
1349
-
1350
- if (node.nodeType != 3)
1351
- node.dirty = true;
1352
- this.dirty.push(node);
1353
- },
1354
-
1355
- allClean: function() {
1356
- return !this.dirty.length;
1357
- },
1358
-
1359
- // Cause a highlight pass to happen in options.passDelay
1360
- // milliseconds. Clear the existing timeout, if one exists. This
1361
- // way, the passes do not happen while the user is typing, and
1362
- // should as unobtrusive as possible.
1363
- scheduleHighlight: function() {
1364
- // Timeouts are routed through the parent window, because on
1365
- // some browsers designMode windows do not fire timeouts.
1366
- var self = this;
1367
- parent.clearTimeout(this.highlightTimeout);
1368
- this.highlightTimeout = parent.setTimeout(function(){self.highlightDirty();}, this.options.passDelay);
1369
- },
1370
-
1371
- // Fetch one dirty node, and remove it from the dirty set.
1372
- getDirtyNode: function() {
1373
- while (this.dirty.length > 0) {
1374
- var found = this.dirty.pop();
1375
- // IE8 sometimes throws an unexplainable 'invalid argument'
1376
- // exception for found.parentNode
1377
- try {
1378
- // If the node has been coloured in the meantime, or is no
1379
- // longer in the document, it should not be returned.
1380
- while (found && found.parentNode != this.container)
1381
- found = found.parentNode;
1382
- if (found && (found.dirty || found.nodeType == 3))
1383
- return found;
1384
- } catch (e) {}
1385
- }
1386
- return null;
1387
- },
1388
-
1389
- // Pick dirty nodes, and highlight them, until options.passTime
1390
- // milliseconds have gone by. The highlight method will continue
1391
- // to next lines as long as it finds dirty nodes. It returns
1392
- // information about the place where it stopped. If there are
1393
- // dirty nodes left after this function has spent all its lines,
1394
- // it shedules another highlight to finish the job.
1395
- highlightDirty: function(force) {
1396
- // Prevent FF from raising an error when it is firing timeouts
1397
- // on a page that's no longer loaded.
1398
- if (!window || !window.parent || !window.select) return false;
1399
-
1400
- if (!this.options.readOnly) select.markSelection();
1401
- var start, endTime = force ? null : time() + this.options.passTime;
1402
- while ((time() < endTime || force) && (start = this.getDirtyNode())) {
1403
- var result = this.highlight(start, endTime);
1404
- if (result && result.node && result.dirty)
1405
- this.addDirtyNode(result.node.nextSibling);
1406
- }
1407
- if (!this.options.readOnly) select.selectMarked();
1408
- if (start) this.scheduleHighlight();
1409
- return this.dirty.length == 0;
1410
- },
1411
-
1412
- // Creates a function that, when called through a timeout, will
1413
- // continuously re-parse the document.
1414
- documentScanner: function(passTime) {
1415
- var self = this, pos = null;
1416
- return function() {
1417
- // FF timeout weirdness workaround.
1418
- if (!window || !window.parent || !window.select) return;
1419
- // If the current node is no longer in the document... oh
1420
- // well, we start over.
1421
- if (pos && pos.parentNode != self.container)
1422
- pos = null;
1423
- select.markSelection();
1424
- var result = self.highlight(pos, time() + passTime, true);
1425
- select.selectMarked();
1426
- var newPos = result ? (result.node && result.node.nextSibling) : null;
1427
- pos = (pos == newPos) ? null : newPos;
1428
- self.delayScanning();
1429
- };
1430
- },
1431
-
1432
- // Starts the continuous scanning process for this document after
1433
- // a given interval.
1434
- delayScanning: function() {
1435
- if (this.scanner) {
1436
- parent.clearTimeout(this.documentScan);
1437
- this.documentScan = parent.setTimeout(this.scanner, this.options.continuousScanning);
1438
- }
1439
- },
1440
-
1441
- // The function that does the actual highlighting/colouring (with
1442
- // help from the parser and the DOM normalizer). Its interface is
1443
- // rather overcomplicated, because it is used in different
1444
- // situations: ensuring that a certain line is highlighted, or
1445
- // highlighting up to X milliseconds starting from a certain
1446
- // point. The 'from' argument gives the node at which it should
1447
- // start. If this is null, it will start at the beginning of the
1448
- // document. When a timestamp is given with the 'target' argument,
1449
- // it will stop highlighting at that time. If this argument holds
1450
- // a DOM node, it will highlight until it reaches that node. If at
1451
- // any time it comes across two 'clean' lines (no dirty nodes), it
1452
- // will stop, except when 'cleanLines' is true. maxBacktrack is
1453
- // the maximum number of lines to backtrack to find an existing
1454
- // parser instance. This is used to give up in situations where a
1455
- // highlight would take too long and freeze the browser interface.
1456
- highlight: function(from, target, cleanLines, maxBacktrack){
1457
- var container = this.container, self = this, active = this.options.activeTokens;
1458
- var endTime = (typeof target == "number" ? target : null);
1459
-
1460
- if (!container.firstChild)
1461
- return false;
1462
- // Backtrack to the first node before from that has a partial
1463
- // parse stored.
1464
- while (from && (!from.parserFromHere || from.dirty)) {
1465
- if (maxBacktrack != null && isBR(from) && (--maxBacktrack) < 0)
1466
- return false;
1467
- from = from.previousSibling;
1468
- }
1469
- // If we are at the end of the document, do nothing.
1470
- if (from && !from.nextSibling)
1471
- return false;
1472
-
1473
- // Check whether a part (<span> node) and the corresponding token
1474
- // match.
1475
- function correctPart(token, part){
1476
- return !part.reduced && part.currentText == token.value && part.className == token.style;
1477
- }
1478
- // Shorten the text associated with a part by chopping off
1479
- // characters from the front. Note that only the currentText
1480
- // property gets changed. For efficiency reasons, we leave the
1481
- // nodeValue alone -- we set the reduced flag to indicate that
1482
- // this part must be replaced.
1483
- function shortenPart(part, minus){
1484
- part.currentText = part.currentText.substring(minus);
1485
- part.reduced = true;
1486
- }
1487
- // Create a part corresponding to a given token.
1488
- function tokenPart(token){
1489
- var part = makePartSpan(token.value);
1490
- part.className = token.style;
1491
- return part;
1492
- }
1493
-
1494
- function maybeTouch(node) {
1495
- if (node) {
1496
- var old = node.oldNextSibling;
1497
- if (lineDirty || old === undefined || node.nextSibling != old)
1498
- self.history.touch(node);
1499
- node.oldNextSibling = node.nextSibling;
1500
- }
1501
- else {
1502
- var old = self.container.oldFirstChild;
1503
- if (lineDirty || old === undefined || self.container.firstChild != old)
1504
- self.history.touch(null);
1505
- self.container.oldFirstChild = self.container.firstChild;
1506
- }
1507
- }
1508
-
1509
- // Get the token stream. If from is null, we start with a new
1510
- // parser from the start of the frame, otherwise a partial parse
1511
- // is resumed.
1512
- var traversal = traverseDOM(from ? from.nextSibling : container.firstChild),
1513
- stream = stringStream(traversal),
1514
- parsed = from ? from.parserFromHere(stream) : Editor.Parser.make(stream);
1515
-
1516
- function surroundedByBRs(node) {
1517
- return (node.previousSibling == null || isBR(node.previousSibling)) &&
1518
- (node.nextSibling == null || isBR(node.nextSibling));
1519
- }
1520
-
1521
- // parts is an interface to make it possible to 'delay' fetching
1522
- // the next DOM node until we are completely done with the one
1523
- // before it. This is necessary because often the next node is
1524
- // not yet available when we want to proceed past the current
1525
- // one.
1526
- var parts = {
1527
- current: null,
1528
- // Fetch current node.
1529
- get: function(){
1530
- if (!this.current)
1531
- this.current = traversal.nodes.shift();
1532
- return this.current;
1533
- },
1534
- // Advance to the next part (do not fetch it yet).
1535
- next: function(){
1536
- this.current = null;
1537
- },
1538
- // Remove the current part from the DOM tree, and move to the
1539
- // next.
1540
- remove: function(){
1541
- container.removeChild(this.get());
1542
- this.current = null;
1543
- },
1544
- // Advance to the next part that is not empty, discarding empty
1545
- // parts.
1546
- getNonEmpty: function(){
1547
- var part = this.get();
1548
- // Allow empty nodes when they are alone on a line, needed
1549
- // for the FF cursor bug workaround (see select.js,
1550
- // insertNewlineAtCursor).
1551
- while (part && isSpan(part) && part.currentText == "") {
1552
- // Leave empty nodes that are alone on a line alone in
1553
- // Opera, since that browsers doesn't deal well with
1554
- // having 2 BRs in a row.
1555
- if (window.opera && surroundedByBRs(part)) {
1556
- this.next();
1557
- part = this.get();
1558
- }
1559
- else {
1560
- var old = part;
1561
- this.remove();
1562
- part = this.get();
1563
- // Adjust selection information, if any. See select.js for details.
1564
- select.snapshotMove(old.firstChild, part && (part.firstChild || part), 0);
1565
- }
1566
- }
1567
-
1568
- return part;
1569
- }
1570
- };
1571
-
1572
- var lineDirty = false, prevLineDirty = true, lineNodes = 0;
1573
-
1574
- // This forEach loops over the tokens from the parsed stream, and
1575
- // at the same time uses the parts object to proceed through the
1576
- // corresponding DOM nodes.
1577
- forEach(parsed, function(token){
1578
- var part = parts.getNonEmpty();
1579
-
1580
- if (token.value == "\n"){
1581
- // The idea of the two streams actually staying synchronized
1582
- // is such a long shot that we explicitly check.
1583
- if (!isBR(part))
1584
- throw "Parser out of sync. Expected BR.";
1585
-
1586
- if (part.dirty || !part.indentation) lineDirty = true;
1587
- maybeTouch(from);
1588
- from = part;
1589
-
1590
- // Every <br> gets a copy of the parser state and a lexical
1591
- // context assigned to it. The first is used to be able to
1592
- // later resume parsing from this point, the second is used
1593
- // for indentation.
1594
- part.parserFromHere = parsed.copy();
1595
- part.indentation = token.indentation || alwaysZero;
1596
- part.dirty = false;
1597
-
1598
- // If the target argument wasn't an integer, go at least
1599
- // until that node.
1600
- if (endTime == null && part == target) throw StopIteration;
1601
-
1602
- // A clean line with more than one node means we are done.
1603
- // Throwing a StopIteration is the way to break out of a
1604
- // MochiKit forEach loop.
1605
- if ((endTime != null && time() >= endTime) || (!lineDirty && !prevLineDirty && lineNodes > 1 && !cleanLines))
1606
- throw StopIteration;
1607
- prevLineDirty = lineDirty; lineDirty = false; lineNodes = 0;
1608
- parts.next();
1609
- }
1610
- else {
1611
- if (!isSpan(part))
1612
- throw "Parser out of sync. Expected SPAN.";
1613
- if (part.dirty)
1614
- lineDirty = true;
1615
- lineNodes++;
1616
-
1617
- // If the part matches the token, we can leave it alone.
1618
- if (correctPart(token, part)){
1619
- if (active && part.dirty) active(part, token, self);
1620
- part.dirty = false;
1621
- parts.next();
1622
- }
1623
- // Otherwise, we have to fix it.
1624
- else {
1625
- lineDirty = true;
1626
- // Insert the correct part.
1627
- var newPart = tokenPart(token);
1628
- container.insertBefore(newPart, part);
1629
- if (active) active(newPart, token, self);
1630
- var tokensize = token.value.length;
1631
- var offset = 0;
1632
- // Eat up parts until the text for this token has been
1633
- // removed, adjusting the stored selection info (see
1634
- // select.js) in the process.
1635
- while (tokensize > 0) {
1636
- part = parts.get();
1637
- var partsize = part.currentText.length;
1638
- select.snapshotReplaceNode(part.firstChild, newPart.firstChild, tokensize, offset);
1639
- if (partsize > tokensize){
1640
- shortenPart(part, tokensize);
1641
- tokensize = 0;
1642
- }
1643
- else {
1644
- tokensize -= partsize;
1645
- offset += partsize;
1646
- parts.remove();
1647
- }
1648
- }
1649
- }
1650
- }
1651
- });
1652
- maybeTouch(from);
1653
- webkitLastLineHack(this.container);
1654
-
1655
- // The function returns some status information that is used by
1656
- // hightlightDirty to determine whether and where it has to
1657
- // continue.
1658
- return {node: parts.getNonEmpty(),
1659
- dirty: lineDirty};
1660
- }
1661
- };
1662
-
1663
- return Editor;
1664
- })();
1665
-
1666
- addEventHandler(window, "load", function() {
1667
- var CodeMirror = window.frameElement.CodeMirror;
1668
- var e = CodeMirror.editor = new Editor(CodeMirror.options);
1669
- parent.setTimeout(method(CodeMirror, "init"), 0);
1670
- });