rules_engine 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. data/VERSION +1 -1
  2. data/app/views/re_history/_index_update.html.erb +7 -5
  3. data/app/views/re_history/_show.html.erb +1 -1
  4. data/app/views/re_plans/_change.html.erb +1 -1
  5. data/app/views/re_plans/_index.html.erb +1 -1
  6. data/app/views/re_plans/_show.html.erb +1 -1
  7. data/app/views/re_publications/_show_update.html.erb +6 -5
  8. data/generators/manifests/templates/public/stylesheets/rules_engine/rules_engine.css +12 -4
  9. data/generators/manifests/templates/public/stylesheets/rules_engine/screen.css +7 -1
  10. data/lib/rules_engine/cache.rb +1 -1
  11. data/lib/rules_engine/discovery.rb +1 -1
  12. data/spec/lib/rules_engine/cache_spec.rb +2 -4
  13. data/spec/rails_3_0_0_root/Gemfile +1 -1
  14. data/spec/rails_3_0_0_root/Gemfile.lock +18 -16
  15. data/spec/rails_3_0_0_root/config/initializers/rules_engine.rb +17 -0
  16. data/spec/rails_3_0_0_root/db/migrate/20100308225008_create_rules_engine.rb +100 -0
  17. data/spec/rails_3_0_0_root/doc/README.rules_engine +170 -0
  18. data/spec/rails_3_0_0_root/doc/README.rules_engine_view +97 -0
  19. data/spec/rails_3_0_0_root/log/test.log +22192 -0
  20. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery-1.4.2.min.js +154 -0
  21. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery.autocomplete.pack.js +13 -0
  22. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery.blockUI.js +486 -0
  23. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/jquery.fancybox-1.3.1.js +1077 -0
  24. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_history_index.js +43 -0
  25. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_history_show.js +18 -0
  26. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_plan_change.js +117 -0
  27. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_plan_new.js +23 -0
  28. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_plan_preview.js +18 -0
  29. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_publication_show.js +39 -0
  30. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_view.js +148 -0
  31. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_add.js +115 -0
  32. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_change.js +204 -0
  33. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_new.js +23 -0
  34. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_plan.js +38 -0
  35. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_preview.js +18 -0
  36. data/spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_show.js +22 -0
  37. data/spec/rails_3_0_0_root/public/stylesheets/application.css +1 -0
  38. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/ie.css +35 -0
  39. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/icons/cross.png +0 -0
  40. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/icons/key.png +0 -0
  41. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/icons/tick.png +0 -0
  42. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/readme.txt +32 -0
  43. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/buttons/screen.css +97 -0
  44. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/fancy-type/readme.txt +14 -0
  45. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/fancy-type/screen.css +71 -0
  46. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/doc.png +0 -0
  47. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/email.png +0 -0
  48. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/external.png +0 -0
  49. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/feed.png +0 -0
  50. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/im.png +0 -0
  51. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  52. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/visited.png +0 -0
  53. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/icons/xls.png +0 -0
  54. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/readme.txt +18 -0
  55. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/link-icons/screen.css +40 -0
  56. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/rtl/readme.txt +10 -0
  57. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/plugins/rtl/screen.css +110 -0
  58. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/print.css +29 -0
  59. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/screen.css +258 -0
  60. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/forms.css +65 -0
  61. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/grid.css +280 -0
  62. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/grid.png +0 -0
  63. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/ie.css +76 -0
  64. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/print.css +85 -0
  65. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/reset.css +45 -0
  66. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/blueprint/src/typography.css +106 -0
  67. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/blank.gif +0 -0
  68. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_close.png +0 -0
  69. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_loading.png +0 -0
  70. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_nav_left.png +0 -0
  71. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_nav_right.png +0 -0
  72. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_e.png +0 -0
  73. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_n.png +0 -0
  74. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_ne.png +0 -0
  75. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_nw.png +0 -0
  76. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_s.png +0 -0
  77. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_se.png +0 -0
  78. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_sw.png +0 -0
  79. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_shadow_w.png +0 -0
  80. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_left.png +0 -0
  81. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_main.png +0 -0
  82. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_over.png +0 -0
  83. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancy_title_right.png +0 -0
  84. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancybox-x.png +0 -0
  85. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancybox-y.png +0 -0
  86. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/fancybox.png +0 -0
  87. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/fancybox/jquery.fancybox-1.3.1.css +363 -0
  88. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_box/shadowbox.png +0 -0
  89. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_box/whitebox.jpg +0 -0
  90. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/checked-off.gif +0 -0
  91. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/checked-on.gif +0 -0
  92. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/icon-add.png +0 -0
  93. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/icon-delete.png +0 -0
  94. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/list-add.png +0 -0
  95. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/list-remove.png +0 -0
  96. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/list-select.png +0 -0
  97. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-blue-left.gif +0 -0
  98. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-blue-right.gif +0 -0
  99. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-gray-left.gif +0 -0
  100. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-gray-right.gif +0 -0
  101. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-green-left.gif +0 -0
  102. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-green-right.gif +0 -0
  103. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-orange-left.gif +0 -0
  104. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-orange-right.gif +0 -0
  105. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-red-left.gif +0 -0
  106. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_button/oval-red-right.gif +0 -0
  107. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_error/re-alert-close.png +0 -0
  108. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/re_view_navigate/breadcrumb.png +0 -0
  109. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-next-disabled-14.png +0 -0
  110. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-next-enabled-14.png +0 -0
  111. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-prev-disabled-14.png +0 -0
  112. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/list-prev-enabled-14.png +0 -0
  113. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/loading.gif +0 -0
  114. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-changed-18.png +0 -0
  115. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-changed-25.png +0 -0
  116. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-draft-18.png +0 -0
  117. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-draft-25.png +0 -0
  118. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-error-14.png +0 -0
  119. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-info-14.png +0 -0
  120. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-published-18.png +0 -0
  121. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-published-25.png +0 -0
  122. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-success-14.png +0 -0
  123. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-valid-14.png +0 -0
  124. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-valid-18.png +0 -0
  125. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-verify-14.png +0 -0
  126. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-verify-18.png +0 -0
  127. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_common/status-verify-25.png +0 -0
  128. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/error-14.png +0 -0
  129. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/info-14.png +0 -0
  130. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/list-25.png +0 -0
  131. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_history/success-14.png +0 -0
  132. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/alert-25.png +0 -0
  133. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/change-25.png +0 -0
  134. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/copy-25.png +0 -0
  135. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/delete-25.png +0 -0
  136. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/edit-25.png +0 -0
  137. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/list-25.png +0 -0
  138. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/new-25.png +0 -0
  139. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/preview-18.png +0 -0
  140. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/publish-25.png +0 -0
  141. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/revert-25.png +0 -0
  142. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/show-25.png +0 -0
  143. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/title-plural.png +0 -0
  144. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_plan/title-single.png +0 -0
  145. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_publication/show-25.png +0 -0
  146. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/add-14.png +0 -0
  147. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/alert-25.png +0 -0
  148. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/destroy-25.png +0 -0
  149. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/edit-25.png +0 -0
  150. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/error-25.png +0 -0
  151. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/help-14.png +0 -0
  152. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/help-25.png +0 -0
  153. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/icon-ad-25.png +0 -0
  154. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-down-25.png +0 -0
  155. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-down-off-25.png +0 -0
  156. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-up-25.png +0 -0
  157. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/move-up-off-25.png +0 -0
  158. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/new-25.png +0 -0
  159. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/next-down-25.png +0 -0
  160. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/next-right-18.png +0 -0
  161. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/show-25.png +0 -0
  162. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/start-pipeline-18.png +0 -0
  163. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/stop-failure-18.png +0 -0
  164. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/stop-success-18.png +0 -0
  165. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/title-plural.png +0 -0
  166. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_rule/title-single.png +0 -0
  167. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/add-14.png +0 -0
  168. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/add-25.png +0 -0
  169. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/add-off-14.png +0 -0
  170. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/alert-25.png +0 -0
  171. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/change-18.png +0 -0
  172. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/change-25.png +0 -0
  173. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/copy-25.png +0 -0
  174. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/delete-25.png +0 -0
  175. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/edit-25.png +0 -0
  176. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/is-default-18.png +0 -0
  177. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/list-25.png +0 -0
  178. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/make-default-18.png +0 -0
  179. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/make-default-off-18.png +0 -0
  180. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/new-25.png +0 -0
  181. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/plan-25.png +0 -0
  182. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/preview-18.png +0 -0
  183. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/remove-18.png +0 -0
  184. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/show-18.png +0 -0
  185. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/show-25.png +0 -0
  186. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/title-plural.png +0 -0
  187. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/images/rules_engine/re_workflow/title-single.png +0 -0
  188. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/jquery.autocomplete.css +53 -0
  189. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/rules_engine.css +899 -0
  190. data/spec/rails_3_0_0_root/public/stylesheets/rules_engine/screen.css +738 -0
  191. data/tasks/rspec.rake +1 -0
  192. metadata +183 -8
