spiderfw 0.5.13 → 0.5.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (656) hide show
  1. data/CHANGELOG +11 -0
  2. data/Rakefile +7 -4
  3. data/VERSION +1 -1
  4. data/apps/admin/_init.rb +9 -0
  5. data/apps/admin/controllers/admin_controller.rb +12 -0
  6. data/apps/admin/widgets/dashboard_widget/dashboard_widget.rb +8 -0
  7. data/apps/app_server/app_server.rb +11 -1
  8. data/apps/app_server/config/options.rb +4 -0
  9. data/apps/app_server/controllers/app_server_controller.rb +47 -9
  10. data/apps/app_server/lib/app.rb +3 -1
  11. data/apps/app_server/lib/git_app.rb +16 -0
  12. data/apps/app_server/views/app_list.shtml +1 -1
  13. data/apps/cas_server/config/options.rb +4 -0
  14. data/apps/cas_server/controllers/mixins/cas_login_mixin.rb +192 -31
  15. data/apps/cas_server/lib/cas.rb +31 -9
  16. data/apps/core/auth/_init.rb +2 -2
  17. data/apps/core/auth/config/options.rb +6 -0
  18. data/apps/core/auth/controllers/login_controller.rb +1 -1
  19. data/apps/core/auth/controllers/mixins/auth_helper.rb +6 -1
  20. data/apps/core/auth/data/locale/it/LC_MESSAGES/spider_auth.mo +0 -0
  21. data/apps/core/auth/lib/login_authenticator.rb +12 -1
  22. data/apps/core/auth/lib/rbac.rb +25 -0
  23. data/apps/core/auth/models/group.rb +3 -8
  24. data/apps/core/auth/models/login_user.rb +11 -1
  25. data/apps/core/auth/models/mixins/rbac_provider.rb +60 -0
  26. data/apps/core/auth/po/it/spider_auth.po +19 -3
  27. data/apps/core/auth/po/spider_auth.pot +18 -2
  28. data/apps/core/auth/views/login.shtml +1 -0
  29. data/apps/core/components/_init.rb +2 -0
  30. data/apps/core/components/assets.rb +112 -0
  31. data/apps/core/components/po/it/spider_components.po +20 -6
  32. data/apps/core/components/po/spider_components.pot +16 -4
  33. data/apps/core/components/public/css/grid/1140.css +80 -0
  34. data/apps/core/components/public/css/grid/ie.css +43 -0
  35. data/apps/core/components/public/css/grid/layout.css +32 -0
  36. data/apps/core/components/public/css/grid/mobile.css +26 -0
  37. data/apps/core/components/public/css/grid/smallerscreen.css +3 -0
  38. data/apps/core/components/public/css/grid/typeimg.css +72 -0
  39. data/apps/core/components/public/js/jquery/{jquery-1.4.2.js → jquery-1.4.3.js} +1524 -881
  40. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/button_bg.png +0 -0
  41. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/datepicker.gif +0 -0
  42. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/icon_sprite.png +0 -0
  43. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/progress_bar.gif +0 -0
  44. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/slider_h_bg.gif +0 -0
  45. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/slider_handles.png +0 -0
  46. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/slider_v_bg.gif +0 -0
  47. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/tab_bg.gif +0 -0
  48. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/the_gradient.gif +0 -0
  49. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/ui-anim_basic_16x16.gif +0 -0
  50. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  51. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  52. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_flat_10_000000_40x100.png +0 -0
  53. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  54. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/css/Aristo/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  55. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  56. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  57. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  58. data/apps/core/components/public/js/jquery/{jquery-ui/css/smoothness → jquery-ui-1.8.4/css/Aristo}/images/ui-icons_222222_256x240.png +0 -0
  59. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-icons_228ef1_256x240.png +0 -0
  60. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-icons_ef8c08_256x240.png +0 -0
  61. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-icons_ffd27a_256x240.png +0 -0
  62. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness → jquery-ui-1.8.4/css/Aristo}/images/ui-icons_ffffff_256x240.png +0 -0
  63. data/apps/core/components/public/js/jquery/{jquery-ui/css/ui-lightness/jquery-ui-1.7.2.custom.css → jquery-ui-1.8.4/css/Aristo/jquery-ui.custom.css} +249 -135
  64. data/apps/core/components/public/js/jquery/{jquery-ui → jquery-ui-1.8.4}/development-bundle/AUTHORS.txt +2 -2
  65. data/apps/core/components/public/js/jquery/{jquery-ui → jquery-ui-1.8.4}/development-bundle/GPL-LICENSE.txt +0 -0
  66. data/apps/core/components/public/js/jquery/{jquery-ui → jquery-ui-1.8.4}/development-bundle/MIT-LICENSE.txt +1 -1
  67. data/apps/core/components/public/js/jquery/{jquery-ui → jquery-ui-1.8.4}/development-bundle/ui/i18n/jquery-ui-i18n.js +516 -111
  68. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +23 -0
  69. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-ar.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js} +6 -2
  70. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +23 -0
  71. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-bg.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js} +6 -2
  72. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
  73. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-ca.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js} +7 -3
  74. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-cs.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js} +6 -2
  75. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-da.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-da.js} +6 -2
  76. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-de.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-de.js} +6 -2
  77. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-el.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-el.js} +6 -2
  78. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
  79. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-eo.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js} +6 -2
  80. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-es.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-es.js} +7 -3
  81. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +23 -0
  82. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
  83. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-fa.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js} +6 -2
  84. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-fi.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js} +6 -2
  85. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
  86. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
  87. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-fr.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js} +7 -3
  88. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-he.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-he.js} +6 -2
  89. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-hr.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js} +8 -4
  90. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-hu.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js} +8 -4
  91. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-hy.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js} +6 -2
  92. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-id.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-id.js} +6 -2
  93. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-is.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-is.js} +6 -2
  94. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-it.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-it.js} +10 -6
  95. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-ja.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js} +5 -2
  96. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-ko.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js} +6 -2
  97. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-lt.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js} +6 -2
  98. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-lv.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js} +6 -2
  99. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-ms.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js} +6 -2
  100. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-nl.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js} +6 -2
  101. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-no.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-no.js} +6 -2
  102. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-pl.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js} +7 -3
  103. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-pt-BR.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js} +9 -5
  104. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-ro.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js} +7 -3
  105. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-ru.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js} +6 -2
  106. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-sk.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js} +6 -2
  107. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-sl.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js} +6 -2
  108. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-sq.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js} +6 -2
  109. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-sr-SR.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js} +6 -2
  110. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-sr.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js} +6 -2
  111. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-sv.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js} +6 -2
  112. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
  113. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-th.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-th.js} +6 -2
  114. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-tr.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js} +6 -2
  115. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-uk.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js} +10 -12
  116. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
  117. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-zh-CN.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js} +6 -2
  118. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
  119. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/i18n/ui.datepicker-zh-TW.js → jquery-ui-1.8.4/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js} +6 -2
  120. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.blind.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.blind.js} +6 -6
  121. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.bounce.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.bounce.js} +6 -6
  122. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.clip.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.clip.js} +6 -6
  123. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.core.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.core.js} +390 -221
  124. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.drop.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.drop.js} +6 -6
  125. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.explode.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.explode.js} +6 -6
  126. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.fold.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.fold.js} +6 -6
  127. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.effects.highlight.js +50 -0
  128. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.effects.pulsate.js +51 -0
  129. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.scale.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.scale.js} +29 -31
  130. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.shake.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.shake.js} +6 -6
  131. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.slide.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.slide.js} +6 -6
  132. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/effects.transfer.js → jquery-ui-1.8.4/development-bundle/ui/jquery.effects.transfer.js} +6 -6
  133. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.accordion.js +598 -0
  134. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.autocomplete.js +550 -0
  135. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.button.js +365 -0
  136. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.core.js +281 -0
  137. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/ui.datepicker.js → jquery-ui-1.8.4/development-bundle/ui/jquery.ui.datepicker.js} +343 -247
  138. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.dialog.js +827 -0
  139. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/ui.draggable.js → jquery-ui-1.8.4/development-bundle/ui/jquery.ui.draggable.js} +107 -76
  140. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/ui.droppable.js → jquery-ui-1.8.4/development-bundle/ui/jquery.ui.droppable.js} +48 -45
  141. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.mouse.js +151 -0
  142. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.position.js +233 -0
  143. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.progressbar.js +94 -0
  144. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/ui.resizable.js → jquery-ui-1.8.4/development-bundle/ui/jquery.ui.resizable.js} +73 -61
  145. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/ui.selectable.js → jquery-ui-1.8.4/development-bundle/ui/jquery.ui.selectable.js} +42 -33
  146. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.slider.js +680 -0
  147. data/apps/core/components/public/js/jquery/{jquery-ui/development-bundle/ui/ui.sortable.js → jquery-ui-1.8.4/development-bundle/ui/jquery.ui.sortable.js} +136 -84
  148. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.tabs.js +757 -0
  149. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/ui/jquery.ui.widget.js +237 -0
  150. data/apps/core/components/public/js/jquery/jquery-ui-1.8.4/development-bundle/version.txt +1 -0
  151. data/apps/core/components/public/js/jquery/patches/jquery-ui/jquery.ui.autocomplete-001.patch +17 -0
  152. data/apps/core/components/public/js/jquery/plugins/jquery.datalink.js +258 -0
  153. data/apps/core/components/public/js/jquery/plugins/jquery.json.js +178 -0
  154. data/apps/core/components/public/js/plugins/sortable.js +96 -72
  155. data/apps/core/components/public/js/spider.js +108 -50
  156. data/apps/core/components/public/js/utils.i18n.json +1 -0
  157. data/apps/core/components/public/js/utils.js +27 -0
  158. data/apps/core/components/widgets/admin/admin.rb +1 -1
  159. data/apps/core/components/widgets/admin/admin.shtml +1 -0
  160. data/apps/core/components/widgets/crud/crud.rb +6 -2
  161. data/apps/core/components/widgets/crud/crud.shtml +1 -0
  162. data/apps/core/components/widgets/list/list.rb +1 -1
  163. data/apps/core/components/widgets/list/list.shtml +2 -2
  164. data/apps/core/components/widgets/search_table/search_table.shtml +1 -1
  165. data/apps/core/components/widgets/switcher/switcher.rb +5 -1
  166. data/apps/core/components/widgets/table/table.rb +18 -3
  167. data/apps/core/components/widgets/table/table.shtml +1 -1
  168. data/apps/core/components/widgets/tabs/tabs.rb +0 -1
  169. data/apps/core/forms/_init.rb +3 -1
  170. data/apps/core/forms/public/ckeditor/adapters/jquery.js +6 -0
  171. data/apps/core/forms/public/ckeditor/ckeditor.js +137 -0
  172. data/apps/core/forms/public/ckeditor/images/spacer.gif +0 -0
  173. data/apps/core/forms/public/ckeditor/lang/_languages.js +6 -0
  174. data/apps/core/forms/public/ckeditor/lang/_translationstatus.txt +60 -0
  175. data/apps/core/forms/public/ckeditor/lang/af.js +6 -0
  176. data/apps/core/forms/public/ckeditor/lang/ar.js +6 -0
  177. data/apps/core/forms/public/ckeditor/lang/bg.js +6 -0
  178. data/apps/core/forms/public/ckeditor/lang/bn.js +6 -0
  179. data/apps/core/forms/public/ckeditor/lang/bs.js +6 -0
  180. data/apps/core/forms/public/ckeditor/lang/ca.js +6 -0
  181. data/apps/core/forms/public/ckeditor/lang/cs.js +6 -0
  182. data/apps/core/forms/public/ckeditor/lang/cy.js +6 -0
  183. data/apps/core/forms/public/ckeditor/lang/da.js +6 -0
  184. data/apps/core/forms/public/ckeditor/lang/de.js +6 -0
  185. data/apps/core/forms/public/ckeditor/lang/el.js +6 -0
  186. data/apps/core/forms/public/ckeditor/lang/en-au.js +6 -0
  187. data/apps/core/forms/public/ckeditor/lang/en-ca.js +6 -0
  188. data/apps/core/forms/public/ckeditor/lang/en-gb.js +6 -0
  189. data/apps/core/forms/public/ckeditor/lang/en.js +6 -0
  190. data/apps/core/forms/public/ckeditor/lang/eo.js +6 -0
  191. data/apps/core/forms/public/ckeditor/lang/es.js +6 -0
  192. data/apps/core/forms/public/ckeditor/lang/et.js +6 -0
  193. data/apps/core/forms/public/ckeditor/lang/eu.js +6 -0
  194. data/apps/core/forms/public/ckeditor/lang/fa.js +6 -0
  195. data/apps/core/forms/public/ckeditor/lang/fi.js +6 -0
  196. data/apps/core/forms/public/ckeditor/lang/fo.js +6 -0
  197. data/apps/core/forms/public/ckeditor/lang/fr-ca.js +6 -0
  198. data/apps/core/forms/public/ckeditor/lang/fr.js +6 -0
  199. data/apps/core/forms/public/ckeditor/lang/gl.js +6 -0
  200. data/apps/core/forms/public/ckeditor/lang/gu.js +6 -0
  201. data/apps/core/forms/public/ckeditor/lang/he.js +6 -0
  202. data/apps/core/forms/public/ckeditor/lang/hi.js +6 -0
  203. data/apps/core/forms/public/ckeditor/lang/hr.js +6 -0
  204. data/apps/core/forms/public/ckeditor/lang/hu.js +6 -0
  205. data/apps/core/forms/public/ckeditor/lang/is.js +6 -0
  206. data/apps/core/forms/public/ckeditor/lang/it.js +6 -0
  207. data/apps/core/forms/public/ckeditor/lang/ja.js +6 -0
  208. data/apps/core/forms/public/ckeditor/lang/km.js +6 -0
  209. data/apps/core/forms/public/ckeditor/lang/ko.js +6 -0
  210. data/apps/core/forms/public/ckeditor/lang/lt.js +6 -0
  211. data/apps/core/forms/public/ckeditor/lang/lv.js +6 -0
  212. data/apps/core/forms/public/ckeditor/lang/mn.js +6 -0
  213. data/apps/core/forms/public/ckeditor/lang/ms.js +6 -0
  214. data/apps/core/forms/public/ckeditor/lang/nb.js +6 -0
  215. data/apps/core/forms/public/ckeditor/lang/nl.js +6 -0
  216. data/apps/core/forms/public/ckeditor/lang/no.js +6 -0
  217. data/apps/core/forms/public/ckeditor/lang/pl.js +6 -0
  218. data/apps/core/forms/public/ckeditor/lang/pt-br.js +6 -0
  219. data/apps/core/forms/public/ckeditor/lang/pt.js +6 -0
  220. data/apps/core/forms/public/ckeditor/lang/ro.js +6 -0
  221. data/apps/core/forms/public/ckeditor/lang/ru.js +6 -0
  222. data/apps/core/forms/public/ckeditor/lang/sk.js +6 -0
  223. data/apps/core/forms/public/ckeditor/lang/sl.js +6 -0
  224. data/apps/core/forms/public/ckeditor/lang/sr-latn.js +6 -0
  225. data/apps/core/forms/public/ckeditor/lang/sr.js +6 -0
  226. data/apps/core/forms/public/ckeditor/lang/sv.js +6 -0
  227. data/apps/core/forms/public/ckeditor/lang/th.js +6 -0
  228. data/apps/core/forms/public/ckeditor/lang/tr.js +6 -0
  229. data/apps/core/forms/public/ckeditor/lang/uk.js +6 -0
  230. data/apps/core/forms/public/ckeditor/lang/vi.js +6 -0
  231. data/apps/core/forms/public/ckeditor/lang/zh-cn.js +6 -0
  232. data/apps/core/forms/public/ckeditor/lang/zh.js +6 -0
  233. data/apps/core/forms/public/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -0
  234. data/apps/core/forms/public/ckeditor/plugins/a11yhelp/lang/en.js +6 -0
  235. data/apps/core/forms/public/ckeditor/plugins/a11yhelp/lang/he.js +6 -0
  236. data/apps/core/forms/public/ckeditor/plugins/about/dialogs/about.js +6 -0
  237. data/apps/core/forms/public/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  238. data/apps/core/forms/public/ckeditor/plugins/autogrow/plugin.js +6 -0
  239. data/apps/core/forms/public/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
  240. data/apps/core/forms/public/ckeditor/plugins/colordialog/dialogs/colordialog.js +7 -0
  241. data/apps/core/forms/public/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  242. data/apps/core/forms/public/ckeditor/plugins/div/dialogs/div.js +8 -0
  243. data/apps/core/forms/public/ckeditor/plugins/find/dialogs/find.js +9 -0
  244. data/apps/core/forms/public/ckeditor/plugins/flash/dialogs/flash.js +9 -0
  245. data/apps/core/forms/public/ckeditor/plugins/flash/images/placeholder.png +0 -0
  246. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/button.js +6 -0
  247. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
  248. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/form.js +6 -0
  249. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
  250. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/radio.js +6 -0
  251. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/select.js +9 -0
  252. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
  253. data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/textfield.js +7 -0
  254. data/apps/core/forms/public/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  255. data/apps/core/forms/public/ckeditor/plugins/iframedialog/plugin.js +6 -0
  256. data/apps/core/forms/public/ckeditor/plugins/image/dialogs/image.js +13 -0
  257. data/apps/core/forms/public/ckeditor/plugins/link/dialogs/anchor.js +6 -0
  258. data/apps/core/forms/public/ckeditor/plugins/link/dialogs/link.js +11 -0
  259. data/apps/core/forms/public/ckeditor/plugins/link/images/anchor.gif +0 -0
  260. data/apps/core/forms/public/ckeditor/plugins/liststyle/dialogs/liststyle.js +6 -0
  261. data/apps/core/forms/public/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  262. data/apps/core/forms/public/ckeditor/plugins/pastefromword/filter/default.js +10 -0
  263. data/apps/core/forms/public/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
  264. data/apps/core/forms/public/ckeditor/plugins/scayt/dialogs/options.js +8 -0
  265. data/apps/core/forms/public/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
  266. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  267. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  268. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  269. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  270. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  271. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  272. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  273. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  274. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  275. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  276. data/apps/core/forms/public/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  277. data/apps/core/forms/public/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
  278. data/apps/core/forms/public/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  279. data/apps/core/forms/public/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  280. data/apps/core/forms/public/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  281. data/apps/core/forms/public/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  282. data/apps/core/forms/public/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  283. data/apps/core/forms/public/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  284. data/apps/core/forms/public/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  285. data/apps/core/forms/public/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  286. data/apps/core/forms/public/ckeditor/plugins/smiley/images/heart.gif +0 -0
  287. data/apps/core/forms/public/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  288. data/apps/core/forms/public/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  289. data/apps/core/forms/public/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  290. data/apps/core/forms/public/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  291. data/apps/core/forms/public/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  292. data/apps/core/forms/public/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  293. data/apps/core/forms/public/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  294. data/apps/core/forms/public/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  295. data/apps/core/forms/public/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  296. data/apps/core/forms/public/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  297. data/apps/core/forms/public/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  298. data/apps/core/forms/public/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  299. data/apps/core/forms/public/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
  300. data/apps/core/forms/public/ckeditor/plugins/styles/styles/default.js +6 -0
  301. data/apps/core/forms/public/ckeditor/plugins/table/dialogs/table.js +9 -0
  302. data/apps/core/forms/public/ckeditor/plugins/tableresize/plugin.js +7 -0
  303. data/apps/core/forms/public/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
  304. data/apps/core/forms/public/ckeditor/plugins/templates/dialogs/templates.js +7 -0
  305. data/apps/core/forms/public/ckeditor/plugins/templates/templates/default.js +6 -0
  306. data/apps/core/forms/public/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  307. data/apps/core/forms/public/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  308. data/apps/core/forms/public/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  309. data/apps/core/forms/public/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
  310. data/apps/core/forms/public/ckeditor/plugins/uicolor/lang/en.js +6 -0
  311. data/apps/core/forms/public/ckeditor/plugins/uicolor/lang/he.js +6 -0
  312. data/apps/core/forms/public/ckeditor/plugins/uicolor/plugin.js +6 -0
  313. data/apps/core/forms/public/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  314. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  315. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  316. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  317. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  318. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
  319. data/apps/core/forms/public/ckeditor/plugins/uicolor/yui/yui.js +76 -0
  320. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
  321. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
  322. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
  323. data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
  324. data/apps/core/forms/public/ckeditor/skins/kama/dialog.css +9 -0
  325. data/apps/core/forms/public/ckeditor/skins/kama/editor.css +12 -0
  326. data/apps/core/forms/public/ckeditor/skins/kama/icons.png +0 -0
  327. data/apps/core/forms/public/ckeditor/skins/kama/icons_rtl.png +0 -0
  328. data/apps/core/forms/public/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  329. data/apps/core/forms/public/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  330. data/apps/core/forms/public/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  331. data/apps/core/forms/public/ckeditor/skins/kama/images/mini.gif +0 -0
  332. data/apps/core/forms/public/ckeditor/skins/kama/images/noimage.png +0 -0
  333. data/apps/core/forms/public/ckeditor/skins/kama/images/sprites.png +0 -0
  334. data/apps/core/forms/public/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  335. data/apps/core/forms/public/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  336. data/apps/core/forms/public/ckeditor/skins/kama/skin.js +7 -0
  337. data/apps/core/forms/public/ckeditor/skins/kama/templates.css +6 -0
  338. data/apps/core/forms/public/ckeditor/themes/default/theme.js +8 -0
  339. data/apps/core/forms/public/css/form.css +3 -0
  340. data/apps/core/forms/public/file_input.js +1 -1
  341. data/apps/core/forms/public/html_area.js +55 -0
  342. data/apps/core/forms/public/search_select.js +46 -19
  343. data/apps/core/forms/public/select.js +11 -5
  344. data/apps/core/forms/widgets/form/form.rb +22 -6
  345. data/apps/core/forms/widgets/form/form.shtml +2 -0
  346. data/apps/core/forms/widgets/inputs/date_time/date_time.rb +6 -1
  347. data/apps/core/forms/widgets/inputs/date_time/date_time.shtml +1 -0
  348. data/apps/core/forms/widgets/inputs/html_area/html_area.rb +51 -0
  349. data/apps/core/forms/widgets/inputs/html_area/html_area.shtml +13 -0
  350. data/apps/core/forms/widgets/inputs/search_select/search_select.rb +8 -10
  351. data/apps/core/forms/widgets/inputs/search_select/search_select.shtml +7 -7
  352. data/apps/core/forms/widgets/inputs/select/select.rb +15 -9
  353. data/apps/core/forms/widgets/inputs/select/select.shtml +1 -1
  354. data/apps/core/forms/widgets/inputs/time_span/time_span.rb +42 -0
  355. data/apps/core/forms/widgets/inputs/time_span/time_span.shtml +8 -0
  356. data/apps/master/_init.rb +18 -0
  357. data/apps/master/cmd.rb +57 -0
  358. data/apps/master/config/options.rb +6 -0
  359. data/apps/master/controllers/login_controller.rb +22 -0
  360. data/apps/master/controllers/master_controller.rb +261 -10
  361. data/apps/master/controllers/scout_controller.rb +121 -0
  362. data/apps/master/controllers/servant_controller.rb +16 -0
  363. data/apps/master/data/locale/it/LC_MESSAGES/spider_master.mo +0 -0
  364. data/apps/master/lib/resource.rb +7 -0
  365. data/apps/master/lib/resources/db_resource.rb +7 -0
  366. data/apps/master/lib/scout_plugin.rb +89 -0
  367. data/apps/master/lib/site_type.rb +24 -0
  368. data/apps/master/master.rb +40 -0
  369. data/apps/master/models/admin.rb +35 -0
  370. data/apps/master/models/command.rb +17 -0
  371. data/apps/master/models/customer.rb +20 -1
  372. data/apps/master/models/resource.rb +1 -0
  373. data/apps/master/models/scout_alert.rb +30 -0
  374. data/apps/master/models/scout_average.rb +23 -0
  375. data/apps/master/models/scout_error.rb +30 -0
  376. data/apps/master/models/scout_plugin_info.rb +11 -0
  377. data/apps/master/models/scout_plugin_instance.rb +303 -0
  378. data/apps/master/models/scout_plugin_trigger.rb +285 -0
  379. data/apps/master/models/scout_report.rb +31 -0
  380. data/apps/master/models/scout_report_field.rb +26 -0
  381. data/apps/master/models/servant.rb +82 -6
  382. data/apps/master/plugins/resources/apache/apache.rb +9 -0
  383. data/apps/master/plugins/resources/mysql/mysql.rb +45 -0
  384. data/apps/master/plugins/site_types/spider/spider.rb +11 -0
  385. data/apps/master/po/it/spider_master.po +352 -0
  386. data/apps/master/po/spider_master.pot +331 -0
  387. data/apps/master/public/css/img/web.png +0 -0
  388. data/apps/master/public/css/login.css +51 -0
  389. data/apps/master/public/css/master.css +290 -0
  390. data/apps/master/public/css/reset.css +23 -0
  391. data/apps/master/public/js/charts.js +84 -0
  392. data/apps/master/public/js/master.js +3 -0
  393. data/apps/master/templates/email/alert.html.erb +14 -0
  394. data/apps/master/templates/email/alert.text.erb +4 -0
  395. data/apps/master/views/admin.layout.shtml +14 -0
  396. data/apps/master/views/admin.shtml +5 -0
  397. data/apps/master/views/customer.shtml +37 -14
  398. data/apps/master/views/customers.shtml +9 -7
  399. data/apps/master/views/login.layout.shtml +13 -0
  400. data/apps/master/views/master.layout.shtml +26 -3
  401. data/apps/master/views/plugin_data.shtml +30 -0
  402. data/apps/master/views/plugin_edit.shtml +41 -0
  403. data/apps/master/views/plugin_instance.shtml +43 -0
  404. data/apps/master/views/servant.shtml +74 -0
  405. data/apps/master/views/servants.shtml +4 -0
  406. data/apps/master/views/site.shtml +3 -0
  407. data/apps/master/views/site_edit.shtml +17 -0
  408. data/apps/master/views/trigger_edit.shtml +100 -0
  409. data/apps/messenger/_init.rb +27 -1
  410. data/apps/messenger/backends/email/smtp.rb +76 -0
  411. data/apps/messenger/backends/sms/smstools.rb +46 -0
  412. data/apps/messenger/config/options.rb +28 -2
  413. data/apps/messenger/controllers/mixins/messenger_helper.rb +9 -5
  414. data/apps/messenger/lib/email_backend.rb +14 -0
  415. data/apps/messenger/lib/sms_backend.rb +14 -0
  416. data/apps/messenger/messenger.rb +32 -41
  417. data/apps/messenger/models/email.rb +2 -0
  418. data/apps/messenger/models/message.rb +37 -15
  419. data/apps/messenger/models/sms.rb +15 -0
  420. data/apps/servant/bin/spider-servant.rb +2 -1
  421. data/apps/servant/cmd.rb +62 -0
  422. data/apps/servant/controllers/servant_controller.rb +12 -0
  423. data/apps/servant/lib/resource.rb +3 -0
  424. data/apps/servant/lib/resources/db/mysql.rb +4 -0
  425. data/apps/servant/lib/resources/db.rb +1 -0
  426. data/apps/servant/lib/servant.rb +9 -3
  427. data/apps/worker/cmd.rb +1 -1
  428. data/apps/worker/models/job.rb +5 -2
  429. data/apps/worker/worker.rb +7 -5
  430. data/blueprints/install/config.ru +0 -1
  431. data/data/locale/it/LC_MESSAGES/spider.mo +0 -0
  432. data/lib/spiderfw/app.rb +77 -5
  433. data/lib/spiderfw/cache/template_cache.rb +15 -5
  434. data/lib/spiderfw/cmd/cmd.rb +2 -0
  435. data/lib/spiderfw/cmd/commands/app.rb +159 -0
  436. data/lib/spiderfw/cmd/commands/config.rb +16 -0
  437. data/lib/spiderfw/cmd/commands/content.rb +1 -1
  438. data/lib/spiderfw/cmd/commands/create.rb +13 -0
  439. data/lib/spiderfw/cmd/commands/model.rb +5 -1
  440. data/lib/spiderfw/cmd/commands/setup.rb +44 -10
  441. data/lib/spiderfw/cmd/commands/webserver.rb +15 -1
  442. data/lib/spiderfw/config/configuration.rb +19 -2
  443. data/lib/spiderfw/config/configuration_editor.rb +197 -0
  444. data/lib/spiderfw/config/options/spider.rb +48 -22
  445. data/lib/spiderfw/{static_content.rb → content_utils.rb} +23 -1
  446. data/lib/spiderfw/controller/controller.rb +8 -5
  447. data/lib/spiderfw/controller/controller_mixin.rb +39 -3
  448. data/lib/spiderfw/controller/cookies.rb +0 -3
  449. data/lib/spiderfw/controller/dispatcher.rb +1 -1
  450. data/lib/spiderfw/controller/first_responder.rb +1 -0
  451. data/lib/spiderfw/controller/home_controller.rb +10 -1
  452. data/lib/spiderfw/controller/http_controller.rb +105 -6
  453. data/lib/spiderfw/controller/mixins/http_mixin.rb +0 -1
  454. data/lib/spiderfw/controller/mixins/static_content.rb +35 -12
  455. data/lib/spiderfw/controller/mixins/visual.rb +125 -72
  456. data/lib/spiderfw/controller/request.rb +13 -1
  457. data/lib/spiderfw/controller/response.rb +14 -8
  458. data/lib/spiderfw/controller/scene.rb +5 -0
  459. data/lib/spiderfw/controller/session/file_session.rb +1 -1
  460. data/lib/spiderfw/create.rb +17 -0
  461. data/lib/spiderfw/home.rb +20 -8
  462. data/lib/spiderfw/http/adapters/mongrel.rb +24 -15
  463. data/lib/spiderfw/http/adapters/rack.rb +8 -3
  464. data/lib/spiderfw/http/adapters/webrick.rb +1 -0
  465. data/lib/spiderfw/http/server.rb +1 -0
  466. data/lib/spiderfw/i18n/cldr.rb +8 -1
  467. data/lib/spiderfw/i18n/i18n.rb +3 -4
  468. data/lib/spiderfw/i18n/javascript_parser.rb +54 -0
  469. data/lib/spiderfw/model/base_model.rb +550 -120
  470. data/lib/spiderfw/model/condition.rb +11 -2
  471. data/lib/spiderfw/model/data_type.rb +1 -1
  472. data/lib/spiderfw/model/datatypes/bool.rb +3 -1
  473. data/lib/spiderfw/model/datatypes/decimal.rb +4 -0
  474. data/lib/spiderfw/model/datatypes/password.rb +1 -0
  475. data/lib/spiderfw/model/datatypes/time_span.rb +26 -0
  476. data/lib/spiderfw/model/datatypes.rb +1 -0
  477. data/lib/spiderfw/model/element.rb +29 -28
  478. data/lib/spiderfw/model/extended_models/managed.rb +15 -0
  479. data/lib/spiderfw/model/identity_mapper.rb +89 -10
  480. data/lib/spiderfw/model/inline_model.rb +20 -2
  481. data/lib/spiderfw/model/integrated_element.rb +41 -0
  482. data/lib/spiderfw/model/mappers/db_mapper.rb +31 -27
  483. data/lib/spiderfw/model/mappers/hash_mapper.rb +9 -2
  484. data/lib/spiderfw/model/mappers/mapper.rb +105 -50
  485. data/lib/spiderfw/model/mappers/vfs/flat_file.rb +1 -1
  486. data/lib/spiderfw/model/mixins/state_machine.rb +6 -0
  487. data/lib/spiderfw/model/mixins/tree.rb +20 -4
  488. data/lib/spiderfw/model/mixins/versioned.rb +440 -67
  489. data/lib/spiderfw/model/model.rb +78 -17
  490. data/lib/spiderfw/model/model_hash.rb +2 -2
  491. data/lib/spiderfw/model/query.rb +17 -0
  492. data/lib/spiderfw/model/query_set.rb +86 -14
  493. data/lib/spiderfw/model/storage/base_storage.rb +1 -0
  494. data/lib/spiderfw/model/storage/db/adapters/mysql.rb +44 -15
  495. data/lib/spiderfw/model/storage/db/adapters/oracle.rb +8 -7
  496. data/lib/spiderfw/model/storage/db/connectors/oci8.rb +7 -1
  497. data/lib/spiderfw/model/storage/db/db_schema.rb +13 -0
  498. data/lib/spiderfw/model/storage/db/db_storage.rb +25 -5
  499. data/lib/spiderfw/model/unit_of_work.rb +96 -15
  500. data/lib/spiderfw/requires.rb +9 -1
  501. data/lib/spiderfw/setup/app_manager.rb +81 -0
  502. data/lib/spiderfw/setup/app_server_client.rb +59 -0
  503. data/lib/spiderfw/setup/setup_task.rb +68 -6
  504. data/lib/spiderfw/setup/spider_setup_wizard.rb +375 -0
  505. data/lib/spiderfw/site.rb +53 -0
  506. data/lib/spiderfw/templates/blocks/attr_if.rb +2 -2
  507. data/lib/spiderfw/templates/blocks/comment.rb +7 -2
  508. data/lib/spiderfw/templates/blocks/each.rb +1 -1
  509. data/lib/spiderfw/templates/blocks/html.rb +7 -0
  510. data/lib/spiderfw/templates/blocks/layout_assets.rb +20 -0
  511. data/lib/spiderfw/templates/blocks/output.rb +18 -0
  512. data/lib/spiderfw/templates/blocks/text.rb +17 -19
  513. data/lib/spiderfw/templates/blocks/widget.rb +4 -2
  514. data/lib/spiderfw/templates/layout.rb +269 -2
  515. data/lib/spiderfw/templates/template.rb +279 -46
  516. data/lib/spiderfw/templates/template_blocks.rb +31 -37
  517. data/lib/spiderfw/utils/events/event_source.rb +54 -0
  518. data/lib/spiderfw/utils/json.rb +39 -0
  519. data/lib/spiderfw/utils/logger.rb +186 -23
  520. data/lib/spiderfw/utils/memory.rb +30 -0
  521. data/lib/spiderfw/utils/monkey/date_time.rb +32 -2
  522. data/lib/spiderfw/utils/monkey/module.rb +16 -0
  523. data/lib/spiderfw/utils/monkey/object.rb +8 -0
  524. data/lib/spiderfw/utils/ordered_hash.rb +148 -0
  525. data/lib/spiderfw/utils/profiling.rb +36 -0
  526. data/lib/spiderfw/utils/secure_random.rb +223 -0
  527. data/lib/spiderfw/version.rb +1 -1
  528. data/lib/spiderfw/widget/widget.rb +143 -51
  529. data/lib/spiderfw/widget/widget_plugin.rb +13 -2
  530. data/lib/spiderfw.rb +117 -35
  531. data/spider.gemspec +1 -1
  532. metadata +506 -255
  533. data/apps/core/components/public/js/jquery/jquery-1.3.2.js +0 -4376
  534. data/apps/core/components/public/js/jquery/jquery-1.4.2-min.js +0 -154
  535. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  536. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  537. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  538. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  539. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  540. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  541. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  542. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  543. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
  544. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
  545. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  546. data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/jquery-ui-1.7.2.custom.css +0 -406
  547. data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  548. data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  549. data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  550. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/ChangeLog.txt +0 -20
  551. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/META.json +0 -32
  552. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.js +0 -100
  553. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.min.js +0 -10
  554. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.pack.js +0 -10
  555. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/test/index.html +0 -197
  556. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.js +0 -97
  557. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.min.js +0 -10
  558. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.pack.js +0 -10
  559. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.zip +0 -0
  560. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/jsdiff/jsdiff.js +0 -159
  561. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/qunit/testrunner.js +0 -780
  562. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/qunit/testsuite.css +0 -120
  563. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/simulate/jquery.simulate.js +0 -152
  564. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/jquery-1.3.2.js +0 -4376
  565. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  566. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  567. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  568. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  569. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  570. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  571. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  572. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  573. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  574. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  575. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  576. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  577. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  578. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.accordion.css +0 -9
  579. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.all.css +0 -2
  580. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.base.css +0 -8
  581. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.core.css +0 -37
  582. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.datepicker.css +0 -62
  583. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.dialog.css +0 -13
  584. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.progressbar.css +0 -4
  585. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.resizable.css +0 -13
  586. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.slider.css +0 -17
  587. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.tabs.css +0 -11
  588. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.theme.css +0 -245
  589. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  590. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  591. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  592. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  593. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  594. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  595. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  596. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  597. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  598. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  599. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  600. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  601. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  602. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  603. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/jquery-ui-1.7.2.custom.css +0 -406
  604. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.accordion.css +0 -9
  605. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.all.css +0 -2
  606. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.base.css +0 -8
  607. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.core.css +0 -37
  608. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.datepicker.css +0 -62
  609. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.dialog.css +0 -13
  610. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.progressbar.css +0 -4
  611. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.resizable.css +0 -13
  612. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.slider.css +0 -17
  613. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.tabs.css +0 -11
  614. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.theme.css +0 -247
  615. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.highlight.js +0 -48
  616. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.pulsate.js +0 -56
  617. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/jquery-ui-1.7.2.custom.js +0 -9133
  618. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.accordion.js +0 -477
  619. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.core.js +0 -519
  620. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.dialog.js +0 -671
  621. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.progressbar.js +0 -116
  622. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.slider.js +0 -558
  623. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.tabs.js +0 -685
  624. data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/version.txt +0 -1
  625. data/apps/core/components/public/js/jquery/jquery-ui/index.html +0 -367
  626. data/apps/core/components/public/js/jquery/jquery-ui/js/jquery-1.3.2.min.js +0 -19
  627. data/apps/core/components/public/js/jquery/jquery-ui/js/jquery-ui-1.7.2.custom.min.js +0 -298
  628. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/changelog.txt +0 -27
  629. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.css +0 -48
  630. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.js +0 -808
  631. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.min.js +0 -13
  632. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.pack.js +0 -12
  633. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.ajaxQueue.js +0 -116
  634. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.bgiframe.min.js +0 -10
  635. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.js +0 -3558
  636. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/thickbox-compressed.js +0 -10
  637. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/thickbox.css +0 -163
  638. data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/todo +0 -166
  639. data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.1.0.js +0 -187
  640. data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.1.0.min.js +0 -1
  641. data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.spider.1.0.js +0 -193
  642. data/apps/core/forms/widgets/inputs/subform/subform.rb +0 -10
  643. data/apps/core/forms/widgets/inputs/subform/subform.shtml +0 -5
  644. data/apps/hippo/_init.rb +0 -10
  645. data/apps/hippo/models/mixins/hippo_struct.rb +0 -226
  646. data/apps/hippo/models/security_group.rb +0 -21
  647. data/apps/hippo/models/security_user.rb +0 -29
  648. data/apps/hippo/script/converti_strutture.rb +0 -335
  649. data/data/locale/it/LC_MESSAGES/cms.mo +0 -0
  650. data/data/locale/it/LC_MESSAGES/spider_files.mo +0 -0
  651. data/data/locale/it/LC_MESSAGES/spider_images.mo +0 -0
  652. data/lib/spiderfw/utils/monkey/hpricot_compat.rb +0 -0
  653. data/lib/spiderfw/utils/setup_task.rb +0 -35
  654. data/lib/spiderfw/utils/test_case.rb +0 -24
  655. /data/apps/core/components/public/js/jquery/{jquery-ui/css/smoothness → jquery-ui-1.8.4/css/Aristo}/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  656. /data/apps/{messenger/lib/backends/email/smtp.rb → servant/lib/commands/discovery.rb} +0 -0