@@ -0,0 +1,43 @@
1
+ re_history_list_get = function(page) {
2
+ var plan_id = $('.re-menu-history-list:first').attr('id').replace('re_menu_process_list_', '')
3
+
4
+ if (plan_id.length == 0 || plan_id == "0")
5
+ $.get('/re_history?page=' + page, null, null, 'script');
6
+ else
7
+ $.get('/re_plans/' + plan_id + '/history?page=' + page, null, null, 'script');
8
+ }
9
+
10
+ $(document).ready(function() {
11
+
12
+ re_history_list_get(1);
13
+
14
+ $('.re-xtra-history-next-enabled').live('click', function() {
15
+ var page = $(this).attr('href').replace('#', '')
16
+
17
+ $('#re_history_list').hide();
18
+ $('#re_history_list_pending').show();
19
+
20
+ re_history_list_get(page);
21
+ return false;
22
+ });
23
+
24
+ $('.re-xtra-history-next-disabled').live('click', function() {
25
+ return false;
26
+ });
27
+
28
+ $('.re-xtra-history-prev-enabled').live('click', function() {
29
+ var page = $(this).attr('href').replace('#', '')
30
+
31
+ $('#re_history_list').hide();
32
+ $('#re_history_list_pending').show();
33
+
34
+ re_history_list_get(page);
35
+ return false;
36
+ });
37
+
38
+ $('.re-xtra-history-prev-disabled').live('click', function() {
39
+ return false;
40
+ });
41
+ });
42
+
43
+
@@ -0,0 +1,18 @@
1
+ $(document).ready(function() {
2
+
3
+ $('a.re-xtra-history-show').live('click', function() {
4
+ var id = $(this).attr('href').replace('#', '')
5
+
6
+ $.re_block();
7
+ $.get('/re_history/' + id, null, null, 'script');
8
+ return false;
9
+ });
10
+
11
+ $("#re_history_show_close").live('click', function() {
12
+ $.fancybox.close();
13
+ return false;
14
+ });
15
+
16
+ });
17
+
18
+
@@ -0,0 +1,117 @@
1
+ re_plan_action_confirm = function(id, title, action) {
2
+ $('#re_plan_action_title').html(title);
3
+ $('#re_plan_action_content_code').html($('#re_plan_code').html());
4
+ $('#re_plan_action_content_title').html($('#re_plan_title').html());
5
+
6
+ $('#re_plan_action_ok').attr('href', '#re_plan_' + id + '_form');
7
+ $('#re_plan_action_ok').html("<span>" + action + "</span>")
8
+
9
+ $.fancybox({ href: '#re_plan_action_confirm'});
10
+ }
11
+
12
+ $(document).ready(function() {
13
+
14
+ $('a#re_plan_copy').live('click', function() {
15
+ var plan = $(this).attr('href').replace('#', '');
16
+
17
+ $.re_block();
18
+ $.get('/re_plans/' + plan + '/copy', null, null, 'script');
19
+ return false;
20
+ });
21
+
22
+ $("#re_plan_copy_cancel").live('click', function() {
23
+ $.fancybox.close();
24
+ return false;
25
+ });
26
+
27
+ $('#re_plan_copy_duplicate').live('click', function() {
28
+ $.re_block();
29
+ $.post($('#re_plan_copy_form').attr('action'), $('#re_plan_copy_form').serialize(), null, 'script');
30
+ return false;
31
+ });
32
+
33
+
34
+ $('a#re_plan_edit').live('click', function() {
35
+ var plan = $(this).attr('href').replace('#', '');
36
+
37
+ $.re_block();
38
+ $.get('/re_plans/' + plan + '/edit', null, null, 'script');
39
+ return false;
40
+ });
41
+
42
+ $("#re_plan_edit_cancel").live('click', function() {
43
+ $.fancybox.close();
44
+ return false;
45
+ });
46
+
47
+ $('#re_plan_edit_update').live('click', function() {
48
+ $.re_block();
49
+ $.post($('#re_plan_edit_form').attr('action'), $('#re_plan_edit_form').serialize(), null, 'script');
50
+ return false;
51
+ });
52
+
53
+ $('a#re_plan_publish').live('click', function() {
54
+ $('#re_plan_publish_warning').html('');
55
+ $('#re_plan_publish_form #tag').attr('value', '')
56
+ $('#re_plan_publish_tag').attr('value', '')
57
+ $('#re_plan_publish_tag').re_form_valid();
58
+ $('#re_plan_publish_tag').closest('#re_plan_publish_confirm').find('.form-error-message').remove();
59
+ $.fancybox({ 'href': '#re_plan_publish_confirm' });
60
+
61
+ return false;
62
+ });
63
+
64
+ $('a#re_plan_publish_with_errors').live('click', function() {
65
+ $('#re_plan_publish_warning').html('Warning! The plan you are publishing has errors!');
66
+ $('#re_plan_publish_form #tag').attr('value', '')
67
+ $('#re_plan_publish_tag').attr('value', '')
68
+ $('#re_plan_publish_tag').re_form_valid();
69
+ $('#re_plan_publish_tag').closest('#re_plan_publish_confirm').find('.form-error-message').remove();
70
+ $.fancybox({ 'href': '#re_plan_publish_confirm' });
71
+
72
+ return false;
73
+ });
74
+
75
+ $("#re_plan_publish_ok").live('click', function() {
76
+ var tag = $.trim($('#re_plan_publish_tag').attr('value'))
77
+ if (tag == null || tag.length == 0)
78
+ {
79
+ $('#re_plan_publish_tag').re_form_invalid();
80
+ $('#re_plan_publish_tag').after('<span class="form-error-message">Tag Required</span>');
81
+ }
82
+ else
83
+ {
84
+ $('#re_plan_publish_form #tag').attr('value', tag)
85
+ $.re_block();
86
+ $.post($('#re_plan_publish_form').attr('action'), $('#re_plan_publish_form').serialize(), null, 'script');
87
+ }
88
+ return false;
89
+ });
90
+
91
+
92
+ $('a#re_plan_revert').live('click', function() {
93
+ re_plan_action_confirm('revert', "Discard Plan Changed", "Discard Changes")
94
+ return false;
95
+ });
96
+
97
+ $('a#re_plan_delete').live('click', function() {
98
+ re_plan_action_confirm('delete', "Delete the Plan", "Delete Plan")
99
+ return false;
100
+ });
101
+
102
+ $("#re_plan_action_cancel").live('click', function() {
103
+ $.fancybox.close();
104
+ return false;
105
+ });
106
+
107
+ $('#re_plan_action_ok').live('click', function() {
108
+ var form_id = $(this).attr('href');
109
+
110
+ $.re_block();
111
+ $.post($(form_id).attr('action'), $(form_id).serialize(), null, 'script');
112
+ return false;
113
+ });
114
+
115
+ });
116
+
117
+
@@ -0,0 +1,23 @@
1
+ $(document).ready(function() {
2
+
3
+ $('a#re_plan_new').live('click', function() {
4
+ $.re_block();
5
+ $.get('/re_plans/new', null, null, 'script');
6
+ return false;
7
+ });
8
+
9
+
10
+ $("#re_plan_new_cancel").live('click', function() {
11
+ $.fancybox.close();
12
+ return false;
13
+ });
14
+
15
+ $('#re_plan_new_insert').live('click', function() {
16
+ $.re_block();
17
+ $.post($('#re_plan_new_form').attr('action'), $('#re_plan_new_form').serialize(), null, 'script');
18
+
19
+ return false;
20
+ });
21
+ });
22
+
23
+
@@ -0,0 +1,18 @@
1
+ $(document).ready(function() {
2
+
3
+ $('a.re-xtra-plan-preview-link').live('click', function() {
4
+ var id = $(this).attr('href').replace('#', '')
5
+
6
+ $.re_block();
7
+ $.get('/re_plans/' + id + '/preview', null, null, 'script');
8
+ return false;
9
+ });
10
+
11
+ $("#re_plan_preview_close").live('click', function() {
12
+ $.fancybox.close();
13
+ return false;
14
+ });
15
+
16
+ });
17
+
18
+
@@ -0,0 +1,39 @@
1
+ re_get_publication_show = function(page) {
2
+ var id = $('.re-menu-publication-show:first').attr('id').replace('re_menu_publication_show_', '')
3
+ $.get('/re_publications/' + id + '?page=' + page, null, null, 'script');
4
+ }
5
+
6
+
7
+ $(document).ready(function() {
8
+
9
+ re_get_publication_show(1);
10
+
11
+ $('.re-xtra-publication-next-enabled').live('click', function() {
12
+ var page = $(this).attr('href').replace('#', '')
13
+
14
+ $('#re_publication_show').hide();
15
+ $('#re_publication_show_pending').show();
16
+
17
+ re_get_publication_show(page);
18
+ return false;
19
+ });
20
+ $('.re-xtra-publication-next-disabled').live('click', function() {
21
+ return false;
22
+ });
23
+
24
+ $('.re-xtra-publication-prev-enabled').live('click', function() {
25
+ var page = $(this).attr('href').replace('#', '')
26
+
27
+ $('#re_publication_show').hide();
28
+ $('#re_publication_show_pending').show();
29
+
30
+ re_get_publication_show(page);
31
+ return false;
32
+ });
33
+ $('.re-xtra-publication-prev-disabled').live('click', function() {
34
+ return false;
35
+ });
36
+
37
+ });
38
+
39
+
@@ -0,0 +1,148 @@
1
+ // set the fancybox behaviour
2
+ $.extend($.fn.fancybox.defaults, {
3
+ hideOnOverlayClick : false,
4
+ overlayOpacity : 0.6,
5
+ onComplete : function() {
6
+ $(document).unbind('keydown.fb').bind('keydown.fb', function(e) {
7
+ if (e.keyCode == 27) {
8
+ e.preventDefault();
9
+ $.fancybox.close();
10
+
11
+ } else if (e.keyCode == 37) {
12
+ // e.preventDefault();
13
+ // $.fancybox.prev();
14
+
15
+ } else if (e.keyCode == 39) {
16
+ // e.preventDefault();
17
+ // $.fancybox.next();
18
+ }
19
+ });
20
+ }
21
+ });
22
+
23
+ jQuery.re_block = function(){
24
+ $.fancybox.showActivity();
25
+ $.blockUI({message: null});
26
+
27
+ var loading = $('#fancybox-loading')
28
+ loading.unbind('click')
29
+ }
30
+
31
+ jQuery.re_unblock = function(){
32
+ $.fancybox.hideActivity();
33
+ $.unblockUI();
34
+ }
35
+
36
+ jQuery.re_message = function(style, header, message) {
37
+ var $m = $('<div class="' + style + '"></div>');
38
+ $m.append('<strong>' + header + '</strong>');
39
+ if (message) $m.append(' : ' + message);
40
+ $m.append('<a class="re-alert-close" href="#">Close</a>');
41
+ if ($('#re_alert').is(':visible')) {
42
+ $('#re_alert').html($m);
43
+ }
44
+ else {
45
+ $('#re_alert').html($m);
46
+ $('#re_alert').slideDown('fast');
47
+ }
48
+
49
+ }
50
+
51
+ jQuery.re_error_message = function(message) {
52
+ jQuery.re_message('error', 'Error', message);
53
+ }
54
+ jQuery.re_success_message = function(message) {
55
+ jQuery.re_message('success', 'Success', message);
56
+ }
57
+ jQuery.re_notice_message = function(message) {
58
+ jQuery.re_message('notice', 'Notice', message);
59
+ }
60
+
61
+ // Form buttons
62
+ jQuery.fn.re_form_button = function() {
63
+
64
+ var $input = $(this).find('input');
65
+ if ($input.length == 0)
66
+ return;
67
+
68
+ var id = $input.attr('id');
69
+ var value = $input.attr('value');
70
+ var klass = $input.attr('class');
71
+
72
+ var $a = $('<a/>')
73
+ $a.addClass(klass);
74
+ $a.addClass('form-submit');
75
+ $a.attr('href', '#');
76
+ $a.attr('id', id);
77
+ $a.append('<span>' + value + "</span>");
78
+ $(this).html($a);
79
+ }
80
+
81
+ jQuery.fn.re_form_disable = function() {
82
+ $(this).attr('re-form-disabled', true);
83
+ $(this).parents('.re-form-field').addClass('re-form-disabled');
84
+ }
85
+
86
+ jQuery.fn.re_form_enable = function() {
87
+ $(this).removeAttr("re-form-disabled");
88
+ $(this).parents('.re-form-field').removeClass('re-form-disabled');
89
+ }
90
+
91
+ jQuery.fn.re_form_valid = function() {
92
+ var $parent = $(this).parents('.re-form-field')
93
+ $parent.find('.re-form-label-error').addClass('re-form-label').removeClass('re-form-label-error');
94
+ $parent.find('.re-form-data-error').addClass('re-form-data').removeClass('re-form-data-error');
95
+
96
+ // $(this).removeAttr("re-form-disabled");
97
+ // $(this).parents('.re-form-field').removeClass('re-form-disabled');
98
+ }
99
+ jQuery.fn.re_form_invalid = function() {
100
+ var $parent = $(this).parents('.re-form-field')
101
+ $parent.find('.re-form-label').addClass('re-form-label-error').removeClass('re-form-label');
102
+ $parent.find('.re-form-data').addClass('re-form-data-error').removeClass('re-form-data');
103
+
104
+ // $(this).removeAttr("re-form-disabled");
105
+ // $(this).parents('.re-form-field').removeClass('re-form-disabled');
106
+ }
107
+
108
+ jQuery.replace_new_record_ids = function(s){
109
+ var new_id = new Date().getTime();
110
+ return s.replace(/NEW_RECORD/g, new_id);
111
+ }
112
+
113
+ // document ready
114
+ $(document).ready(function() {
115
+ $('a.re-alert-close').live('click', function() {
116
+ $('#re_alert').slideUp('fast');
117
+ });
118
+
119
+ $('div.re-form-button').each(function() {
120
+ $(this).re_form_button();
121
+ });
122
+
123
+ $('a.form-submit').live('click', function() {
124
+ var $form = $(this).closest('form');
125
+ if ($form.length)
126
+ $form.submit();
127
+ });
128
+
129
+ // nested attributes wrap in a new_position_NAME
130
+ // and put the delete in the outermost div to be deleted so I can grab the parent and hide it
131
+ $('a.re-add-link').live('click', function() {
132
+ var value = eval('new_' + $(this).attr('id'))
133
+ var $new_content = $($.replace_new_record_ids(value))
134
+ $("#new_position_" + $(this).attr('id')).append($new_content);
135
+ $new_content.find('input').focus();
136
+ $.fancybox.resize();
137
+ });
138
+ $('a.re-remove-link').live('click', function() {
139
+ var id = $(this).attr('id').replace("_remove", "__delete");
140
+ $('input[id=' + id + ']').attr('value', '1');
141
+ $('input[id=' + id + ']').parent().hide();
142
+ $.fancybox.resize();
143
+ });
144
+
145
+ // used by fancybox to create fancy boxes ;)
146
+ $('body').append('<div id="re_content_frame" style="display:none"><div id="re_content"> </div></div>');
147
+ });
148
+
@@ -0,0 +1,115 @@
1
+ re_plan_workflow_add_update = function() {
2
+ $('a.re-menu-workflow-add-link').each(function() {
3
+ var workflow_id = $(this).attr('href').replace('#', '')
4
+
5
+ if ($('#re_workflow_remove_form_' + workflow_id).length > 0)
6
+ {
7
+ $(this).removeClass('re-menu-workflow-add-link');
8
+ $(this).addClass('re-menu-workflow-add-link-off');
9
+ }
10
+ })
11
+
12
+ $('a.re-menu-workflow-add-link-off').each(function() {
13
+ var workflow_id = $(this).attr('href').replace('#', '')
14
+
15
+ if ($('#re_workflow_remove_form_' + workflow_id).length == 0)
16
+ {
17
+ $(this).removeClass('re-menu-workflow-add-link-off');
18
+ $(this).addClass('re-menu-workflow-add-link');
19
+ }
20
+ })
21
+ }
22
+
23
+ $(document).ready(function() {
24
+ // NEW WORKFLOW
25
+ $('a#re_workflow_new').live('click', function() {
26
+ var plan_id = $(this).attr('href').replace('#', '');
27
+
28
+ if (plan_id == "0")
29
+ {
30
+ $.re_error_message('Plan Required')
31
+ return false;
32
+ }
33
+
34
+ $.re_block();
35
+ $.get('/re_plans/' + plan_id + '/workflows/new', null, null, 'script');
36
+
37
+ return false;
38
+ });
39
+
40
+ $("#re_workflow_new_cancel").live('click', function() {
41
+ $.fancybox.close();
42
+ return false;
43
+ });
44
+
45
+ $('#re_workflow_new_insert').live('click', function() {
46
+ $.re_block();
47
+ $.post($('#re_workflow_new_form').attr('action'), $('#re_workflow_new_form').serialize(), null, 'script');
48
+
49
+ return false;
50
+ });
51
+
52
+ // WORKFLOW ADD
53
+ $('a.re-menu-workflow-add-link').live('click', function() {
54
+ var workflow_id = $(this).attr('href').replace('#', '').split('|');
55
+ var plan_id = $('.re-menu-workflow-add:first').attr('id').replace('re_menu_workflow_add_', '')
56
+
57
+ if (plan_id == "0") {
58
+ $.re_error_message('Plan Required')
59
+ return false;
60
+ }
61
+
62
+ $.re_block();
63
+ $(this).removeClass('re-workflow-add');
64
+ $(this).addClass('re-workflow-add-off');
65
+
66
+ $.post('/re_plans/' + plan_id + '/workflows/' + workflow_id + '/add', $('#re_workflow_add_form_' + workflow_id).serialize(), null, 'script');
67
+ return false;
68
+ });
69
+
70
+ $('a.re-menu-workflow-add-link-off').live('click', function() {
71
+ return false;
72
+ });
73
+
74
+ // REMOVE WORKFLOW
75
+ $('a.re-list-workflow-remove').live('click', function() {
76
+ var values = $(this).attr('href').replace('#', '').split('|');
77
+
78
+ $('#re_workflow_remove_ok').attr('href', '#re_workflow_remove_form_' + values[1])
79
+ $.fancybox({ 'href': '#re_workflow_remove_confirm' });
80
+ return false;
81
+ });
82
+
83
+ $("#re_workflow_remove_cancel").live('click', function() {
84
+ $.fancybox.close();
85
+ return false;
86
+ });
87
+
88
+ $('#re_workflow_remove_ok').live('click', function() {
89
+ var form_id = $(this).attr('href');
90
+
91
+ $.re_block();
92
+ $.post($(form_id).attr('action'), $(form_id).serialize(), null, 'script');
93
+ return false;
94
+ });
95
+
96
+ // WORKFLOW DEFAULT
97
+ $('a.re-list-workflow-make-default').live('click', function() {
98
+ var values = $(this).attr('href').replace('#', '').split('|');
99
+
100
+ $.re_block();
101
+ $(this).removeClass('re-workflow-make-default');
102
+ $(this).addClass('re-workflow-make-default-off');
103
+
104
+ $.post($('#re_workflow_default_form_' + values[1]).attr('action'), $('#re_workflow_default_form_' + values[1]).serialize(), null, 'script');
105
+ return false;
106
+ });
107
+
108
+ $('a.re-list-workflow-make-default-off').live('click', function() {
109
+ return false;
110
+ });
111
+
112
+ // GET THE WORKFLOWS
113
+ $.get('/re_workflows/add', null, null, 'script');
114
+
115
+ });