@@ -1,13 +0,0 @@
1
- /*
2
- * jQuery Autocomplete plugin 1.1
3
- *
4
- * Copyright (c) 2009 Jörn Zaefferer
5
- *
6
- * Dual licensed under the MIT and GPL licenses:
7
- * http://www.opensource.org/licenses/mit-license.php
8
- * http://www.gnu.org/licenses/gpl.html
9
- *
10
- * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
11
- */;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value;};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options);});},result:function(handler){return this.bind("result",handler);},search:function(handler){return this.trigger("search",[handler]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(options){return this.trigger("setOptions",[options]);},unautocomplete:function(){return this.trigger("unautocomplete");}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=false;return false;}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){hasFocus=1;lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev();}else{onChange(0,true);}break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next();}else{onChange(0,true);}break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp();}else{onChange(0,true);}break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown();}else{onChange(0,true);}break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=true;return false;}break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break;}}).focus(function(){hasFocus++;}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults();}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true);}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break;}}}if(typeof fn=="function")fn(result);else $input.trigger("result",result&&[result.data,result.value]);}$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback);});}).bind("flushCache",function(){cache.flush();}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data"in arguments[1])cache.populate();}).bind("unautocomplete",function(){select.unbind();$input.unbind();$(input.form).unbind(".autocomplete");});function selectCurrent(){var selected=select.selected();if(!selected)return false;var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){var seperator=options.multipleSeparator.length;var cursorAt=$(input).selection().start;var wordAt,progress=0;$.each(words,function(i,word){progress+=word.length;if(cursorAt<=progress){wordAt=i;return false;}progress+=seperator;});words[wordAt]=v;v=words.join(options.multipleSeparator);}v+=options.multipleSeparator;}$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true;}function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return;}var currentValue=$input.val();if(!skipPrevCheck&&currentValue==previousValue)return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase)currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow);}else{stopLoading();select.hide();}};function trimWords(value){if(!value)return[""];if(!options.multiple)return[$.trim(value)];return $.map(value.split(options.multipleSeparator),function(word){return $.trim(value).length?$.trim(word):null;});}function lastWord(value){if(!options.multiple)return value;var words=trimWords(value);if(words.length==1)return words[0];var cursorAt=$(input).selection().start;if(cursorAt==value.length){words=trimWords(value)}else{words=trimWords(value.replace(value.substring(cursorAt),""));}return words[words.length-1];}function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$(input).selection(previousValue.length,previousValue.length+sValue.length);}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""));}else{$input.val("");$input.trigger("result",null);}}});}};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show();}else{hideResultsNow();}};function request(term,success,failure){if(!options.matchCase)term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data);}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param;});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed);}});}else{select.emptyList();failure(term);}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]};}}return parsed;};function stopLoading(){$input.removeClass(options.loadingClass);};};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase)s=s.toLowerCase();var i=s.indexOf(sub);if(options.matchContains=="word"){i=s.toLowerCase().search("\\b"+sub.toLowerCase());}if(i==-1)return false;return i==0||options.matchContains;};function add(q,value){if(length>options.cacheLength){flush();}if(!data[q]){length++;}data[q]=value;}function populate(){if(!options.data)return false;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false)continue;var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar])stMatchSets[firstChar]=[];var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row);}};$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value);});}setTimeout(populate,25);function flush(){data={};length=0;}return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length)return null;if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x);}});}}return csub;}else
12
- if(data[q]){return data[q];}else
13
- if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x;}});return csub;}}}return null;}};};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit)return;element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul/>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE);}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return false;}).mousedown(function(){config.mouseDownOnSelect=true;}).mouseup(function(){config.mouseDownOnSelect=false;});if(options.width>0)element.css("width",options.width);needsInit=false;}function target(event){var element=event.target;while(element&&element.tagName!="LI")element=element.parentNode;if(!element)return[];return element;}function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight;});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight());}else if(offset<list.scrollTop()){list.scrollTop(offset);}}};function movePosition(step){active+=step;if(active<0){active=listItems.size()-1;}else if(active>=listItems.size()){active=0;}}function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available;}function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i])continue;var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false)continue;var li=$("<li/>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i]);}listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0;}if($.fn.bgiframe)list.bgiframe();}return{display:function(d,q){init();data=d;term=q;fillList();},next:function(){moveSelect(1);},prev:function(){moveSelect(-1);},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active);}else{moveSelect(-8);}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active);}else{moveSelect(8);}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1;},visible:function(){return element&&element.is(":visible");},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0]);},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight;});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")));}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data");},emptyList:function(){list&&list.empty();},unbind:function(){element&&element.remove();}};};$.fn.selection=function(start,end){if(start!==undefined){return this.each(function(){if(this.createTextRange){var selRange=this.createTextRange();if(end===undefined||start==end){selRange.move("character",start);selRange.select();}else{selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}}else if(this.setSelectionRange){this.setSelectionRange(start,end);}else if(this.selectionStart){this.selectionStart=start;this.selectionEnd=end;}});}var field=this[0];if(field.createTextRange){var range=document.selection.createRange(),orig=field.value,teststring="<->",textLength=range.text.length;range.text=teststring;var caretAt=field.value.indexOf(teststring);field.value=orig;this.selection(caretAt,caretAt+textLength);return{start:caretAt,end:caretAt+textLength}}else if(field.selectionStart!==undefined){return{start:field.selectionStart,end:field.selectionEnd}}};})(jQuery);
@@ -1,12 +0,0 @@
1
- /*
2
- * jQuery Autocomplete plugin 1.1
3
- *
4
- * Copyright (c) 2009 Jörn Zaefferer
5
- *
6
- * Dual licensed under the MIT and GPL licenses:
7
- * http://www.opensource.org/licenses/mit-license.php
8
- * http://www.gnu.org/licenses/gpl.html
9
- *
10
- * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
11
- */
12
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(3($){$.2e.1u({19:3(b,d){5 c=W b=="1B";d=$.1u({},$.M.1T,{Y:c?b:P,y:c?P:b,1J:c?$.M.1T.1J:10,X:d&&!d.1D?10:48},d);d.1y=d.1y||3(a){6 a};d.1v=d.1v||d.1R;6 A.I(3(){1M $.M(A,d)})},L:3(a){6 A.11("L",a)},1k:3(a){6 A.14("1k",[a])},2b:3(){6 A.14("2b")},28:3(a){6 A.14("28",[a])},24:3(){6 A.14("24")}});$.M=3(o,r){5 t={2Y:38,2S:40,2N:46,2I:9,2E:13,2B:27,2x:3I,2v:33,2p:34,2n:8};5 u=$(o).3r("19","3o").Q(r.2Q);5 p;5 m="";5 n=$.M.3c(r);5 s=0;5 k;5 h={1F:C};5 l=$.M.32(r,o,1Z,h);5 j;$.1Y.2X&&$(o.2U).11("45.19",3(){4(j){j=C;6 C}});u.11(($.1Y.2X?"43":"42")+".19",3(a){s=1;k=a.2M;3V(a.2M){O t.2Y:a.1d();4(l.N()){l.30()}w{12(0,D)}R;O t.2S:a.1d();4(l.N()){l.2D()}w{12(0,D)}R;O t.2v:a.1d();4(l.N()){l.2C()}w{12(0,D)}R;O t.2p:a.1d();4(l.N()){l.2A()}w{12(0,D)}R;O r.17&&$.1c(r.S)==","&&t.2x:O t.2I:O t.2E:4(1Z()){a.1d();j=D;6 C}R;O t.2B:l.Z();R;3J:1P(p);p=1O(12,r.1J);R}}).2t(3(){s++}).3E(3(){s=0;4(!h.1F){2r()}}).2q(3(){4(s++>1&&!l.N()){12(0,D)}}).11("1k",3(){5 c=(1r.7>1)?1r[1]:P;3 1N(q,a){5 b;4(a&&a.7){16(5 i=0;i<a.7;i++){4(a[i].L.J()==q.J()){b=a[i];R}}}4(W c=="3")c(b);w u.14("L",b&&[b.y,b.F])}$.I(15(u.K()),3(i,a){21(a,1N,1N)})}).11("2b",3(){n.1o()}).11("28",3(){$.1u(r,1r[1]);4("y"2h 1r[1])n.1e()}).11("24",3(){l.1p();u.1p();$(o.2U).1p(".19")});3 1Z(){5 e=l.2g();4(!e)6 C;5 v=e.L;m=v;4(r.17){5 b=15(u.K());4(b.7>1){5 f=r.S.7;5 c=$(o).18().1I;5 d,1H=0;$.I(b,3(i,a){1H+=a.7;4(c<=1H){d=i;6 C}1H+=f});b[d]=v;v=b.3f(r.S)}v+=r.S}u.K(v);1l();u.14("L",[e.y,e.F]);6 D}3 12(b,c){4(k==t.2N){l.Z();6}5 a=u.K();4(!c&&a==m)6;m=a;a=1m(a);4(a.7>=r.29){u.Q(r.26);4(!r.1s)a=a.J();21(a,3a,1l)}w{1q();l.Z()}};3 15(b){4(!b)6[""];4(!r.17)6[$.1c(b)];6 $.4h(b.23(r.S),3(a){6 $.1c(b).7?$.1c(a):P})}3 1m(a){4(!r.17)6 a;5 c=15(a);4(c.7==1)6 c[0];5 b=$(o).18().1I;4(b==a.7){c=15(a)}w{c=15(a.22(a.37(b),""))}6 c[c.7-1]}3 1G(q,a){4(r.1G&&(1m(u.K()).J()==q.J())&&k!=t.2n){u.K(u.K()+a.37(1m(m).7));$(o).18(m.7,m.7+a.7)}};3 2r(){1P(p);p=1O(1l,4g)};3 1l(){5 c=l.N();l.Z();1P(p);1q();4(r.36){u.1k(3(a){4(!a){4(r.17){5 b=15(u.K()).1n(0,-1);u.K(b.3f(r.S)+(b.7?r.S:""))}w{u.K("");u.14("L",P)}}})}};3 3a(q,a){4(a&&a.7&&s){1q();l.35(a,q);1G(q,a[0].F);l.20()}w{1l()}};3 21(f,d,g){4(!r.1s)f=f.J();5 e=n.31(f);4(e&&e.7){d(f,e)}w 4((W r.Y=="1B")&&(r.Y.7>0)){5 c={4f:+1M 4e()};$.I(r.2Z,3(a,b){c[a]=W b=="3"?b():b});$.4d({4c:"4b",4a:"19"+o.49,2V:r.2V,Y:r.Y,y:$.1u({q:1m(f),47:r.X},c),44:3(a){5 b=r.1A&&r.1A(a)||1A(a);n.1i(f,b);d(f,b)}})}w{l.2T();g(f)}};3 1A(c){5 d=[];5 b=c.23("\\n");16(5 i=0;i<b.7;i++){5 a=$.1c(b[i]);4(a){a=a.23("|");d[d.7]={y:a,F:a[0],L:r.1z&&r.1z(a,a[0])||a[0]}}}6 d};3 1q(){u.1h(r.26)}};$.M.1T={2Q:"41",2P:"3Z",26:"3Y",29:1,1J:3W,1s:C,1f:D,1w:C,1g:10,X:3U,36:C,2Z:{},1X:D,1R:3(a){6 a[0]},1v:P,1G:C,E:0,17:C,S:", ",1y:3(b,a){6 b.22(1M 3T("(?![^&;]+;)(?!<[^<>]*)("+a.22(/([\\^\\$\\(\\)\\[\\]\\{\\}\\*\\.\\+\\?\\|\\\\])/2K,"\\\\$1")+")(?![^<>]*>)(?![^&;]+;)","2K"),"<2J>$1</2J>")},1D:D,1E:3S};$.M.3c=3(g){5 h={};5 j=0;3 1f(s,a){4(!g.1s)s=s.J();5 i=s.2H(a);4(g.1w=="3R"){i=s.J().1k("\\\\b"+a.J())}4(i==-1)6 C;6 i==0||g.1w};3 1i(q,a){4(j>g.1g){1o()}4(!h[q]){j++}h[q]=a}3 1e(){4(!g.y)6 C;5 f={},2G=0;4(!g.Y)g.1g=1;f[""]=[];16(5 i=0,2F=g.y.7;i<2F;i++){5 c=g.y[i];c=(W c=="1B")?[c]:c;5 d=g.1v(c,i+1,g.y.7);4(d===C)1V;5 e=d.3Q(0).J();4(!f[e])f[e]=[];5 b={F:d,y:c,L:g.1z&&g.1z(c)||d};f[e].1U(b);4(2G++<g.X){f[""].1U(b)}};$.I(f,3(i,a){g.1g++;1i(i,a)})}1O(1e,25);3 1o(){h={};j=0}6{1o:1o,1i:1i,1e:1e,31:3(q){4(!g.1g||!j)6 P;4(!g.Y&&g.1w){5 a=[];16(5 k 2h h){4(k.7>0){5 c=h[k];$.I(c,3(i,x){4(1f(x.F,q)){a.1U(x)}})}}6 a}w 4(h[q]){6 h[q]}w 4(g.1f){16(5 i=q.7-1;i>=g.29;i--){5 c=h[q.3O(0,i)];4(c){5 a=[];$.I(c,3(i,x){4(1f(x.F,q)){a[a.7]=x}});6 a}}}6 P}}};$.M.32=3(e,g,f,k){5 h={H:"3N"};5 j,z=-1,y,1t="",1S=D,G,B;3 2y(){4(!1S)6;G=$("<3M/>").Z().Q(e.2P).T("3L","3K").1Q(1K.2w);B=$("<3H/>").1Q(G).3G(3(a){4(U(a).2u&&U(a).2u.3F()==\'2s\'){z=$("1L",B).1h(h.H).3D(U(a));$(U(a)).Q(h.H)}}).2q(3(a){$(U(a)).Q(h.H);f();g.2t();6 C}).3C(3(){k.1F=D}).3B(3(){k.1F=C});4(e.E>0)G.T("E",e.E);1S=C}3 U(a){5 b=a.U;3A(b&&b.3z!="2s")b=b.3y;4(!b)6[];6 b}3 V(b){j.1n(z,z+1).1h(h.H);2o(b);5 a=j.1n(z,z+1).Q(h.H);4(e.1D){5 c=0;j.1n(0,z).I(3(){c+=A.1a});4((c+a[0].1a-B.1b())>B[0].3x){B.1b(c+a[0].1a-B.3w())}w 4(c<B.1b()){B.1b(c)}}};3 2o(a){z+=a;4(z<0){z=j.1j()-1}w 4(z>=j.1j()){z=0}}3 2m(a){6 e.X&&e.X<a?e.X:a}3 2l(){B.2z();5 b=2m(y.7);16(5 i=0;i<b;i++){4(!y[i])1V;5 a=e.1R(y[i].y,i+1,b,y[i].F,1t);4(a===C)1V;5 c=$("<1L/>").3v(e.1y(a,1t)).Q(i%2==0?"3u":"3P").1Q(B)[0];$.y(c,"2k",y[i])}j=B.3t("1L");4(e.1X){j.1n(0,1).Q(h.H);z=0}4($.2e.2W)B.2W()}6{35:3(d,q){2y();y=d;1t=q;2l()},2D:3(){V(1)},30:3(){V(-1)},2C:3(){4(z!=0&&z-8<0){V(-z)}w{V(-8)}},2A:3(){4(z!=j.1j()-1&&z+8>j.1j()){V(j.1j()-1-z)}w{V(8)}},Z:3(){G&&G.Z();j&&j.1h(h.H);z=-1},N:3(){6 G&&G.3s(":N")},3q:3(){6 A.N()&&(j.2j("."+h.H)[0]||e.1X&&j[0])},20:3(){5 a=$(g).3p();G.T({E:W e.E=="1B"||e.E>0?e.E:$(g).E(),2i:a.2i+g.1a,1W:a.1W}).20();4(e.1D){B.1b(0);B.T({2L:e.1E,3n:\'3X\'});4($.1Y.3m&&W 1K.2w.3l.2L==="1x"){5 c=0;j.I(3(){c+=A.1a});5 b=c>e.1E;B.T(\'3k\',b?e.1E:c);4(!b){j.E(B.E()-2R(j.T("2O-1W"))-2R(j.T("2O-3j")))}}}},2g:3(){5 a=j&&j.2j("."+h.H).1h(h.H);6 a&&a.7&&$.y(a[0],"2k")},2T:3(){B&&B.2z()},1p:3(){G&&G.3i()}}};$.2e.18=3(b,f){4(b!==1x){6 A.I(3(){4(A.2d){5 a=A.2d();4(f===1x||b==f){a.4n("2c",b);a.3h()}w{a.4m(D);a.4l("2c",b);a.4k("2c",f);a.3h()}}w 4(A.3g){A.3g(b,f)}w 4(A.1C){A.1C=b;A.3e=f}})}5 c=A[0];4(c.2d){5 e=1K.18.4j(),3d=c.F,2a="<->",2f=e.3b.7;e.3b=2a;5 d=c.F.2H(2a);c.F=3d;A.18(d,d+2f);6{1I:d,39:d+2f}}w 4(c.1C!==1x){6{1I:c.1C,39:c.3e}}}})(4i);',62,272,'|||function|if|var|return|length|||||||||||||||||||||||||else||data|active|this|list|false|true|width|value|element|ACTIVE|each|toLowerCase|val|result|Autocompleter|visible|case|null|addClass|break|multipleSeparator|css|target|moveSelect|typeof|max|url|hide||bind|onChange||trigger|trimWords|for|multiple|selection|autocomplete|offsetHeight|scrollTop|trim|preventDefault|populate|matchSubset|cacheLength|removeClass|add|size|search|hideResultsNow|lastWord|slice|flush|unbind|stopLoading|arguments|matchCase|term|extend|formatMatch|matchContains|undefined|highlight|formatResult|parse|string|selectionStart|scroll|scrollHeight|mouseDownOnSelect|autoFill|progress|start|delay|document|li|new|findValueCallback|setTimeout|clearTimeout|appendTo|formatItem|needsInit|defaults|push|continue|left|selectFirst|browser|selectCurrent|show|request|replace|split|unautocomplete||loadingClass||setOptions|minChars|teststring|flushCache|character|createTextRange|fn|textLength|selected|in|top|filter|ac_data|fillList|limitNumberOfItems|BACKSPACE|movePosition|PAGEDOWN|click|hideResults|LI|focus|nodeName|PAGEUP|body|COMMA|init|empty|pageDown|ESC|pageUp|next|RETURN|ol|nullData|indexOf|TAB|strong|gi|maxHeight|keyCode|DEL|padding|resultsClass|inputClass|parseInt|DOWN|emptyList|form|dataType|bgiframe|opera|UP|extraParams|prev|load|Select|||display|mustMatch|substring||end|receiveData|text|Cache|orig|selectionEnd|join|setSelectionRange|select|remove|right|height|style|msie|overflow|off|offset|current|attr|is|find|ac_even|html|innerHeight|clientHeight|parentNode|tagName|while|mouseup|mousedown|index|blur|toUpperCase|mouseover|ul|188|default|absolute|position|div|ac_over|substr|ac_odd|charAt|word|180|RegExp|100|switch|400|auto|ac_loading|ac_results||ac_input|keydown|keypress|success|submit||limit|150|name|port|abort|mode|ajax|Date|timestamp|200|map|jQuery|createRange|moveEnd|moveStart|collapse|move'.split('|'),0,{}))
@@ -1,116 +0,0 @@
1
- /**
2
- * Ajax Queue Plugin
3
- *
4
- * Homepage: http://jquery.com/plugins/project/ajaxqueue
5
- * Documentation: http://docs.jquery.com/AjaxQueue
6
- */
7
-
8
- /**
9
-
10
- <script>
11
- $(function(){
12
- jQuery.ajaxQueue({
13
- url: "test.php",
14
- success: function(html){ jQuery("ul").append(html); }
15
- });
16
- jQuery.ajaxQueue({
17
- url: "test.php",
18
- success: function(html){ jQuery("ul").append(html); }
19
- });
20
- jQuery.ajaxSync({
21
- url: "test.php",
22
- success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); }
23
- });
24
- jQuery.ajaxSync({
25
- url: "test.php",
26
- success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); }
27
- });
28
- });
29
- </script>
30
- <ul style="position: absolute; top: 5px; right: 5px;"></ul>
31
-
32
- */
33
- /*
34
- * Queued Ajax requests.
35
- * A new Ajax request won't be started until the previous queued
36
- * request has finished.
37
- */
38
-
39
- /*
40
- * Synced Ajax requests.
41
- * The Ajax request will happen as soon as you call this method, but
42
- * the callbacks (success/error/complete) won't fire until all previous
43
- * synced requests have been completed.
44
- */
45
-
46
-
47
- (function($) {
48
-
49
- var ajax = $.ajax;
50
-
51
- var pendingRequests = {};
52
-
53
- var synced = [];
54
- var syncedData = [];
55
-
56
- $.ajax = function(settings) {
57
- // create settings for compatibility with ajaxSetup
58
- settings = jQuery.extend(settings, jQuery.extend({}, jQuery.ajaxSettings, settings));
59
-
60
- var port = settings.port;
61
-
62
- switch(settings.mode) {
63
- case "abort":
64
- if ( pendingRequests[port] ) {
65
- pendingRequests[port].abort();
66
- }
67
- return pendingRequests[port] = ajax.apply(this, arguments);
68
- case "queue":
69
- var _old = settings.complete;
70
- settings.complete = function(){
71
- if ( _old )
72
- _old.apply( this, arguments );
73
- jQuery([ajax]).dequeue("ajax" + port );;
74
- };
75
-
76
- jQuery([ ajax ]).queue("ajax" + port, function(){
77
- ajax( settings );
78
- });
79
- return;
80
- case "sync":
81
- var pos = synced.length;
82
-
83
- synced[ pos ] = {
84
- error: settings.error,
85
- success: settings.success,
86
- complete: settings.complete,
87
- done: false
88
- };
89
-
90
- syncedData[ pos ] = {
91
- error: [],
92
- success: [],
93
- complete: []
94
- };
95
-
96
- settings.error = function(){ syncedData[ pos ].error = arguments; };
97
- settings.success = function(){ syncedData[ pos ].success = arguments; };
98
- settings.complete = function(){
99
- syncedData[ pos ].complete = arguments;
100
- synced[ pos ].done = true;
101
-
102
- if ( pos == 0 || !synced[ pos-1 ] )
103
- for ( var i = pos; i < synced.length && synced[i].done; i++ ) {
104
- if ( synced[i].error ) synced[i].error.apply( jQuery, syncedData[i].error );
105
- if ( synced[i].success ) synced[i].success.apply( jQuery, syncedData[i].success );
106
- if ( synced[i].complete ) synced[i].complete.apply( jQuery, syncedData[i].complete );
107
-
108
- synced[i] = null;
109
- syncedData[i] = null;
110
- }
111
- };
112
- }
113
- return ajax.apply(this, arguments);
114
- };
115
-
116
- })(jQuery);
@@ -1,10 +0,0 @@
1
- /* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
2
- * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
3
- * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
4
- *
5
- * $LastChangedDate: 2007-07-22 01:45:56 +0200 (Son, 22 Jul 2007) $
6
- * $Rev: 2447 $
7
- *
8
- * Version 2.1.1
9
- */
10
- (function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);