compass-jquery-plugin 0.3.0.beta.22 → 0.3.0.beta.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1192) hide show
  1. data/README.textile +59 -17
  2. data/Rakefile +51 -51
  3. data/VERSION.yml +1 -1
  4. data/compass-jquery-plugin.gemspec +1132 -1049
  5. data/gem_tasks/dynatree.rake +76 -76
  6. data/gem_tasks/emulators.rake +57 -0
  7. data/gem_tasks/jqgrid.rake +118 -118
  8. data/gem_tasks/jqical.rake +85 -85
  9. data/gem_tasks/jqtools.rake +60 -0
  10. data/gem_tasks/jqtouch.rake +20 -40
  11. data/gem_tasks/jrails.rake +35 -25
  12. data/gem_tasks/jstree.rake +96 -95
  13. data/gem_tasks/mobile.rake +113 -0
  14. data/gem_tasks/ribbon.rake +77 -77
  15. data/gem_tasks/rubygems.rake +6 -6
  16. data/gem_tasks/secret_sauce.rake +63 -63
  17. data/lib/jquery.mobile.rb +33 -0
  18. data/lib/jquery.ui.rb +140 -140
  19. data/lib/jquery/emulators.rb +3 -0
  20. data/lib/jquery/jqical/helpers/ui_event_helper.rb +13 -13
  21. data/lib/jquery/jqtools.rb +2 -0
  22. data/lib/jquery/mobile.rb +3 -0
  23. data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +117 -117
  24. data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +225 -225
  25. data/templates/dynatree/config/initializers/dynatree.rb +4 -4
  26. data/templates/dynatree/{jquery.ui/dynatree.aero.scss → jquery/dynatree/aero.scss} +31 -31
  27. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbChecked.png +0 -0
  28. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbChecked_hover.png +0 -0
  29. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbIntermediate.png +0 -0
  30. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbIntermediate_hover.png +0 -0
  31. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbUnchecked.png +0 -0
  32. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/cbUnchecked_hover.png +0 -0
  33. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/collapsed.png +0 -0
  34. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/collapsed_hover.png +0 -0
  35. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/copy_here.png +0 -0
  36. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/customDoc1.png +0 -0
  37. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/customFolder1.png +0 -0
  38. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/doc_with_children.png +0 -0
  39. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/document.png +0 -0
  40. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_accept.png +0 -0
  41. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_here.png +0 -0
  42. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/drop_reject.png +0 -0
  43. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/empty.png +0 -0
  44. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/expanded.png +0 -0
  45. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/expanded_hover.png +0 -0
  46. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder.png +0 -0
  47. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_docs.png +0 -0
  48. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_images.png +0 -0
  49. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/folder_page.png +0 -0
  50. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltDoc.png +0 -0
  51. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltError.png +0 -0
  52. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/ltWait.gif +0 -0
  53. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/move_here.png +0 -0
  54. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbChecked.png +0 -0
  55. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbChecked_hover.png +0 -0
  56. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbIntermediate.png +0 -0
  57. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbIntermediate_hover.png +0 -0
  58. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbUnchecked.png +0 -0
  59. data/templates/dynatree/{jquery.ui/dynatree.aero → jquery/dynatree/aero}/rbUnchecked_hover.png +0 -0
  60. data/templates/dynatree/{jquery.ui/dynatree.crystal.scss → jquery/dynatree/aqua.scss} +32 -32
  61. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbChecked.png +0 -0
  62. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbChecked_hover.png +0 -0
  63. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbIntermediate.png +0 -0
  64. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbIntermediate_hover.png +0 -0
  65. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbUnchecked.png +0 -0
  66. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/cbUnchecked_hover.png +0 -0
  67. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/collapsed.png +0 -0
  68. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/collapsed_hover.png +0 -0
  69. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/copy_here.png +0 -0
  70. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/customDoc1.png +0 -0
  71. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/customFolder1.png +0 -0
  72. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/doc_with_children.png +0 -0
  73. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/document.png +0 -0
  74. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_accept.png +0 -0
  75. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_here.png +0 -0
  76. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/drop_reject.png +0 -0
  77. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/empty.png +0 -0
  78. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/expanded.png +0 -0
  79. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/expanded_hover.png +0 -0
  80. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder.png +0 -0
  81. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_docs.png +0 -0
  82. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_images.png +0 -0
  83. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_open.png +0 -0
  84. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/folder_page.png +0 -0
  85. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltDoc.png +0 -0
  86. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltError.png +0 -0
  87. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/ltWait.gif +0 -0
  88. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/move_here.png +0 -0
  89. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbChecked.png +0 -0
  90. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbChecked_hover.png +0 -0
  91. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbIntermediate.png +0 -0
  92. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbIntermediate_hover.png +0 -0
  93. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbUnchecked.png +0 -0
  94. data/templates/dynatree/{jquery.ui/dynatree.aqua → jquery/dynatree/aqua}/rbUnchecked_hover.png +0 -0
  95. data/templates/dynatree/{jquery.ui/dynatree.aqua.scss → jquery/dynatree/crystal.scss} +32 -32
  96. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbChecked.png +0 -0
  97. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbChecked_hover.png +0 -0
  98. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbIntermediate.png +0 -0
  99. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbIntermediate_hover.png +0 -0
  100. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbUnchecked.png +0 -0
  101. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/cbUnchecked_hover.png +0 -0
  102. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/collapsed.png +0 -0
  103. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/collapsed_hover.png +0 -0
  104. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/copy_here.png +0 -0
  105. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/customDoc1.png +0 -0
  106. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/customFolder1.png +0 -0
  107. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/doc_with_children.png +0 -0
  108. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/document.png +0 -0
  109. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_accept.png +0 -0
  110. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_here.png +0 -0
  111. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/drop_reject.png +0 -0
  112. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/empty.png +0 -0
  113. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/expanded.png +0 -0
  114. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/expanded_hover.png +0 -0
  115. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder.png +0 -0
  116. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_docs.png +0 -0
  117. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_images.png +0 -0
  118. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_open.png +0 -0
  119. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/folder_page.png +0 -0
  120. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltDoc.png +0 -0
  121. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltError.png +0 -0
  122. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/ltWait.gif +0 -0
  123. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/move_here.png +0 -0
  124. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbChecked.png +0 -0
  125. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbChecked_hover.png +0 -0
  126. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbIntermediate.png +0 -0
  127. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbIntermediate_hover.png +0 -0
  128. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbUnchecked.png +0 -0
  129. data/templates/dynatree/{jquery.ui/dynatree.crystal → jquery/dynatree/crystal}/rbUnchecked_hover.png +0 -0
  130. data/templates/dynatree/{jquery.ui/dynatree.xp.scss → jquery/dynatree/xp.scss} +35 -35
  131. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbChecked.png +0 -0
  132. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbChecked_hover.png +0 -0
  133. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbIntermediate.png +0 -0
  134. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbIntermediate_hover.png +0 -0
  135. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbUnchecked.png +0 -0
  136. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/cbUnchecked_hover.png +0 -0
  137. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/copy_here.png +0 -0
  138. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/customDoc1.png +0 -0
  139. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/customFolder1.png +0 -0
  140. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_accept.png +0 -0
  141. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_here.png +0 -0
  142. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/drop_reject.png +0 -0
  143. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltD_ne.png +0 -0
  144. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltD_nes.png +0 -0
  145. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltDoc.png +0 -0
  146. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltError.png +0 -0
  147. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltFld.png +0 -0
  148. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltFld_o.png +0 -0
  149. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_.png +0 -0
  150. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_ne.png +0 -0
  151. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_nes.png +0 -0
  152. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltL_ns.png +0 -0
  153. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltM_ne.png +0 -0
  154. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltM_nes.png +0 -0
  155. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltP_ne.png +0 -0
  156. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltP_nes.png +0 -0
  157. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/ltWait.gif +0 -0
  158. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/move_here.png +0 -0
  159. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbChecked.png +0 -0
  160. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbChecked_hover.png +0 -0
  161. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbIntermediate.png +0 -0
  162. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbIntermediate_hover.png +0 -0
  163. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbUnchecked.png +0 -0
  164. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/rbUnchecked_hover.png +0 -0
  165. data/templates/dynatree/{jquery.ui/dynatree.xp → jquery/dynatree/xp}/vline.png +0 -0
  166. data/templates/dynatree/manifest.rb +140 -140
  167. data/templates/emulators/config/initializers/emulators.rb +10 -0
  168. data/templates/emulators/emulators/blackberry.landscape.scss +15 -0
  169. data/templates/emulators/emulators/blackberry.portrait.scss +15 -0
  170. data/templates/emulators/emulators/blackberry.torch.landscape.png +0 -0
  171. data/templates/emulators/emulators/blackberry.torch.portrait.png +0 -0
  172. data/templates/emulators/emulators/ipad.landscape.png +0 -0
  173. data/templates/emulators/emulators/ipad.landscape.scss +15 -0
  174. data/templates/emulators/emulators/ipad.portrait.png +0 -0
  175. data/templates/emulators/emulators/ipad.portrait.scss +15 -0
  176. data/templates/emulators/emulators/iphone.landscape.png +0 -0
  177. data/templates/emulators/emulators/iphone.landscape.scss +15 -0
  178. data/templates/emulators/emulators/iphone.portrait.png +0 -0
  179. data/templates/emulators/emulators/iphone.portrait.scss +15 -0
  180. data/templates/emulators/emulators/palm.landscape.scss +15 -0
  181. data/templates/emulators/emulators/palm.portrait.scss +15 -0
  182. data/templates/emulators/emulators/palm.pre.landscape.png +0 -0
  183. data/templates/emulators/emulators/palm.pre.portrait.png +0 -0
  184. data/templates/emulators/manifest.rb +20 -0
  185. data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
  186. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +1 -1
  187. data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +1 -1
  188. data/templates/jqgrid/i18n/jqgrid/locale-de.js +23 -18
  189. data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +6 -6
  190. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +2 -2
  191. data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +1 -1
  192. data/templates/jqgrid/jquery.jqGrid.js +1858 -1850
  193. data/templates/jqgrid/jquery.jqGrid.min.js +214 -214
  194. data/templates/jqgrid/{jquery.ui → jquery}/jqGrid.scss +0 -0
  195. data/templates/jqgrid/manifest.rb +1 -1
  196. data/templates/jqical/app/views/{ui → shared}/_ui_event_for.js.haml +0 -0
  197. data/templates/jqical/config/initializers/jqical.rb +1 -1
  198. data/templates/jqical/{jquery.ui → jquery}/jqical.scss +0 -0
  199. data/templates/jqical/{jquery.ui → jquery}/jqical/calendar.png +0 -0
  200. data/templates/jqical/{jquery.ui → jquery}/jqical/clock.png +0 -0
  201. data/templates/jqical/manifest.rb +4 -4
  202. data/templates/jqtools/config/initializers/jqtools.rb +3 -0
  203. data/templates/jqtools/jquery.tools.js +4576 -0
  204. data/templates/jqtools/jquery.tools.min.js +255 -0
  205. data/templates/jqtools/manifest.rb +6 -0
  206. data/templates/jqtouch/config/initializers/jqtouch.rb +5 -6
  207. data/templates/jqtouch/jquery.jqtouch.js +656 -414
  208. data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
  209. data/templates/jqtouch/{jqtouch/jqt.apple.scss → jquery/touch/apple.scss} +30 -36
  210. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/activeButton.png +0 -0
  211. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/backButton.png +0 -0
  212. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/cancel.png +0 -0
  213. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/chevron.png +0 -0
  214. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/grayButton.png +0 -0
  215. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/greenButton.png +0 -0
  216. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/listArrowSel.png +0 -0
  217. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/listGroup.png +0 -0
  218. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/loading.gif +0 -0
  219. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/on_off.png +0 -0
  220. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/pinstripes.png +0 -0
  221. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/redButton.png +0 -0
  222. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/selection.png +0 -0
  223. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/thumb.png +0 -0
  224. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toggle.png +0 -0
  225. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toggleOn.png +0 -0
  226. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toolButton.png +0 -0
  227. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/toolbar.png +0 -0
  228. data/templates/jqtouch/{jqtouch → jquery/touch}/apple/whiteButton.png +0 -0
  229. data/templates/jqtouch/{jqtouch/jqt.default.scss → jquery/touch/default.scss} +31 -43
  230. data/templates/jqtouch/{jqtouch → jquery/touch}/default/backButton.png +0 -0
  231. data/templates/jqtouch/{jqtouch → jquery/touch}/default/backButtonActive.png +0 -0
  232. data/templates/jqtouch/{jqtouch → jquery/touch}/default/bigButton.png +0 -0
  233. data/templates/jqtouch/{jqtouch → jquery/touch}/default/bigButtonActive.png +0 -0
  234. data/templates/jqtouch/{jqtouch → jquery/touch}/default/button.png +0 -0
  235. data/templates/jqtouch/{jqtouch → jquery/touch}/default/buttonActive.png +0 -0
  236. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevron.png +0 -0
  237. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronActive.png +0 -0
  238. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronCircle.png +0 -0
  239. data/templates/jqtouch/{jqtouch → jquery/touch}/default/chevronCircleActive.png +0 -0
  240. data/templates/jqtouch/{jqtouch → jquery/touch}/default/loading.gif +0 -0
  241. data/templates/jqtouch/{jqtouch → jquery/touch}/default/toggleSwitch.png +0 -0
  242. data/templates/jqtouch/{jqtouch → jquery/touch}/default/toolbarBackground.png +0 -0
  243. data/templates/jqtouch/jqtouch/glyphish/Read me first - license.txt b/data/templates/jqtouch/jquery/touch/glyphish/Read me first - → license.txt +0 -0
  244. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/01-refresh.png +0 -0
  245. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/02-redo.png +0 -0
  246. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/03-loopback.png +0 -0
  247. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/04-squiggle.png +0 -0
  248. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/05-shuffle.png +0 -0
  249. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/06-magnifying-glass.png +0 -0
  250. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/07-map-marker.png +0 -0
  251. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/08-chat.png +0 -0
  252. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/09-chat2.png +0 -0
  253. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/10-medical.png +0 -0
  254. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/100-coffee.png +0 -0
  255. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/101-gameplan.png +0 -0
  256. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/102-walk.png +0 -0
  257. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/103-map.png +0 -0
  258. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/104-index-cards.png +0 -0
  259. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/105-piano.png +0 -0
  260. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/106-sliders.png +0 -0
  261. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/107-widescreen.png +0 -0
  262. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/108-badge.png +0 -0
  263. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/109-chicken.png +0 -0
  264. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/11-clock.png +0 -0
  265. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/110-bug.png +0 -0
  266. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/111-user.png +0 -0
  267. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/112-group.png +0 -0
  268. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/113-navigation.png +0 -0
  269. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/114-balloon.png +0 -0
  270. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/115-bow-and-arrow.png +0 -0
  271. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/116-controller.png +0 -0
  272. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/117-todo.png +0 -0
  273. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/118-coathanger.png +0 -0
  274. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/119-piggybank.png +0 -0
  275. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/12-eye.png +0 -0
  276. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/120-headphones.png +0 -0
  277. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/121-lanscape.png +0 -0
  278. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/122-stats.png +0 -0
  279. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/123-id-card.png +0 -0
  280. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/124-bullhorn.png +0 -0
  281. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/125-food.png +0 -0
  282. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/126-moon.png +0 -0
  283. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/127-sock.png +0 -0
  284. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/128-bone.png +0 -0
  285. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/129-golf.png +0 -0
  286. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/13-target.png +0 -0
  287. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/130-dice.png +0 -0
  288. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/14-tag.png +0 -0
  289. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/15-tags.png +0 -0
  290. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/16-line-chart.png +0 -0
  291. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/17-bar-chart.png +0 -0
  292. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/18-envelope.png +0 -0
  293. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/19-gear.png +0 -0
  294. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/20-gear2.png +0 -0
  295. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/21-skull.png +0 -0
  296. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/22-skull-n-crossbones.png +0 -0
  297. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/23-bird.png +0 -0
  298. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/24-gift.png +0 -0
  299. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/25-weather.png +0 -0
  300. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/26-bandaid.png +0 -0
  301. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/27-planet.png +0 -0
  302. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/28-star.png +0 -0
  303. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/29-heart.png +0 -0
  304. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/30-key.png +0 -0
  305. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/31-ipod.png +0 -0
  306. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/32-iphone.png +0 -0
  307. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/33-cabinet.png +0 -0
  308. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/34-coffee.png +0 -0
  309. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/35-shopping-bag.png +0 -0
  310. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/36-toolbox.png +0 -0
  311. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/37-suitcase.png +0 -0
  312. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/38-airplane.png +0 -0
  313. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/39-spraycan.png +0 -0
  314. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/40-inbox.png +0 -0
  315. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/41-picture-frame.png +0 -0
  316. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/42-photos.png +0 -0
  317. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/43-film-roll.png +0 -0
  318. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/44-shoebox.png +0 -0
  319. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/45-movie1.png +0 -0
  320. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/46-movie2.png +0 -0
  321. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/47-fuel.png +0 -0
  322. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/48-fork-and-knife.png +0 -0
  323. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/49-battery.png +0 -0
  324. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/50-beaker.png +0 -0
  325. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/51-outlet.png +0 -0
  326. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/52-pinetree.png +0 -0
  327. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/53-house.png +0 -0
  328. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/54-lock.png +0 -0
  329. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/55-network.png +0 -0
  330. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/56-cloud.png +0 -0
  331. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/57-download.png +0 -0
  332. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/58-bookmark.png +0 -0
  333. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/59-flag.png +0 -0
  334. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/60-signpost.png +0 -0
  335. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/61-brightness.png +0 -0
  336. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/62-contrast.png +0 -0
  337. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/63-runner.png +0 -0
  338. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/64-zap.png +0 -0
  339. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/65-note.png +0 -0
  340. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/66-microphone.png +0 -0
  341. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/67-tshirt.png +0 -0
  342. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/68-paperclip.png +0 -0
  343. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/69-display.png +0 -0
  344. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/70-tv.png +0 -0
  345. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/71-compass.png +0 -0
  346. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/72-pin.png +0 -0
  347. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/73-radar.png +0 -0
  348. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/74-location.png +0 -0
  349. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/75-phone.png +0 -0
  350. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/76-baby.png +0 -0
  351. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/77-ekg.png +0 -0
  352. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/78-stopwatch.png +0 -0
  353. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/79-medical-bag.png +0 -0
  354. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/80-shopping-cart.png +0 -0
  355. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/81-dashboard.png +0 -0
  356. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/82-dogpaw.png +0 -0
  357. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/83-calendar.png +0 -0
  358. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/84-lightbulb.png +0 -0
  359. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/85-trophy.png +0 -0
  360. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/86-camera.png +0 -0
  361. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/87-wineglass.png +0 -0
  362. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/88-beermug.png +0 -0
  363. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/89-dumbbell.png +0 -0
  364. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/90-lifebuoy.png +0 -0
  365. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/91-beaker2.png +0 -0
  366. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/92-testtube.png +0 -0
  367. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/93-thermometer.png +0 -0
  368. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/94-pill.png +0 -0
  369. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/95-equalizer.png +0 -0
  370. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/96-book.png +0 -0
  371. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/97-puzzle.png +0 -0
  372. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/98-palette.png +0 -0
  373. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/icons/99-umbrella.png +0 -0
  374. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/01-refresh.png +0 -0
  375. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/02-redo.png +0 -0
  376. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/03-loopback.png +0 -0
  377. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/04-squiggle.png +0 -0
  378. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/05-shuffle.png +0 -0
  379. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/06-magnifying-glass.png +0 -0
  380. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/07-map-marker.png +0 -0
  381. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/08-chat.png +0 -0
  382. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/09-chat2.png +0 -0
  383. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/10-medical.png +0 -0
  384. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/100-coffee.png +0 -0
  385. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/101-gameplan.png +0 -0
  386. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/102-walk.png +0 -0
  387. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/103-map.png +0 -0
  388. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/104-index-cards.png +0 -0
  389. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/105-piano.png +0 -0
  390. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/106-sliders.png +0 -0
  391. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/107-widescreen.png +0 -0
  392. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/108-badge.png +0 -0
  393. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/109-chicken.png +0 -0
  394. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/11-clock.png +0 -0
  395. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/110-bug.png +0 -0
  396. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/111-user.png +0 -0
  397. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/112-group.png +0 -0
  398. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/113-navigation.png +0 -0
  399. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/114-balloon.png +0 -0
  400. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
  401. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/116-controller.png +0 -0
  402. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/117-todo.png +0 -0
  403. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/118-coathanger.png +0 -0
  404. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/119-piggybank.png +0 -0
  405. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/12-eye.png +0 -0
  406. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/120-headphones.png +0 -0
  407. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/121-lanscape.png +0 -0
  408. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/122-stats.png +0 -0
  409. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/123-id-card.png +0 -0
  410. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/124-bullhorn.png +0 -0
  411. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/125-food.png +0 -0
  412. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/126-moon.png +0 -0
  413. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/127-sock.png +0 -0
  414. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/128-bone.png +0 -0
  415. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/129-golf.png +0 -0
  416. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/13-target.png +0 -0
  417. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/130-dice.png +0 -0
  418. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/14-tag.png +0 -0
  419. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/15-tags.png +0 -0
  420. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/16-line-chart.png +0 -0
  421. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/17-bar-chart.png +0 -0
  422. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/18-envelope.png +0 -0
  423. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/19-gear.png +0 -0
  424. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/20-gear2.png +0 -0
  425. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/21-skull.png +0 -0
  426. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
  427. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/23-bird.png +0 -0
  428. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/24-gift.png +0 -0
  429. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/25-weather.png +0 -0
  430. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/26-bandaid.png +0 -0
  431. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/27-planet.png +0 -0
  432. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/28-star.png +0 -0
  433. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/29-heart.png +0 -0
  434. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/30-key.png +0 -0
  435. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/31-ipod.png +0 -0
  436. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/32-iphone.png +0 -0
  437. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/33-cabinet.png +0 -0
  438. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/34-coffee.png +0 -0
  439. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/35-shopping-bag.png +0 -0
  440. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/36-toolbox.png +0 -0
  441. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/37-suitcase.png +0 -0
  442. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/38-airplane.png +0 -0
  443. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/39-spraycan.png +0 -0
  444. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/40-inbox.png +0 -0
  445. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/41-picture-frame.png +0 -0
  446. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/42-photos.png +0 -0
  447. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/43-film-roll.png +0 -0
  448. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/44-shoebox.png +0 -0
  449. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/45-movie1.png +0 -0
  450. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/46-movie2.png +0 -0
  451. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/47-fuel.png +0 -0
  452. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/48-fork-and-knife.png +0 -0
  453. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/49-battery.png +0 -0
  454. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/50-beaker.png +0 -0
  455. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/51-outlet.png +0 -0
  456. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/52-pinetree.png +0 -0
  457. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/53-house.png +0 -0
  458. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/54-lock.png +0 -0
  459. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/55-network.png +0 -0
  460. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/56-cloud.png +0 -0
  461. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/57-download.png +0 -0
  462. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/58-bookmark.png +0 -0
  463. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/59-flag.png +0 -0
  464. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/60-signpost.png +0 -0
  465. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/61-brightness.png +0 -0
  466. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/62-contrast.png +0 -0
  467. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/63-runner.png +0 -0
  468. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/64-zap.png +0 -0
  469. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/65-note.png +0 -0
  470. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/66-microphone.png +0 -0
  471. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/67-tshirt.png +0 -0
  472. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/68-paperclip.png +0 -0
  473. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/69-display.png +0 -0
  474. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/70-tv.png +0 -0
  475. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/71-compass.png +0 -0
  476. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/72-pin.png +0 -0
  477. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/73-radar.png +0 -0
  478. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/74-location.png +0 -0
  479. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/75-phone.png +0 -0
  480. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/76-baby.png +0 -0
  481. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/77-ekg.png +0 -0
  482. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/78-stopwatch.png +0 -0
  483. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/79-medical-bag.png +0 -0
  484. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/80-shopping-cart.png +0 -0
  485. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/81-dashboard.png +0 -0
  486. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/82-dogpaw.png +0 -0
  487. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/83-calendar.png +0 -0
  488. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/84-lightbulb.png +0 -0
  489. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/85-trophy.png +0 -0
  490. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/86-camera.png +0 -0
  491. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/87-wineglass.png +0 -0
  492. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/88-beermug.png +0 -0
  493. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/89-dumbbell.png +0 -0
  494. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/90-lifebuoy.png +0 -0
  495. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/91-beaker2.png +0 -0
  496. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/92-testtube.png +0 -0
  497. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/93-thermometer.png +0 -0
  498. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/94-pill.png +0 -0
  499. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/95-equalizer.png +0 -0
  500. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/96-book.png +0 -0
  501. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/97-puzzle.png +0 -0
  502. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/98-palette.png +0 -0
  503. data/templates/jqtouch/{jqtouch → jquery/touch}/glyphish/mini-icons/99-umbrella.png +0 -0
  504. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/bottom_bar.png +0 -0
  505. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/calpad.jpg +0 -0
  506. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/cells.png +0 -0
  507. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/footer.png +0 -0
  508. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header.png +0 -0
  509. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header_left.png +0 -0
  510. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/header_right.png +0 -0
  511. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/jqt_startup.png +0 -0
  512. data/templates/jqtouch/{jqtouch → jquery/touch}/ical/jqtouch-ical.png +0 -0
  513. data/templates/jqtouch/{jqtouch/jqt.jqt.scss → jquery/touch/jqt.scss} +36 -40
  514. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/activeButton.png +0 -0
  515. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/back_button.png +0 -0
  516. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/back_button_clicked.png +0 -0
  517. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/blueButton.png +0 -0
  518. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/button.png +0 -0
  519. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/button_clicked.png +0 -0
  520. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/chevron.png +0 -0
  521. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/chevron_circle.png +0 -0
  522. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/grayButton.png +0 -0
  523. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/greenButton.png +0 -0
  524. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/loading.gif +0 -0
  525. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/on_off.png +0 -0
  526. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/redButton.png +0 -0
  527. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/rowhead.png +0 -0
  528. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toggle.png +0 -0
  529. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toggleOn.png +0 -0
  530. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/toolbar.png +0 -0
  531. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt/whiteButton.png +0 -0
  532. data/templates/jqtouch/{jqtouch → jquery/touch}/jqt_startup.png +0 -0
  533. data/templates/jqtouch/{jqtouch → jquery/touch}/jqtouch.png +0 -0
  534. data/templates/jqtouch/{jqtouch → jquery/touch}/jqtouch.scss +276 -254
  535. data/templates/jqtouch/jquery/touch/jqtouch4.png +0 -0
  536. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/btnBack.png +0 -0
  537. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/loading.gif +0 -0
  538. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navNext.png +0 -0
  539. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPause.png +0 -0
  540. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPlay.png +0 -0
  541. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/navPrev.png +0 -0
  542. data/templates/jqtouch/{jqtouch → jquery/touch}/photo/toolbar.png +0 -0
  543. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/alpha.png +0 -0
  544. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/button-cancel.png +0 -0
  545. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/button-done.png +0 -0
  546. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/header.png +0 -0
  547. data/templates/jqtouch/{jqtouch → jquery/touch}/sw/slot-border.png +0 -0
  548. data/templates/jqtouch/manifest.rb +339 -342
  549. data/templates/jrails/config/initializers/jrails.rb +8 -4
  550. data/templates/jrails/i18n/jquery.ui/datepicker-gl.js +23 -0
  551. data/templates/jrails/i18n/jquery.ui/datepicker-gl.min.js +2 -0
  552. data/templates/jrails/i18n/jquery.ui/datepicker-pt.js +22 -0
  553. data/templates/jrails/i18n/jquery.ui/datepicker-pt.min.js +2 -0
  554. data/templates/jrails/i18n/jquery.ui/datepicker-ru.js +1 -1
  555. data/templates/jrails/i18n/jquery.ui/datepicker-ru.min.js +1 -1
  556. data/templates/jrails/jquery-1.4.3.js +6944 -0
  557. data/templates/jrails/jquery-1.4.3.min.js +152 -0
  558. data/templates/jrails/{jquery-ui-1.8.5.js → jquery-ui-1.8.6.js} +514 -356
  559. data/templates/jrails/jquery-ui-1.8.6.min.js +825 -0
  560. data/templates/jrails/jquery.bgiframe.js +37 -8
  561. data/templates/jrails/jquery.bgiframe.min.js +2 -2
  562. data/templates/jrails/jquery.cookie.js +89 -0
  563. data/templates/jrails/jquery.cookie.min.js +2 -0
  564. data/templates/jrails/jquery.flash_messages.js +5 -0
  565. data/templates/jrails/jquery.flash_messages.min.js +1 -0
  566. data/templates/jrails/jquery.form.js +660 -0
  567. data/templates/jrails/jquery.form.min.js +17 -0
  568. data/templates/jrails/jquery.layout.js +2507 -0
  569. data/templates/jrails/jquery.layout.min.js +49 -0
  570. data/templates/jrails/jquery.themeswitchertool.js +4 -4
  571. data/templates/jrails/jquery.themeswitchertool.min.js +4 -4
  572. data/templates/jrails/{jquery.ui → jquery/ui}/_theme.scss +20 -15
  573. data/templates/jrails/{jquery.ui → jquery/ui}/base.scss +18 -18
  574. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-anim_basic_16x16.gif +0 -0
  575. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  576. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_flat_75_ffffff_40x100.png +0 -0
  577. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  578. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_65_ffffff_1x400.png +0 -0
  579. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_75_dadada_1x400.png +0 -0
  580. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  581. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  582. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  583. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_222222_256x240.png +0 -0
  584. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_2e83ff_256x240.png +0 -0
  585. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_454545_256x240.png +0 -0
  586. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_888888_256x240.png +0 -0
  587. data/templates/jrails/{jquery.ui → jquery/ui}/base/ui-icons_cd0a0a_256x240.png +0 -0
  588. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie.scss +18 -18
  589. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-anim_basic_16x16.gif +0 -0
  590. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
  591. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_flat_65_ffffff_40x100.png +0 -0
  592. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_glass_40_111111_1x400.png +0 -0
  593. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
  594. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  595. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
  596. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
  597. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
  598. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
  599. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_222222_256x240.png +0 -0
  600. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_4ca300_256x240.png +0 -0
  601. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
  602. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ededed_256x240.png +0 -0
  603. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ffcf29_256x240.png +0 -0
  604. data/templates/jrails/{jquery.ui → jquery/ui}/black-tie/ui-icons_ffffff_256x240.png +0 -0
  605. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer.scss +18 -18
  606. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-anim_basic_16x16.gif +0 -0
  607. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
  608. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
  609. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_0_333333_40x100.png +0 -0
  610. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_65_ffffff_40x100.png +0 -0
  611. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_flat_75_ffffff_40x100.png +0 -0
  612. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
  613. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  614. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
  615. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
  616. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_004276_256x240.png +0 -0
  617. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_cc0000_256x240.png +0 -0
  618. data/templates/jrails/{jquery.ui → jquery/ui}/blitzer/ui-icons_ffffff_256x240.png +0 -0
  619. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu.scss +6 -6
  620. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/cut.png +0 -0
  621. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/door.png +0 -0
  622. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_copy.png +0 -0
  623. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_delete.png +0 -0
  624. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_edit.png +0 -0
  625. data/templates/jrails/{jquery.ui → jquery/ui}/contextMenu/page_white_paste.png +0 -0
  626. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino.scss +18 -18
  627. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-anim_basic_16x16.gif +0 -0
  628. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  629. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
  630. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  631. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_50_3baae3_1x400.png +0 -0
  632. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  633. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  634. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  635. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  636. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  637. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_2694e8_256x240.png +0 -0
  638. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_2e83ff_256x240.png +0 -0
  639. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_3d80b3_256x240.png +0 -0
  640. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_72a7cf_256x240.png +0 -0
  641. data/templates/jrails/{jquery.ui → jquery/ui}/cupertino/ui-icons_ffffff_256x240.png +0 -0
  642. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive.scss +18 -18
  643. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-anim_basic_16x16.gif +0 -0
  644. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_flat_30_cccccc_40x100.png +0 -0
  645. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  646. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  647. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  648. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  649. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  650. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  651. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  652. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-bg_loop_25_000000_21x21.png +0 -0
  653. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_222222_256x240.png +0 -0
  654. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_4b8e0b_256x240.png +0 -0
  655. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_a83300_256x240.png +0 -0
  656. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_cccccc_256x240.png +0 -0
  657. data/templates/jrails/{jquery.ui → jquery/ui}/dark-hive/ui-icons_ffffff_256x240.png +0 -0
  658. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv.scss +18 -18
  659. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-anim_basic_16x16.gif +0 -0
  660. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
  661. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
  662. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_20_333333_2x2.png +0 -0
  663. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
  664. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
  665. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  666. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_flat_40_292929_40x100.png +0 -0
  667. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
  668. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_00498f_256x240.png +0 -0
  669. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_98d2fb_256x240.png +0 -0
  670. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_9ccdfc_256x240.png +0 -0
  671. data/templates/jrails/{jquery.ui → jquery/ui}/dot-luv/ui-icons_ffffff_256x240.png +0 -0
  672. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant.scss +18 -18
  673. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-anim_basic_16x16.gif +0 -0
  674. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  675. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  676. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_55_994d53_40x100.png +0 -0
  677. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_flat_55_fafafa_40x100.png +0 -0
  678. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
  679. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
  680. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
  681. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
  682. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
  683. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_454545_256x240.png +0 -0
  684. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_734d99_256x240.png +0 -0
  685. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_8d78a5_256x240.png +0 -0
  686. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_a8a3ae_256x240.png +0 -0
  687. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_ebccce_256x240.png +0 -0
  688. data/templates/jrails/{jquery.ui → jquery/ui}/eggplant/ui-icons_ffffff_256x240.png +0 -0
  689. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike.scss +18 -18
  690. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-anim_basic_16x16.gif +0 -0
  691. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
  692. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
  693. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
  694. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
  695. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_flat_0_e69700_40x100.png +0 -0
  696. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_flat_0_e6b900_40x100.png +0 -0
  697. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
  698. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
  699. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_0a82eb_256x240.png +0 -0
  700. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_0b54d5_256x240.png +0 -0
  701. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_5fa5e3_256x240.png +0 -0
  702. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_fcdd4a_256x240.png +0 -0
  703. data/templates/jrails/{jquery.ui → jquery/ui}/excite-bike/ui-icons_ffffff_256x240.png +0 -0
  704. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic.scss +3 -3
  705. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/marker.png +0 -0
  706. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/mask.png +0 -0
  707. data/templates/jrails/{jquery.ui → jquery/ui}/farbtastic/wheel.png +0 -0
  708. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-check.png +0 -0
  709. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-error-bg.png +0 -0
  710. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-error.png +0 -0
  711. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-notice-bg.png +0 -0
  712. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-warning-bg.png +0 -0
  713. data/templates/jrails/{jquery.ui → jquery/ui}/flash_messages/flash-warning.png +0 -0
  714. data/templates/jrails/{jquery.ui → jquery/ui}/flick.scss +18 -18
  715. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-anim_basic_16x16.gif +0 -0
  716. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  717. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  718. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_55_ffffff_40x100.png +0 -0
  719. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_flat_75_ffffff_40x100.png +0 -0
  720. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_glass_65_ffffff_1x400.png +0 -0
  721. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  722. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  723. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  724. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_0073ea_256x240.png +0 -0
  725. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_454545_256x240.png +0 -0
  726. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_666666_256x240.png +0 -0
  727. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_ff0084_256x240.png +0 -0
  728. data/templates/jrails/{jquery.ui → jquery/ui}/flick/ui-icons_ffffff_256x240.png +0 -0
  729. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks.scss +18 -18
  730. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-anim_basic_16x16.gif +0 -0
  731. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
  732. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
  733. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
  734. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
  735. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
  736. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_dots-small_35_35414f_2x2.png +0 -0
  737. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_flat_75_ba9217_40x100.png +0 -0
  738. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_flat_75_ffffff_40x100.png +0 -0
  739. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
  740. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_454545_256x240.png +0 -0
  741. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_88a206_256x240.png +0 -0
  742. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_c02669_256x240.png +0 -0
  743. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_e1e463_256x240.png +0 -0
  744. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_ffeb33_256x240.png +0 -0
  745. data/templates/jrails/{jquery.ui → jquery/ui}/hot-sneaks/ui-icons_ffffff_256x240.png +0 -0
  746. data/templates/jrails/{jquery.ui → jquery/ui}/humanity.scss +18 -18
  747. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-anim_basic_16x16.gif +0 -0
  748. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  749. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
  750. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_25_cb842e_1x400.png +0 -0
  751. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_glass_70_ede4d4_1x400.png +0 -0
  752. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
  753. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  754. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
  755. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
  756. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_c47a23_256x240.png +0 -0
  757. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_cb672b_256x240.png +0 -0
  758. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_f08000_256x240.png +0 -0
  759. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_f35f07_256x240.png +0 -0
  760. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_ff7519_256x240.png +0 -0
  761. data/templates/jrails/{jquery.ui → jquery/ui}/humanity/ui-icons_ffffff_256x240.png +0 -0
  762. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog.scss +18 -18
  763. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-anim_basic_16x16.gif +0 -0
  764. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
  765. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
  766. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
  767. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
  768. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
  769. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
  770. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
  771. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
  772. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
  773. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_4eb305_256x240.png +0 -0
  774. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_72b42d_256x240.png +0 -0
  775. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_cd0a0a_256x240.png +0 -0
  776. data/templates/jrails/{jquery.ui → jquery/ui}/le-frog/ui-icons_ffffff_256x240.png +0 -0
  777. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc.scss +18 -18
  778. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-anim_basic_16x16.gif +0 -0
  779. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  780. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_glass_15_5f391b_1x400.png +0 -0
  781. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
  782. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
  783. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
  784. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
  785. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
  786. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-bg_inset-soft_10_201913_1x100.png +0 -0
  787. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_222222_256x240.png +0 -0
  788. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_9bcc60_256x240.png +0 -0
  789. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_add978_256x240.png +0 -0
  790. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_e3ddc9_256x240.png +0 -0
  791. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_f1fd86_256x240.png +0 -0
  792. data/templates/jrails/{jquery.ui → jquery/ui}/mint-choc/ui-icons_ffffff_256x240.png +0 -0
  793. data/templates/jrails/{jquery.ui → jquery/ui}/overcast.scss +18 -18
  794. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-anim_basic_16x16.gif +0 -0
  795. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  796. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  797. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
  798. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_flat_55_eeeeee_40x100.png +0 -0
  799. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  800. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_35_dddddd_1x400.png +0 -0
  801. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  802. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  803. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  804. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_3383bb_256x240.png +0 -0
  805. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_454545_256x240.png +0 -0
  806. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_70b2e1_256x240.png +0 -0
  807. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_999999_256x240.png +0 -0
  808. data/templates/jrails/{jquery.ui → jquery/ui}/overcast/ui-icons_fbc856_256x240.png +0 -0
  809. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder.scss +18 -18
  810. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-anim_basic_16x16.gif +0 -0
  811. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
  812. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
  813. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
  814. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
  815. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
  816. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
  817. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
  818. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
  819. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
  820. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_222222_256x240.png +0 -0
  821. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_3572ac_256x240.png +0 -0
  822. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_8c291d_256x240.png +0 -0
  823. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_b83400_256x240.png +0 -0
  824. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_fbdb93_256x240.png +0 -0
  825. data/templates/jrails/{jquery.ui → jquery/ui}/pepper-grinder/ui-icons_ffffff_256x240.png +0 -0
  826. data/templates/jrails/{jquery.ui → jquery/ui}/redmond.scss +18 -18
  827. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-anim_basic_16x16.gif +0 -0
  828. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  829. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
  830. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  831. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  832. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  833. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  834. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  835. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  836. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_217bc0_256x240.png +0 -0
  837. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_2e83ff_256x240.png +0 -0
  838. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_469bdd_256x240.png +0 -0
  839. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_6da8d5_256x240.png +0 -0
  840. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_cd0a0a_256x240.png +0 -0
  841. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_d8e7f3_256x240.png +0 -0
  842. data/templates/jrails/{jquery.ui → jquery/ui}/redmond/ui-icons_f9bd01_256x240.png +0 -0
  843. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness.scss +18 -18
  844. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-anim_basic_16x16.gif +0 -0
  845. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  846. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
  847. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  848. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  849. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
  850. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  851. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  852. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  853. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_222222_256x240.png +0 -0
  854. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_2e83ff_256x240.png +0 -0
  855. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_454545_256x240.png +0 -0
  856. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_888888_256x240.png +0 -0
  857. data/templates/jrails/{jquery.ui → jquery/ui}/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
  858. data/templates/jrails/{jquery.ui → jquery/ui}/south-street.scss +18 -18
  859. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-anim_basic_16x16.gif +0 -0
  860. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
  861. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
  862. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
  863. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
  864. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
  865. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
  866. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
  867. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
  868. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
  869. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_808080_256x240.png +0 -0
  870. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_847e71_256x240.png +0 -0
  871. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_8dc262_256x240.png +0 -0
  872. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_cd0a0a_256x240.png +0 -0
  873. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_eeeeee_256x240.png +0 -0
  874. data/templates/jrails/{jquery.ui → jquery/ui}/south-street/ui-icons_ffffff_256x240.png +0 -0
  875. data/templates/jrails/{jquery.ui → jquery/ui}/start.scss +18 -18
  876. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-anim_basic_16x16.gif +0 -0
  877. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_flat_55_999999_40x100.png +0 -0
  878. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_flat_75_aaaaaa_40x100.png +0 -0
  879. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_45_0078ae_1x400.png +0 -0
  880. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_55_f8da4e_1x400.png +0 -0
  881. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_glass_75_79c9ec_1x400.png +0 -0
  882. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
  883. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
  884. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
  885. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  886. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_0078ae_256x240.png +0 -0
  887. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_056b93_256x240.png +0 -0
  888. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_d8e7f3_256x240.png +0 -0
  889. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_e0fdff_256x240.png +0 -0
  890. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_f5e175_256x240.png +0 -0
  891. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_f7a50d_256x240.png +0 -0
  892. data/templates/jrails/{jquery.ui → jquery/ui}/start/ui-icons_fcd113_256x240.png +0 -0
  893. data/templates/jrails/{jquery.ui → jquery/ui}/sunny.scss +18 -18
  894. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-anim_basic_16x16.gif +0 -0
  895. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
  896. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_flat_30_cccccc_40x100.png +0 -0
  897. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  898. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
  899. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
  900. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
  901. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
  902. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
  903. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
  904. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_3d3d3d_256x240.png +0 -0
  905. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_bd7b00_256x240.png +0 -0
  906. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_d19405_256x240.png +0 -0
  907. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_eb990f_256x240.png +0 -0
  908. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_ed9f26_256x240.png +0 -0
  909. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_fadc7a_256x240.png +0 -0
  910. data/templates/jrails/{jquery.ui → jquery/ui}/sunny/ui-icons_ffe180_256x240.png +0 -0
  911. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse.scss +18 -18
  912. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-anim_basic_16x16.gif +0 -0
  913. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_10_4f4221_10x8.png +0 -0
  914. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_20_372806_10x8.png +0 -0
  915. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_25_675423_10x8.png +0 -0
  916. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
  917. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_8_261803_10x8.png +0 -0
  918. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_diamond_8_443113_10x8.png +0 -0
  919. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_flat_75_ddd4b0_40x100.png +0 -0
  920. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  921. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_070603_256x240.png +0 -0
  922. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_e8e2b5_256x240.png +0 -0
  923. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_e9cd86_256x240.png +0 -0
  924. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_efec9f_256x240.png +0 -0
  925. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_f2ec64_256x240.png +0 -0
  926. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_f9f2bd_256x240.png +0 -0
  927. data/templates/jrails/{jquery.ui → jquery/ui}/swanky-purse/ui-icons_ff7519_256x240.png +0 -0
  928. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/buttonbg.png +0 -0
  929. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/icon_color_arrow.gif +0 -0
  930. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/menuhoverbg.png +0 -0
  931. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_black_matte.png +0 -0
  932. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_black_tie.png +0 -0
  933. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_blitzer.png +0 -0
  934. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_cupertino.png +0 -0
  935. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_dark_hive.png +0 -0
  936. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_dot_luv.png +0 -0
  937. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_eggplant.png +0 -0
  938. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_excite_bike.png +0 -0
  939. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_flick.png +0 -0
  940. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_hot_sneaks.png +0 -0
  941. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_humanity.png +0 -0
  942. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_le_frog.png +0 -0
  943. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_mint_choco.png +0 -0
  944. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_overcast.png +0 -0
  945. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_pepper_grinder.png +0 -0
  946. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_smoothness.png +0 -0
  947. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_south_street.png +0 -0
  948. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_start_menu.png +0 -0
  949. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_sunny.png +0 -0
  950. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_swanky_purse.png +0 -0
  951. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_trontastic.png +0 -0
  952. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_ui_dark.png +0 -0
  953. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_ui_light.png +0 -0
  954. data/templates/jrails/{jquery.ui → jquery/ui}/themeSwitcher/theme_90_windoze.png +0 -0
  955. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic.scss +18 -18
  956. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-anim_basic_16x16.gif +0 -0
  957. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
  958. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_flat_0_303030_40x100.png +0 -0
  959. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
  960. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
  961. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
  962. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_glass_60_000000_1x400.png +0 -0
  963. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
  964. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
  965. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
  966. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_000000_256x240.png +0 -0
  967. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_1f1f1f_256x240.png +0 -0
  968. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_9fda58_256x240.png +0 -0
  969. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_b8ec79_256x240.png +0 -0
  970. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_cd0a0a_256x240.png +0 -0
  971. data/templates/jrails/{jquery.ui → jquery/ui}/trontastic/ui-icons_ffffff_256x240.png +0 -0
  972. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness.scss +18 -18
  973. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-anim_basic_16x16.gif +0 -0
  974. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_flat_30_cccccc_40x100.png +0 -0
  975. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  976. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_20_555555_1x400.png +0 -0
  977. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
  978. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  979. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  980. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  981. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  982. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  983. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_222222_256x240.png +0 -0
  984. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_4b8e0b_256x240.png +0 -0
  985. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_a83300_256x240.png +0 -0
  986. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_cccccc_256x240.png +0 -0
  987. data/templates/jrails/{jquery.ui → jquery/ui}/ui-darkness/ui-icons_ffffff_256x240.png +0 -0
  988. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness.scss +18 -18
  989. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-anim_basic_16x16.gif +0 -0
  990. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  991. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  992. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_flat_10_000000_40x100.png +0 -0
  993. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  994. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  995. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_glass_65_ffffff_1x400.png +0 -0
  996. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  997. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  998. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  999. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_222222_256x240.png +0 -0
  1000. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
  1001. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ef8c08_256x240.png +0 -0
  1002. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ffd27a_256x240.png +0 -0
  1003. data/templates/jrails/{jquery.ui → jquery/ui}/ui-lightness/ui-icons_ffffff_256x240.png +0 -0
  1004. data/templates/jrails/{jquery.ui → jquery/ui}/vader.scss +18 -18
  1005. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-anim_basic_16x16.gif +0 -0
  1006. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1007. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1008. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
  1009. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
  1010. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
  1011. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
  1012. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
  1013. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-bg_inset-soft_15_121212_1x100.png +0 -0
  1014. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_666666_256x240.png +0 -0
  1015. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_aaaaaa_256x240.png +0 -0
  1016. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_bbbbbb_256x240.png +0 -0
  1017. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_c98000_256x240.png +0 -0
  1018. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_cccccc_256x240.png +0 -0
  1019. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_cd0a0a_256x240.png +0 -0
  1020. data/templates/jrails/{jquery.ui → jquery/ui}/vader/ui-icons_f29a00_256x240.png +0 -0
  1021. data/templates/jrails/manifest.rb +466 -454
  1022. data/templates/jrails/partials/_flash_messages.scss +8 -8
  1023. data/templates/jstree/config/initializers/jstree.rb +4 -4
  1024. data/templates/jstree/jquery.jstree.js +4534 -3513
  1025. data/templates/jstree/jquery.jstree.min.js +220 -172
  1026. data/templates/jstree/{jquery.ui/jstree.aero.scss → jquery/jstree/aero.scss} +10 -10
  1027. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/clicked.png +0 -0
  1028. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/d.gif +0 -0
  1029. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/d.png +0 -0
  1030. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/hovered.png +0 -0
  1031. data/templates/jstree/{jquery.ui/jstree.aero → jquery/jstree/aero}/throbber.gif +0 -0
  1032. data/templates/jstree/{jquery.ui/jstree.aqua.scss → jquery/jstree/aqua.scss} +10 -10
  1033. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/clicked.png +0 -0
  1034. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/d.gif +0 -0
  1035. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/d.png +0 -0
  1036. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/hovered.png +0 -0
  1037. data/templates/jstree/{jquery.ui/jstree.aqua → jquery/jstree/aqua}/throbber.gif +0 -0
  1038. data/templates/jstree/{jquery.ui/jstree.classic.scss → jquery/jstree/classic.scss} +5 -5
  1039. data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/d.png +0 -0
  1040. data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/dot_for_ie.gif +0 -0
  1041. data/templates/jstree/{jquery.ui/jstree.classic → jquery/jstree/classic}/throbber.gif +0 -0
  1042. data/templates/jstree/{jquery.ui/jstree.crystal.scss → jquery/jstree/crystal.scss} +8 -8
  1043. data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/d.gif +0 -0
  1044. data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/d.png +0 -0
  1045. data/templates/jstree/{jquery.ui/jstree.crystal → jquery/jstree/crystal}/throbber.gif +0 -0
  1046. data/templates/jstree/{jquery.ui/jstree.default-rtl.scss → jquery/jstree/default-rtl.scss} +9 -9
  1047. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/d.gif +0 -0
  1048. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/d.png +0 -0
  1049. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/dots.gif +0 -0
  1050. data/templates/jstree/{jquery.ui/jstree.default-rtl → jquery/jstree/default-rtl}/throbber.gif +0 -0
  1051. data/templates/jstree/{jquery.ui/jstree.default.scss → jquery/jstree/default.scss} +8 -8
  1052. data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/d.gif +0 -0
  1053. data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/d.png +0 -0
  1054. data/templates/jstree/{jquery.ui/jstree.default → jquery/jstree/default}/throbber.gif +0 -0
  1055. data/templates/jstree/manifest.rb +29 -29
  1056. data/templates/mobile/config/initializers/mobile.rb +6 -0
  1057. data/templates/mobile/jquery.mobile.js +3189 -0
  1058. data/templates/mobile/jquery.mobile.min.js +28 -0
  1059. data/templates/mobile/jquery/mobile/_base.scss +1326 -0
  1060. data/templates/mobile/jquery/mobile/default.scss +742 -0
  1061. data/templates/mobile/jquery/mobile/default/ajax-loader.gif +0 -0
  1062. data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
  1063. data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
  1064. data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
  1065. data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
  1066. data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
  1067. data/templates/mobile/jquery/mobile/default/icon-arrow-white-down.png +0 -0
  1068. data/templates/mobile/jquery/mobile/default/icon-arrow-white-left.png +0 -0
  1069. data/templates/mobile/jquery/mobile/default/icon-arrow-white-right.png +0 -0
  1070. data/templates/mobile/jquery/mobile/default/icon-arrow-white-up.png +0 -0
  1071. data/templates/mobile/jquery/mobile/default/icon-delete.png +0 -0
  1072. data/templates/mobile/jquery/mobile/default/icon-minus-white.png +0 -0
  1073. data/templates/mobile/jquery/mobile/default/icon-plus-white.png +0 -0
  1074. data/templates/mobile/jquery/mobile/default/icon-search-black.png +0 -0
  1075. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  1076. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  1077. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  1078. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  1079. data/templates/mobile/jquery/mobile/valencia.scss +804 -0
  1080. data/templates/mobile/jquery/mobile/valencia/ajax-loader.gif +0 -0
  1081. data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
  1082. data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
  1083. data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
  1084. data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
  1085. data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
  1086. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-down.png +0 -0
  1087. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-left.png +0 -0
  1088. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-right.png +0 -0
  1089. data/templates/mobile/jquery/mobile/valencia/icon-arrow-white-up.png +0 -0
  1090. data/templates/mobile/jquery/mobile/valencia/icon-delete.png +0 -0
  1091. data/templates/mobile/jquery/mobile/valencia/icon-minus-white.png +0 -0
  1092. data/templates/mobile/jquery/mobile/valencia/icon-plus-white.png +0 -0
  1093. data/templates/mobile/jquery/mobile/valencia/icon-search-black.png +0 -0
  1094. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  1095. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  1096. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  1097. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  1098. data/templates/mobile/jquery/mobile/valencia/texture_05.png +0 -0
  1099. data/templates/mobile/jquery/mobile/valencia/texture_075.png +0 -0
  1100. data/templates/mobile/manifest.rb +47 -0
  1101. data/templates/ribbon/config/initializers/ribbon.rb +3 -3
  1102. data/templates/ribbon/jquery.ribbon.js +4 -4
  1103. data/templates/ribbon/jquery.ribbon.min.js +3 -3
  1104. data/templates/ribbon/{jquery.ui/ribbon.windows7.scss → jquery/ribbon/office.scss} +20 -20
  1105. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/arrow.png +0 -0
  1106. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/arrow_down.png +0 -0
  1107. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/bg.png +0 -0
  1108. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/item_background.png +0 -0
  1109. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/item_small_background.png +0 -0
  1110. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_background.png +0 -0
  1111. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_bottom.png +0 -0
  1112. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_dropdownitembg.png +0 -0
  1113. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_dropdownitembghover.png +0 -0
  1114. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_item_hover.png +0 -0
  1115. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_middle.png +0 -0
  1116. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top.png +0 -0
  1117. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top_backstage.png +0 -0
  1118. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menu_top_backstage2.png +0 -0
  1119. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/menuitem_background.png +0 -0
  1120. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb.png +0 -0
  1121. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_hover.png +0 -0
  1122. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_office.png +0 -0
  1123. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_office_hover.png +0 -0
  1124. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/orb_submenu_item_hover.png +0 -0
  1125. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-firstLevel-hover.png +0 -0
  1126. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-rightColumn-wide.png +0 -0
  1127. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-item-hover.png +0 -0
  1128. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-item.png +0 -0
  1129. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
  1130. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/ribbon-backstage-subMenu-itemSquare.png +0 -0
  1131. data/templates/ribbon/{jquery.ui/ribbon.office → jquery/ribbon/office}/top_background.png +0 -0
  1132. data/templates/ribbon/{jquery.ui/ribbon.simple.scss → jquery/ribbon/simple.scss} +13 -13
  1133. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/arrow.png +0 -0
  1134. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/arrow_down.png +0 -0
  1135. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/bg.png +0 -0
  1136. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/item_background.png +0 -0
  1137. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/item_small_background.png +0 -0
  1138. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_background.png +0 -0
  1139. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_bottom.png +0 -0
  1140. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_dropdownitembg.png +0 -0
  1141. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_dropdownitembghover.png +0 -0
  1142. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_item_hover.png +0 -0
  1143. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_middle.png +0 -0
  1144. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menu_top.png +0 -0
  1145. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/menuitem_background.png +0 -0
  1146. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb.png +0 -0
  1147. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb_hover.png +0 -0
  1148. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/orb_submenu_item_hover.png +0 -0
  1149. data/templates/ribbon/{jquery.ui/ribbon.simple → jquery/ribbon/simple}/top_background.png +0 -0
  1150. data/templates/ribbon/{jquery.ui/ribbon.office.scss → jquery/ribbon/windows7.scss} +20 -20
  1151. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/arrow.png +0 -0
  1152. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/arrow_down.png +0 -0
  1153. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/bg.png +0 -0
  1154. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/item_background.png +0 -0
  1155. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/item_small_background.png +0 -0
  1156. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_background.png +0 -0
  1157. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_bottom.png +0 -0
  1158. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_dropdownitembg.png +0 -0
  1159. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_dropdownitembghover.png +0 -0
  1160. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_item_hover.png +0 -0
  1161. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_middle.png +0 -0
  1162. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top.png +0 -0
  1163. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top_backstage.png +0 -0
  1164. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menu_top_backstage2.png +0 -0
  1165. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/menuitem_background.png +0 -0
  1166. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb.png +0 -0
  1167. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_hover.png +0 -0
  1168. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_office.png +0 -0
  1169. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_office_hover.png +0 -0
  1170. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/orb_submenu_item_hover.png +0 -0
  1171. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-firstLevel-hover.png +0 -0
  1172. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-rightColumn-wide.png +0 -0
  1173. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-item-hover.png +0 -0
  1174. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-item.png +0 -0
  1175. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
  1176. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/ribbon-backstage-subMenu-itemSquare.png +0 -0
  1177. data/templates/ribbon/{jquery.ui/ribbon.windows7 → jquery/ribbon/windows7}/top_background.png +0 -0
  1178. data/templates/ribbon/manifest.rb +74 -74
  1179. data/templates/secret_sauce/app/views/{ui → shared}/_ui_form_error_messages.html.haml +0 -0
  1180. data/templates/secret_sauce/app/views/{ui → shared}/_ui_grid_for_without_block.js.haml +8 -8
  1181. data/templates/secret_sauce/app/views/{ui → shared}/_ui_static_dialog.html.haml +0 -0
  1182. data/templates/secret_sauce/config/initializers/secret_sauce.rb +1 -1
  1183. data/templates/secret_sauce/{jquery.ui → jquery}/secret_sauce.scss +0 -0
  1184. data/templates/secret_sauce/manifest.rb +4 -4
  1185. metadata +1134 -1051
  1186. data/templates/jqtouch/jqtouch/apple/actionButton.png +0 -0
  1187. data/templates/jqtouch/jqtouch/icons/iphone_16x16.png +0 -0
  1188. data/templates/jqtouch/jqtouch/iphone-emulator.scss +0 -21
  1189. data/templates/jqtouch/jqtouch/iphone_fullsize.png +0 -0
  1190. data/templates/jrails/jquery-1.4.2.js +0 -9502
  1191. data/templates/jrails/jquery-1.4.2.min.js +0 -210
  1192. data/templates/jrails/jquery-ui-1.8.5.min.js +0 -823
@@ -0,0 +1,15 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .iphone .emulator {
4
+ background: image_url("emulators/iphone.landscape.png") no-repeat;
5
+ width: 740px;
6
+ height: 420px;
7
+ .display-area {
8
+ position: relative;
9
+ top: 50px;
10
+ width: 460px;
11
+ height: 320px;
12
+ max-height: 320px;
13
+ color: #ffffff;
14
+ a {
15
+ color: #ff5500; } } }
@@ -0,0 +1,15 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .iphone .emulator {
4
+ background: image_url("emulators/iphone.portrait.png") no-repeat;
5
+ width: 390px;
6
+ height: 732px;
7
+ .display-area {
8
+ position: relative;
9
+ top: 138px;
10
+ width: 320px;
11
+ height: 460px;
12
+ max-height: 460px;
13
+ color: #ffffff;
14
+ a {
15
+ color: #ff5500; } } }
@@ -0,0 +1,15 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .palm .emulator {
4
+ background: image_url("emulators/palm.pre.landscape.png") no-repeat;
5
+ width: 770px;
6
+ height: 432px;
7
+ .display-area {
8
+ position: relative;
9
+ top: 56px;
10
+ width: 460px;
11
+ height: 320px;
12
+ max-height: 320px;
13
+ color: #ffffff;
14
+ a {
15
+ color: #ff5500; } } }
@@ -0,0 +1,15 @@
1
+ // Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+
3
+ .palm .emulator {
4
+ background: image_url("emulators/palm.pre.portrait.png") no-repeat;
5
+ width: 416px;
6
+ height: 730px;
7
+ .display-area {
8
+ position: relative;
9
+ top: 123px;
10
+ width: 320px;
11
+ height: 460px;
12
+ max-height: 460px;
13
+ color: #ffffff;
14
+ a {
15
+ color: #ff5500; } } }
@@ -0,0 +1,20 @@
1
+ # Generated by compass-jquery-plugin/gem-tasks/emulators.rake
2
+ # Install with: compass install jquery/emulators
3
+
4
+ file 'config/initializers/emulators.rb'
5
+ stylesheet 'emulators/blackberry.landscape.scss'
6
+ stylesheet 'emulators/blackberry.portrait.scss'
7
+ stylesheet 'emulators/ipad.landscape.scss'
8
+ stylesheet 'emulators/ipad.portrait.scss'
9
+ stylesheet 'emulators/iphone.landscape.scss'
10
+ stylesheet 'emulators/iphone.portrait.scss'
11
+ stylesheet 'emulators/palm.landscape.scss'
12
+ stylesheet 'emulators/palm.portrait.scss'
13
+ image 'emulators/blackberry.torch.landscape.png'
14
+ image 'emulators/blackberry.torch.portrait.png'
15
+ image 'emulators/ipad.landscape.png'
16
+ image 'emulators/ipad.portrait.png'
17
+ image 'emulators/iphone.landscape.png'
18
+ image 'emulators/iphone.portrait.png'
19
+ image 'emulators/palm.pre.landscape.png'
20
+ image 'emulators/palm.pre.portrait.png'
@@ -1,4 +1,4 @@
1
1
  require 'jquery/jqgrid'
2
2
  require 'jquery/gridify'
3
3
 
4
- ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqgrid => ['compiled/jquery.ui/jqGrid.css']
4
+ ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jqgrid => ['compiled/jquery/jqGrid.css']
@@ -12,7 +12,7 @@ $.jgrid = {
12
12
  recordtext: "Mostrant {0} - {1} de {2}",
13
13
  emptyrecords: "Sense registres que mostrar",
14
14
  loadtext: "Carregant...",
15
- pgtext : "Page {0} of {1}"
15
+ pgtext : "Pàgina {0} de {1}"
16
16
  },
17
17
  search : {
18
18
  caption: "Cerca...",
@@ -1,4 +1,4 @@
1
- (function(b){b.jgrid={defaults:{recordtext:"Mostrant {0} - {1} de {2}",emptyrecords:"Sense registres que mostrar",loadtext:"Carregant...",pgtext:"Page {0} of {1}"},search:{caption:"Cerca...",Find:"Cercar",Reset:"Buidar",odata:["equal","not equal","less","less or equal","greater","greater or equal","begins with","does not begin with","is in","is not in","ends with","does not end with","contains","does not contain"],groupOps:[{op:"AND",text:"tot"},{op:"OR",text:"qualsevol"}],matchText:" match",rulesText:" rules"},
1
+ (function(b){b.jgrid={defaults:{recordtext:"Mostrant {0} - {1} de {2}",emptyrecords:"Sense registres que mostrar",loadtext:"Carregant...",pgtext:"Pàgina {0} de {1}"},search:{caption:"Cerca...",Find:"Cercar",Reset:"Buidar",odata:["equal","not equal","less","less or equal","greater","greater or equal","begins with","does not begin with","is in","is not in","ends with","does not end with","contains","does not contain"],groupOps:[{op:"AND",text:"tot"},{op:"OR",text:"qualsevol"}],matchText:" match",rulesText:" rules"},
2
2
  edit:{addCaption:"Afegir registre",editCaption:"Modificar registre",bSubmit:"Guardar",bCancel:"Cancelar",bClose:"Tancar",saveData:"Les dades han canviat. Guardar canvis?",bYes:"Yes",bNo:"No",bExit:"Cancel",msg:{required:"Camp obligatori",number:"Introdueixi un nombre",minValue:"El valor ha de ser major o igual que ",maxValue:"El valor ha de ser menor o igual a ",email:"no és una direcció de correu vàlida",integer:"Introdueixi un valor enter",date:"Introdueixi una data correcta ",url:"no és una URL vàlida. Prefix requerit ('http://' or 'https://')",
3
3
  nodefined:" is not defined!",novalue:" return value is required!",customarray:"Custom function should return array!",customfcheck:"Custom function should be present in case of custom checking!"}},view:{caption:"Veure registre",bClose:"Tancar"},del:{caption:"Eliminar",msg:"¿Desitja eliminar els registres seleccionats?",bSubmit:"Eliminar",bCancel:"Cancelar"},nav:{edittext:" ",edittitle:"Modificar fila seleccionada",addtext:" ",addtitle:"Agregar nova fila",deltext:" ",deltitle:"Eliminar fila seleccionada",
4
4
  searchtext:" ",searchtitle:"Cercar informació",refreshtext:"",refreshtitle:"Refrescar taula",alertcap:"Avís",alerttext:"Seleccioni una fila",viewtext:" ",viewtitle:"Veure fila seleccionada"},col:{caption:"Mostrar/ocultar columnes",bSubmit:"Enviar",bCancel:"Cancelar"},errors:{errcap:"Error",nourl:"No s'ha especificat una URL",norecords:"No hi ha dades per processar",model:"Les columnes de noms són diferents de les columnes del model"},formatter:{integer:{thousandsSeparator:".",defaultValue:"0"},number:{decimalSeparator:",",
@@ -4,6 +4,11 @@
4
4
  * Version 1.0.0 (developed for jQuery Grid 3.3.1)
5
5
  * Olaf Klöppel opensource@blue-hit.de
6
6
  * http://blue-hit.de/
7
+ *
8
+ * Updated for jqGrid 3.8
9
+ * Andreas Flack
10
+ * http://www.contentcontrol-berlin.de
11
+ *
7
12
  * Dual licensed under the MIT and GPL licenses:
8
13
  * http://www.opensource.org/licenses/mit-license.php
9
14
  * http://www.gnu.org/licenses/gpl.html
@@ -17,12 +22,12 @@ $.jgrid = {
17
22
  },
18
23
  search : {
19
24
  caption: "Suche...",
20
- Find: "Finden",
25
+ Find: "Suchen",
21
26
  Reset: "Zurücksetzen",
22
27
  odata : ['gleich', 'ungleich', 'kleiner', 'kleiner gleich','größer','größer gleich', 'beginnt mit','beginnt nicht mit','ist in','ist nicht in','endet mit','endet nicht mit','enthält','enthält nicht'],
23
- groupOps: [ { op: "AND", text: "alle" }, { op: "OR", text: "mindestens eins" } ],
24
- matchText: " match",
25
- rulesText: " rules"
28
+ groupOps: [ { op: "AND", text: "alle" }, { op: "OR", text: "mindestens eine" } ],
29
+ matchText: " erfülle",
30
+ rulesText: " Bedingung(en)"
26
31
  },
27
32
  edit : {
28
33
  addCaption: "Datensatz hinzufügen",
@@ -39,10 +44,10 @@ $.jgrid = {
39
44
  number: "Bitte geben Sie eine Zahl ein",
40
45
  minValue:"Wert muss größer oder gleich sein, als ",
41
46
  maxValue:"Wert muss kleiner oder gleich sein, als ",
42
- email: "ist keine valide E-Mail Adresse",
47
+ email: "ist keine gültige E-Mail-Adresse",
43
48
  integer: "Bitte geben Sie eine Ganzzahl ein",
44
49
  date: "Bitte geben Sie ein gültiges Datum ein",
45
- url: "ist keine gültige URL. Prefix muss eingegeben werden ('http://' oder 'https://')",
50
+ url: "ist keine gültige URL. Präfix muss eingegeben werden ('http://' oder 'https://')",
46
51
  nodefined : " ist nicht definiert!",
47
52
  novalue : " Rückgabewert ist erforderlich!",
48
53
  customarray : "Benutzerdefinierte Funktion sollte ein Array zurückgeben!",
@@ -50,7 +55,7 @@ $.jgrid = {
50
55
  }
51
56
  },
52
57
  view : {
53
- caption: "Datensatz anschauen",
58
+ caption: "Datensatz anzeigen",
54
59
  bClose: "Schließen"
55
60
  },
56
61
  del : {
@@ -61,13 +66,13 @@ $.jgrid = {
61
66
  },
62
67
  nav : {
63
68
  edittext: " ",
64
- edittitle: "Ausgewählten Zeile editieren",
69
+ edittitle: "Ausgewählte Zeile editieren",
65
70
  addtext:" ",
66
- addtitle: "Neuen Zeile einfügen",
71
+ addtitle: "Neue Zeile einfügen",
67
72
  deltext: " ",
68
73
  deltitle: "Ausgewählte Zeile löschen",
69
74
  searchtext: " ",
70
- searchtitle: "Datensatz finden",
75
+ searchtitle: "Datensatz suchen",
71
76
  refreshtext: "",
72
77
  refreshtitle: "Tabelle neu laden",
73
78
  alertcap: "Warnung",
@@ -76,18 +81,18 @@ $.jgrid = {
76
81
  viewtitle: "Ausgewählte Zeile anzeigen"
77
82
  },
78
83
  col : {
79
- caption: "Spalten anzeigen/verbergen",
84
+ caption: "Spalten auswählen",
80
85
  bSubmit: "Speichern",
81
86
  bCancel: "Abbrechen"
82
87
  },
83
88
  errors : {
84
89
  errcap : "Fehler",
85
90
  nourl : "Keine URL angegeben",
86
- norecords: "Keine Datensätze zum verarbeiten",
91
+ norecords: "Keine Datensätze zu bearbeiten",
87
92
  model : "colNames und colModel sind unterschiedlich lang!"
88
93
  },
89
94
  formatter : {
90
- integer : {thousandsSeparator: " ", defaultValue: '0'},
95
+ integer : {thousandsSeparator: ".", defaultValue: '0'},
91
96
  number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0,00'},
92
97
  currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:" €", defaultValue: '0,00'},
93
98
  date : {
@@ -100,14 +105,14 @@ $.jgrid = {
100
105
  "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"
101
106
  ],
102
107
  AmPm : ["am","pm","AM","PM"],
103
- S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
108
+ S: function (j) {return 'ter'},
104
109
  srcformat: 'Y-m-d',
105
- newformat: 'd/m/Y',
110
+ newformat: 'd.m.Y',
106
111
  masks : {
107
- ISO8601Long:"d.m.Y H:i:s",
108
- ISO8601Short:"d.m.Y",
112
+ ISO8601Long: "Y-m-d H:i:s",
113
+ ISO8601Short: "Y-m-d",
109
114
  ShortDate: "j.n.Y",
110
- LongDate: "l, d. F Y",
115
+ LongDate: "l, j. F Y",
111
116
  FullDateTime: "l, d. F Y G:i:s",
112
117
  MonthDay: "d. F",
113
118
  ShortTime: "G:i",
@@ -1,7 +1,7 @@
1
- (function(b){b.jgrid={defaults:{recordtext:"Zeige {0} - {1} von {2}",emptyrecords:"Keine Datensätze vorhanden",loadtext:"Lädt...",pgtext:"Seite {0} von {1}"},search:{caption:"Suche...",Find:"Finden",Reset:"Zurücksetzen",odata:["gleich","ungleich","kleiner","kleiner gleich","größer","größer gleich","beginnt mit","beginnt nicht mit","ist in","ist nicht in","endet mit","endet nicht mit","enthält","enthält nicht"],groupOps:[{op:"AND",text:"alle"},{op:"OR",text:"mindestens eins"}],matchText:" match",rulesText:" rules"},
2
- edit:{addCaption:"Datensatz hinzufügen",editCaption:"Datensatz bearbeiten",bSubmit:"Speichern",bCancel:"Abbrechen",bClose:"Schließen",saveData:"Daten wurden geändert! Änderungen speichern?",bYes:"ja",bNo:"nein",bExit:"abbrechen",msg:{required:"Feld ist erforderlich",number:"Bitte geben Sie eine Zahl ein",minValue:"Wert muss größer oder gleich sein, als ",maxValue:"Wert muss kleiner oder gleich sein, als ",email:"ist keine valide E-Mail Adresse",integer:"Bitte geben Sie eine Ganzzahl ein",date:"Bitte geben Sie ein gültiges Datum ein",
3
- url:"ist keine gültige URL. Prefix muss eingegeben werden ('http://' oder 'https://')",nodefined:" ist nicht definiert!",novalue:" Rückgabewert ist erforderlich!",customarray:"Benutzerdefinierte Funktion sollte ein Array zurückgeben!",customfcheck:"Benutzerdefinierte Funktion sollte im Falle der benutzerdefinierten Überprüfung vorhanden sein!"}},view:{caption:"Datensatz anschauen",bClose:"Schließen"},del:{caption:"Löschen",msg:"Ausgewählte Datensätze löschen?",bSubmit:"Löschen",bCancel:"Abbrechen"},
4
- nav:{edittext:" ",edittitle:"Ausgewählten Zeile editieren",addtext:" ",addtitle:"Neuen Zeile einfügen",deltext:" ",deltitle:"Ausgewählte Zeile löschen",searchtext:" ",searchtitle:"Datensatz finden",refreshtext:"",refreshtitle:"Tabelle neu laden",alertcap:"Warnung",alerttext:"Bitte Zeile auswählen",viewtext:"",viewtitle:"Ausgewählte Zeile anzeigen"},col:{caption:"Spalten anzeigen/verbergen",bSubmit:"Speichern",bCancel:"Abbrechen"},errors:{errcap:"Fehler",nourl:"Keine URL angegeben",norecords:"Keine Datensätze zum verarbeiten",
5
- model:"colNames und colModel sind unterschiedlich lang!"},formatter:{integer:{thousandsSeparator:" ",defaultValue:"0"},number:{decimalSeparator:",",thousandsSeparator:".",decimalPlaces:2,defaultValue:"0,00"},currency:{decimalSeparator:",",thousandsSeparator:".",decimalPlaces:2,prefix:"",suffix:" €",defaultValue:"0,00"},date:{dayNames:["So","Mo","Di","Mi","Do","Fr","Sa","Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],monthNames:["Jan","Feb","Mar","Apr","Mai","Jun","Jul",
6
- "Aug","Sep","Okt","Nov","Dez","Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],AmPm:["am","pm","AM","PM"],S:function(a){return a<11||a>13?["st","nd","rd","th"][Math.min((a-1)%10,3)]:"th"},srcformat:"Y-m-d",newformat:"d/m/Y",masks:{ISO8601Long:"d.m.Y H:i:s",ISO8601Short:"d.m.Y",ShortDate:"j.n.Y",LongDate:"l, d. F Y",FullDateTime:"l, d. F Y G:i:s",MonthDay:"d. F",ShortTime:"G:i",LongTime:"G:i:s",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",
1
+ (function(a){a.jgrid={defaults:{recordtext:"Zeige {0} - {1} von {2}",emptyrecords:"Keine Datensätze vorhanden",loadtext:"Lädt...",pgtext:"Seite {0} von {1}"},search:{caption:"Suche...",Find:"Suchen",Reset:"Zurücksetzen",odata:["gleich","ungleich","kleiner","kleiner gleich","größer","größer gleich","beginnt mit","beginnt nicht mit","ist in","ist nicht in","endet mit","endet nicht mit","enthält","enthält nicht"],groupOps:[{op:"AND",text:"alle"},{op:"OR",text:"mindestens eine"}],matchText:" erfülle",
2
+ rulesText:" Bedingung(en)"},edit:{addCaption:"Datensatz hinzufügen",editCaption:"Datensatz bearbeiten",bSubmit:"Speichern",bCancel:"Abbrechen",bClose:"Schließen",saveData:"Daten wurden geändert! Änderungen speichern?",bYes:"ja",bNo:"nein",bExit:"abbrechen",msg:{required:"Feld ist erforderlich",number:"Bitte geben Sie eine Zahl ein",minValue:"Wert muss größer oder gleich sein, als ",maxValue:"Wert muss kleiner oder gleich sein, als ",email:"ist keine gültige E-Mail-Adresse",integer:"Bitte geben Sie eine Ganzzahl ein",
3
+ date:"Bitte geben Sie ein gültiges Datum ein",url:"ist keine gültige URL. Präfix muss eingegeben werden ('http://' oder 'https://')",nodefined:" ist nicht definiert!",novalue:" Rückgabewert ist erforderlich!",customarray:"Benutzerdefinierte Funktion sollte ein Array zurückgeben!",customfcheck:"Benutzerdefinierte Funktion sollte im Falle der benutzerdefinierten Überprüfung vorhanden sein!"}},view:{caption:"Datensatz anzeigen",bClose:"Schließen"},del:{caption:"Löschen",msg:"Ausgewählte Datensätze löschen?",
4
+ bSubmit:"Löschen",bCancel:"Abbrechen"},nav:{edittext:" ",edittitle:"Ausgewählte Zeile editieren",addtext:" ",addtitle:"Neue Zeile einfügen",deltext:" ",deltitle:"Ausgewählte Zeile löschen",searchtext:" ",searchtitle:"Datensatz suchen",refreshtext:"",refreshtitle:"Tabelle neu laden",alertcap:"Warnung",alerttext:"Bitte Zeile auswählen",viewtext:"",viewtitle:"Ausgewählte Zeile anzeigen"},col:{caption:"Spalten auswählen",bSubmit:"Speichern",bCancel:"Abbrechen"},errors:{errcap:"Fehler",nourl:"Keine URL angegeben",
5
+ norecords:"Keine Datensätze zu bearbeiten",model:"colNames und colModel sind unterschiedlich lang!"},formatter:{integer:{thousandsSeparator:".",defaultValue:"0"},number:{decimalSeparator:",",thousandsSeparator:".",decimalPlaces:2,defaultValue:"0,00"},currency:{decimalSeparator:",",thousandsSeparator:".",decimalPlaces:2,prefix:"",suffix:" €",defaultValue:"0,00"},date:{dayNames:["So","Mo","Di","Mi","Do","Fr","Sa","Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],monthNames:["Jan",
6
+ "Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez","Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],AmPm:["am","pm","AM","PM"],S:function(){return"ter"},srcformat:"Y-m-d",newformat:"d.m.Y",masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"j.n.Y",LongDate:"l, j. F Y",FullDateTime:"l, d. F Y G:i:s",MonthDay:"d. F",ShortTime:"G:i",LongTime:"G:i:s",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",
7
7
  YearMonth:"F Y"},reformatAfterEdit:false},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:true},idName:"id"}}})(jQuery);
@@ -36,8 +36,8 @@ $.jgrid = {
36
36
  msg: {
37
37
  required: "Champ obligatoire",
38
38
  number: "Saisissez un nombre correct",
39
- minValue: "La valeur doit être supérieure ou égale à 0",
40
- maxValue: "La valeur doit être inférieure ou égale à 0",
39
+ minValue: "La valeur doit être supérieure ou égale à",
40
+ maxValue: "La valeur doit être inférieure ou égale à",
41
41
  email: "n'est pas un email correct",
42
42
  integer: "Saisissez un entier correct",
43
43
  url: "n'est pas une adresse correcte. Préfixe requis ('http://' or 'https://')",
@@ -1,5 +1,5 @@
1
1
  (function(a){a.jgrid={defaults:{recordtext:"Enregistrements {0} - {1} sur {2}",emptyrecords:"Aucun enregistrement à afficher",loadtext:"Chargement...",pgtext:"Page {0} sur {1}"},search:{caption:"Recherche...",Find:"Chercher",Reset:"Annuler",odata:["égal","différent","inférieur","inférieur ou égal","supérieur","supérieur ou égal","commence par","ne commence pas par","est dans","n'est pas dans","finit par","ne finit pas par","contient","ne contient pas"],groupOps:[{op:"AND",text:"tous"},{op:"OR",text:"aucun"}],
2
- matchText:" correspondance",rulesText:" règles"},edit:{addCaption:"Ajouter",editCaption:"Editer",bSubmit:"Valider",bCancel:"Annuler",bClose:"Fermer",saveData:"Les données ont changé ! Enregistrer les modifications ?",bYes:"Oui",bNo:"Non",bExit:"Annuler",msg:{required:"Champ obligatoire",number:"Saisissez un nombre correct",minValue:"La valeur doit être supérieure ou égale à 0",maxValue:"La valeur doit être inférieure ou égale à 0",email:"n'est pas un email correct",integer:"Saisissez un entier correct",
2
+ matchText:" correspondance",rulesText:" règles"},edit:{addCaption:"Ajouter",editCaption:"Editer",bSubmit:"Valider",bCancel:"Annuler",bClose:"Fermer",saveData:"Les données ont changé ! Enregistrer les modifications ?",bYes:"Oui",bNo:"Non",bExit:"Annuler",msg:{required:"Champ obligatoire",number:"Saisissez un nombre correct",minValue:"La valeur doit être supérieure ou égale à",maxValue:"La valeur doit être inférieure ou égale à",email:"n'est pas un email correct",integer:"Saisissez un entier correct",
3
3
  url:"n'est pas une adresse correcte. Préfixe requis ('http://' or 'https://')",nodefined:" n'est pas défini!",novalue:" la valeur de retour est requise!",customarray:"Une fonction personnalisée devrait retourner un tableau (array)!",customfcheck:"Une fonction personnalisée devrait être présente dans le cas d'une vérification personnalisée!"}},view:{caption:"Voir les enregistrement",bClose:"Fermer"},del:{caption:"Supprimer",msg:"Supprimer les enregistrements sélectionnés ?",bSubmit:"Supprimer",bCancel:"Annuler"},
4
4
  nav:{edittext:" ",edittitle:"Editer la ligne sélectionnée",addtext:" ",addtitle:"Ajouter une ligne",deltext:" ",deltitle:"Supprimer la ligne sélectionnée",searchtext:" ",searchtitle:"Chercher un enregistrement",refreshtext:"",refreshtitle:"Recharger le tableau",alertcap:"Avertissement",alerttext:"Veuillez sélectionner une ligne",viewtext:"",viewtitle:"Afficher la ligne sélectionnée"},col:{caption:"Afficher/Masquer les colonnes",bSubmit:"Valider",bCancel:"Annuler"},errors:{errcap:"Erreur",nourl:"Aucune adresse n'est paramétrée",
5
5
  norecords:"Aucun enregistrement à traiter",model:"Nombre de titres (colNames) <> Nombre de données (colModel)!"},formatter:{integer:{thousandsSeparator:" ",defaultValue:"0"},number:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,defaultValue:"0,00"},currency:{decimalSeparator:",",thousandsSeparator:" ",decimalPlaces:2,prefix:"",suffix:"",defaultValue:"0,00"},date:{dayNames:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam","Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],monthNames:["Jan",
@@ -700,12 +700,12 @@ $.extend($.ui.multiselect, {
700
700
 
701
701
  ;(function ($) {
702
702
  /*
703
- * jqGrid 3.8 - jQuery Grid
703
+ * jqGrid 3.8.1 - jQuery Grid
704
704
  * Copyright (c) 2008, Tony Tomov, tony@trirand.com
705
705
  * Dual licensed under the MIT and GPL licenses
706
706
  * http://www.opensource.org/licenses/mit-license.php
707
707
  * http://www.gnu.org/licenses/gpl-2.0.html
708
- * Date: 2010-09-21
708
+ * Date: 2010-10-24
709
709
  */
710
710
  $.jgrid = $.jgrid || {};
711
711
  $.extend($.jgrid,{
@@ -1788,9 +1788,9 @@ $.fn.jqGrid = function( pin ) {
1788
1788
  }
1789
1789
  if(ts.p.gridview === false ) {
1790
1790
  if( ts.p.treeGrid === true) {
1791
- fpos = ts.p.treeANode >= -1 ? ts.p.treeANode: 0;
1791
+ fpos = ts.p.treeANode > -1 ? ts.p.treeANode: 0;
1792
1792
  row = $(rowData.join(''))[0]; // speed overhead
1793
- $(ts.rows[j+fpos+rcnt]).after(row);
1793
+ $(ts.rows[j+fpos]).after(row);
1794
1794
  try {$(ts).jqGrid("setTreeNode",rd,row);} catch (e) {}
1795
1795
  } else {
1796
1796
  $("tbody:first",t).append(rowData.join(''));
@@ -1952,9 +1952,9 @@ $.fn.jqGrid = function( pin ) {
1952
1952
  if(locdata) { rd[locid] = idr; ts.p.data.push(rd); }
1953
1953
  if(ts.p.gridview === false ) {
1954
1954
  if( ts.p.treeGrid === true) {
1955
- fpos = ts.p.treeANode >= -1 ? ts.p.treeANode: 0;
1955
+ fpos = ts.p.treeANode > -1 ? ts.p.treeANode: 0;
1956
1956
  row = $(rowData.join(''))[0];
1957
- $(ts.rows[i+fpos+rcnt]).after(row);
1957
+ $(ts.rows[i+fpos]).after(row);
1958
1958
  try {$(ts).jqGrid("setTreeNode",rd,row);} catch (e) {}
1959
1959
  } else {
1960
1960
  $("#"+ts.p.id+" tbody:first").append(rowData.join(''));
@@ -3862,7 +3862,14 @@ var createModal = function(aIDs, content, p, insertSelector, posSelector, append
3862
3862
  });
3863
3863
  if (p.width === 0 || !p.width) {p.width = 300;}
3864
3864
  if(p.height === 0 || !p.height) {p.height =200;}
3865
- if(!p.zIndex) {p.zIndex = 950;}
3865
+ if(!p.zIndex) {
3866
+ var parentZ = $(insertSelector).parents("*[role=dialog]").first().css("z-index")
3867
+ if(parentZ)
3868
+ p.zIndex = parseInt(parentZ)+1
3869
+ else
3870
+ p.zIndex = 950;
3871
+
3872
+ }
3866
3873
  var rtlt = 0;
3867
3874
  if( rtlsup && coord.left && !appendsel) {
3868
3875
  rtlt = jQuery(p.gbox).width()- (!isNaN(p.width) ? parseInt(p.width,10) :0) - 8; // to do
@@ -4415,63 +4422,63 @@ function checkValues(val, valref,g) {
4415
4422
  **/
4416
4423
  var rp_ge = null;
4417
4424
  $.jgrid.extend({
4418
- searchGrid : function (p) {
4419
- p = $.extend({
4420
- recreateFilter: false,
4421
- drag: true,
4422
- sField:'searchField',
4423
- sValue:'searchString',
4424
- sOper: 'searchOper',
4425
- sFilter: 'filters',
4425
+ searchGrid : function (p) {
4426
+ p = $.extend({
4427
+ recreateFilter: false,
4428
+ drag: true,
4429
+ sField:'searchField',
4430
+ sValue:'searchString',
4431
+ sOper: 'searchOper',
4432
+ sFilter: 'filters',
4426
4433
  loadDefaults: true, // this options activates loading of default filters from grid's postData for Multipe Search only.
4427
- beforeShowSearch: null,
4428
- afterShowSearch : null,
4429
- onInitializeSearch: null,
4430
- closeAfterSearch : false,
4431
- closeAfterReset: false,
4432
- closeOnEscape : false,
4433
- multipleSearch : false,
4434
- cloneSearchRowOnAdd: true,
4435
- // translation
4436
- // if you want to change or remove the order change it in sopt
4437
- // ['bw','eq','ne','lt','le','gt','ge','ew','cn']
4438
- sopt: null,
4439
- // Note: stringResult is intentionally declared "undefined by default".
4440
- // you are velcome to define stringResult expressly in the options you pass to searchGrid()
4441
- // stringResult is a "safeguard" measure to insure we post sensible data when communicated as form-encoded
4442
- // see http://github.com/tonytomov/jqGrid/issues/#issue/36
4443
- //
4444
- // If this value is not expressly defined in the incoming options,
4445
- // lower in the code we will infer the value based on value of multipleSearch
4446
- stringResult: undefined,
4447
- onClose : null,
4448
- // useDataProxy allows ADD, EDIT and DEL code to bypass calling $.ajax
4449
- // directly when grid's 'dataProxy' property (grid.p.dataProxy) is a function.
4450
- // Used for "editGridRow" and "delGridRow" below and automatically flipped to TRUE
4451
- // when ajax setting's 'url' (grid's 'editurl') property is undefined.
4452
- // When 'useDataProxy' is true, instead of calling $.ajax.call(gridDOMobj, o, i) we call
4453
- // gridDOMobj.p.dataProxy.call(gridDOMobj, o, i)
4454
- //
4455
- // Behavior is extremely similar to when 'datatype' is a function, but arguments are slightly different.
4456
- // Normally the following is fed to datatype.call(a, b, c):
4457
- // a = Pointer to grid's table DOM element, b = grid.p.postdata, c = "load_"+grid's ID
4458
- // In cases of "edit" and "del" the following is fed:
4459
- // a = Pointer to grid's table DOM element (same),
4460
- // b = extended Ajax Options including postdata in "data" property. (different object type)
4461
- // c = "set_"+grid's ID in case of "edit" and "del_"+grid's ID in case of "del" (same type, different content)
4462
- // The major difference is that complete ajax options object, with attached "complete" and "error"
4463
- // callback functions is fed instead of only post data.
4464
- // This allows you to emulate a $.ajax call (including calling "complete"/"error"),
4465
- // while retrieving the data locally in the browser.
4466
- useDataProxy: false,
4467
- overlay : true
4468
- }, $.jgrid.search, p || {});
4469
- return this.each(function() {
4470
- var $t = this;
4471
- if(!$t.grid) {return;}
4472
- var fid = "fbox_"+$t.p.id;
4434
+ beforeShowSearch: null,
4435
+ afterShowSearch : null,
4436
+ onInitializeSearch: null,
4437
+ closeAfterSearch : false,
4438
+ closeAfterReset: false,
4439
+ closeOnEscape : false,
4440
+ multipleSearch : false,
4441
+ cloneSearchRowOnAdd: true,
4442
+ // translation
4443
+ // if you want to change or remove the order change it in sopt
4444
+ // ['bw','eq','ne','lt','le','gt','ge','ew','cn']
4445
+ sopt: null,
4446
+ // Note: stringResult is intentionally declared "undefined by default".
4447
+ // you are velcome to define stringResult expressly in the options you pass to searchGrid()
4448
+ // stringResult is a "safeguard" measure to insure we post sensible data when communicated as form-encoded
4449
+ // see http://github.com/tonytomov/jqGrid/issues/#issue/36
4450
+ //
4451
+ // If this value is not expressly defined in the incoming options,
4452
+ // lower in the code we will infer the value based on value of multipleSearch
4453
+ stringResult: undefined,
4454
+ onClose : null,
4455
+ // useDataProxy allows ADD, EDIT and DEL code to bypass calling $.ajax
4456
+ // directly when grid's 'dataProxy' property (grid.p.dataProxy) is a function.
4457
+ // Used for "editGridRow" and "delGridRow" below and automatically flipped to TRUE
4458
+ // when ajax setting's 'url' (grid's 'editurl') property is undefined.
4459
+ // When 'useDataProxy' is true, instead of calling $.ajax.call(gridDOMobj, o, i) we call
4460
+ // gridDOMobj.p.dataProxy.call(gridDOMobj, o, i)
4461
+ //
4462
+ // Behavior is extremely similar to when 'datatype' is a function, but arguments are slightly different.
4463
+ // Normally the following is fed to datatype.call(a, b, c):
4464
+ // a = Pointer to grid's table DOM element, b = grid.p.postdata, c = "load_"+grid's ID
4465
+ // In cases of "edit" and "del" the following is fed:
4466
+ // a = Pointer to grid's table DOM element (same),
4467
+ // b = extended Ajax Options including postdata in "data" property. (different object type)
4468
+ // c = "set_"+grid's ID in case of "edit" and "del_"+grid's ID in case of "del" (same type, different content)
4469
+ // The major difference is that complete ajax options object, with attached "complete" and "error"
4470
+ // callback functions is fed instead of only post data.
4471
+ // This allows you to emulate a $.ajax call (including calling "complete"/"error"),
4472
+ // while retrieving the data locally in the browser.
4473
+ useDataProxy: false,
4474
+ overlay : true
4475
+ }, $.jgrid.search, p || {});
4476
+ return this.each(function() {
4477
+ var $t = this;
4478
+ if(!$t.grid) {return;}
4479
+ var fid = "fbox_"+$t.p.id;
4473
4480
  function applyDefaultFilters(gridDOMobj, filterSettings) {
4474
- /*
4481
+ /*
4475
4482
  gridDOMobj = ointer to grid DOM object ( $(#list)[0] )
4476
4483
  What we need from gridDOMobj:
4477
4484
  gridDOMobj.SearchFilter is the pointer to the Search box, once it's created.
@@ -4483,10 +4490,10 @@ $.jgrid.extend({
4483
4490
  // Pulling default filter settings out of postData property of grid's properties.:
4484
4491
  var defaultFilters = gridDOMobj.p.postData[filterSettings.sFilter];
4485
4492
  // example of what we might get: {"groupOp":"and","rules":[{"field":"amount","op":"eq","data":"100"}]}
4486
- // suppose we have imported this with grid import, the this is a string.
4487
- if(typeof(defaultFilters) == "string") {
4488
- defaultFilters = $.jgrid.parse(defaultFilters);
4489
- }
4493
+ // suppose we have imported this with grid import, the this is a string.
4494
+ if(typeof(defaultFilters) == "string") {
4495
+ defaultFilters = $.jgrid.parse(defaultFilters);
4496
+ }
4490
4497
  if (defaultFilters) {
4491
4498
  if (defaultFilters.groupOp) {
4492
4499
  gridDOMobj.SearchFilter.setGroupOp(defaultFilters.groupOp);
@@ -4501,1790 +4508,1793 @@ $.jgrid.extend({
4501
4508
  'sfref':gridDOMobj.SearchFilter.$.find(".sf:last"),
4502
4509
  'filter':$.extend({},f)
4503
4510
  });
4504
- if (success) { gridDOMobj.SearchFilter.add(); }
4511
+ if (success) { gridDOMobj.SearchFilter.add(); }
4505
4512
  }
4506
4513
  }
4507
4514
  }
4508
- }
4515
+ }
4509
4516
  } // end of applyDefaultFilters
4510
- function hideFilter(selector) {
4511
- if(p.onClose){
4512
- var fclm = p.onClose(selector);
4513
- if(typeof fclm == 'boolean' && !fclm) { return; }
4514
- }
4515
- selector.hide();
4516
- if(p.overlay === true) {
4517
- $(".jqgrid-overlay:first","#gbox_"+$t.p.id).hide();
4518
- }
4519
- }
4520
- function showFilter(){
4521
- var fl = $(".ui-searchFilter").length;
4522
- if(fl > 1) {
4523
- var zI = $("#"+fid).css("zIndex");
4524
- $("#"+fid).css({zIndex:parseInt(zI,10)+fl});
4525
- }
4526
- $("#"+fid).show();
4527
- if(p.overlay === true) {
4528
- $(".jqgrid-overlay:first","#gbox_"+$t.p.id).show();
4529
- }
4530
- try{$(':input:visible',"#"+fid)[0].focus();}catch(_){}
4531
- }
4532
- function searchFilters(filters) {
4533
- var hasFilters = (filters !== undefined),
4534
- grid = $("#"+$t.p.id),
4535
- sdata={};
4536
- if(p.multipleSearch===false) {
4537
- sdata[p.sField] = filters.rules[0].field;
4538
- sdata[p.sValue] = filters.rules[0].data;
4539
- sdata[p.sOper] = filters.rules[0].op;
4540
- } else {
4541
- sdata[p.sFilter] = filters;
4542
- }
4543
- grid[0].p.search = hasFilters;
4544
- $.extend(grid[0].p.postData,sdata);
4545
- grid.trigger("reloadGrid",[{page:1}]);
4546
- if(p.closeAfterSearch) { hideFilter($("#"+fid)); }
4547
- }
4548
- function resetFilters(op) {
4549
- var reload = op && op.hasOwnProperty("reload") ? op.reload : true,
4550
- grid = $("#"+$t.p.id),
4551
- sdata={};
4552
- grid[0].p.search = false;
4553
- if(p.multipleSearch===false) {
4554
- sdata[p.sField] = sdata[p.sValue] = sdata[p.sOper] = "";
4555
- } else {
4556
- sdata[p.sFilter] = "";
4557
- }
4558
- $.extend(grid[0].p.postData,sdata);
4559
- if(reload) {
4560
- grid.trigger("reloadGrid",[{page:1}]);
4561
- }
4562
- if(p.closeAfterReset) { hideFilter($("#"+fid)); }
4563
- }
4564
- if($.fn.searchFilter) {
4565
- if(p.recreateFilter===true) {$("#"+fid).remove();}
4566
- if( $("#"+fid).html() != null ) {
4567
- if ( $.isFunction(p.beforeShowSearch) ) { p.beforeShowSearch($("#"+fid)); }
4568
- showFilter();
4569
- if( $.isFunction(p.afterShowSearch) ) { p.afterShowSearch($("#"+fid)); }
4570
- } else {
4571
- var fields = [],
4572
- colNames = $("#"+$t.p.id).jqGrid("getGridParam","colNames"),
4573
- colModel = $("#"+$t.p.id).jqGrid("getGridParam","colModel"),
4574
- stempl = ['eq','ne','lt','le','gt','ge','bw','bn','in','ni','ew','en','cn','nc'],
4575
- j,pos,k,oprtr=[];
4576
- if (p.sopt !==null) {
4577
- k=0;
4578
- for(j=0;j<p.sopt.length;j++) {
4579
- if( (pos= $.inArray(p.sopt[j],stempl)) != -1 ){
4580
- oprtr[k] = {op:p.sopt[j],text: p.odata[pos]};
4581
- k++;
4582
- }
4583
- }
4584
- } else {
4585
- for(j=0;j<stempl.length;j++) {
4586
- oprtr[j] = {op:stempl[j],text: p.odata[j]};
4587
- }
4588
- }
4589
- $.each(colModel, function(i, v) {
4590
- var searchable = (typeof v.search === 'undefined') ? true: v.search ,
4591
- hidden = (v.hidden === true),
4592
- soptions = $.extend({}, {text: colNames[i], itemval: v.index || v.name}, this.searchoptions),
4593
- ignoreHiding = (soptions.searchhidden === true);
4594
- if(typeof soptions.sopt !== 'undefined') {
4595
- k=0;
4596
- soptions.ops =[];
4597
- if(soptions.sopt.length>0) {
4598
- for(j=0;j<soptions.sopt.length;j++) {
4599
- if( (pos= $.inArray(soptions.sopt[j],stempl)) != -1 ){
4600
- soptions.ops[k] = {op:soptions.sopt[j],text: p.odata[pos]};
4601
- k++;
4602
- }
4603
- }
4604
- }
4605
- }
4606
- if(typeof(this.stype) === 'undefined') { this.stype='text'; }
4607
- if(this.stype == 'select') {
4608
- if ( soptions.dataUrl !== undefined) {}
4609
- else {
4610
- var eov;
4611
- if(soptions.value) {
4612
- eov = soptions.value;
4613
- } else if(this.editoptions) {
4614
- eov = this.editoptions.value;
4615
- }
4616
- if(eov) {
4617
- soptions.dataValues =[];
4618
- if(typeof(eov) === 'string') {
4619
- var so = eov.split(";"),sv;
4620
- for(j=0;j<so.length;j++) {
4621
- sv = so[j].split(":");
4622
- soptions.dataValues[j] ={value:sv[0],text:sv[1]};
4623
- }
4624
- } else if (typeof(eov) === 'object') {
4625
- j=0;
4626
- for (var key in eov) {
4627
- if(eov.hasOwnProperty(key)) {
4628
- soptions.dataValues[j] ={value:key,text:eov[key]};
4629
- j++;
4630
- }
4631
- }
4632
- }
4633
- }
4634
- }
4635
- }
4636
- if ((ignoreHiding && searchable) || (searchable && !hidden)) {
4637
- fields.push(soptions);
4638
- }
4639
- });
4640
- if(fields.length>0){
4641
- $("<div id='"+fid+"' role='dialog' tabindex='-1'></div>").insertBefore("#gview_"+$t.p.id);
4642
- // Before we create searchFilter we need to decide if we want to get back a string or a JS object.
4643
- // see http://github.com/tonytomov/jqGrid/issues/#issue/36 for background on the issue.
4644
- // If p.stringResult is defined, it was explisitly passed to us by user. Honor the choice, whatever it is.
4645
- if (p.stringResult===undefined) {
4646
- // to provide backward compatibility, inferring stringResult value from multipleSearch
4647
- p.stringResult = p.multipleSearch;
4648
- }
4649
- // we preserve the return value here to retain access to .add() and other good methods of search form.
4650
- $t.SearchFilter = $("#"+fid).searchFilter(fields, { groupOps: p.groupOps, operators: oprtr, onClose:hideFilter, resetText: p.Reset, searchText: p.Find, windowTitle: p.caption, rulesText:p.rulesText, matchText:p.matchText, onSearch: searchFilters, onReset: resetFilters,stringResult:p.stringResult, ajaxSelectOptions: $.extend({},$.jgrid.ajaxOptions,$t.p.ajaxSelectOptions ||{}), clone: p.cloneSearchRowOnAdd });
4651
- $(".ui-widget-overlay","#"+fid).remove();
4652
- if($t.p.direction=="rtl") { $(".ui-closer","#"+fid).css("float","left"); }
4653
- if (p.drag===true) {
4654
- $("#"+fid+" table thead tr:first td:first").css('cursor','move');
4655
- if(jQuery.fn.jqDrag) {
4656
- $("#"+fid).jqDrag($("#"+fid+" table thead tr:first td:first"));
4657
- } else {
4658
- try {
4659
- $("#"+fid).draggable({handle: $("#"+fid+" table thead tr:first td:first")});
4660
- } catch (e) {}
4661
- }
4662
- }
4663
- if(p.multipleSearch === false) {
4664
- $(".ui-del, .ui-add, .ui-del, .ui-add-last, .matchText, .rulesText", "#"+fid).hide();
4665
- $("select[name='groupOp']","#"+fid).hide();
4666
- }
4517
+ function hideFilter(selector) {
4518
+ if(p.onClose){
4519
+ var fclm = p.onClose(selector);
4520
+ if(typeof fclm == 'boolean' && !fclm) { return; }
4521
+ }
4522
+ selector.hide();
4523
+ if(p.overlay === true) {
4524
+ $(".jqgrid-overlay:first","#gbox_"+$t.p.id).hide();
4525
+ }
4526
+ }
4527
+ function showFilter(){
4528
+ var fl = $(".ui-searchFilter").length;
4529
+ if(fl > 1) {
4530
+ var zI = $("#"+fid).css("zIndex");
4531
+ $("#"+fid).css({zIndex:parseInt(zI,10)+fl});
4532
+ }
4533
+ $("#"+fid).show();
4534
+ if(p.overlay === true) {
4535
+ $(".jqgrid-overlay:first","#gbox_"+$t.p.id).show();
4536
+ }
4537
+ try{$(':input:visible',"#"+fid)[0].focus();}catch(_){}
4538
+ }
4539
+ function searchFilters(filters) {
4540
+ var hasFilters = (filters !== undefined),
4541
+ grid = $("#"+$t.p.id),
4542
+ sdata={};
4543
+ if(p.multipleSearch===false) {
4544
+ sdata[p.sField] = filters.rules[0].field;
4545
+ sdata[p.sValue] = filters.rules[0].data;
4546
+ sdata[p.sOper] = filters.rules[0].op;
4547
+ } else {
4548
+ sdata[p.sFilter] = filters;
4549
+ }
4550
+ grid[0].p.search = hasFilters;
4551
+ $.extend(grid[0].p.postData,sdata);
4552
+ grid.trigger("reloadGrid",[{page:1}]);
4553
+ if(p.closeAfterSearch) { hideFilter($("#"+fid)); }
4554
+ }
4555
+ function resetFilters(op) {
4556
+ var reload = op && op.hasOwnProperty("reload") ? op.reload : true,
4557
+ grid = $("#"+$t.p.id),
4558
+ sdata={};
4559
+ grid[0].p.search = false;
4560
+ if(p.multipleSearch===false) {
4561
+ sdata[p.sField] = sdata[p.sValue] = sdata[p.sOper] = "";
4562
+ } else {
4563
+ sdata[p.sFilter] = "";
4564
+ }
4565
+ $.extend(grid[0].p.postData,sdata);
4566
+ if(reload) {
4567
+ grid.trigger("reloadGrid",[{page:1}]);
4568
+ }
4569
+ if(p.closeAfterReset) { hideFilter($("#"+fid)); }
4570
+ }
4571
+ if($.fn.searchFilter) {
4572
+ if(p.recreateFilter===true) {$("#"+fid).remove();}
4573
+ if( $("#"+fid).html() != null ) {
4574
+ if ( $.isFunction(p.beforeShowSearch) ) { p.beforeShowSearch($("#"+fid)); }
4575
+ showFilter();
4576
+ if( $.isFunction(p.afterShowSearch) ) { p.afterShowSearch($("#"+fid)); }
4577
+ } else {
4578
+ var fields = [],
4579
+ colNames = $("#"+$t.p.id).jqGrid("getGridParam","colNames"),
4580
+ colModel = $("#"+$t.p.id).jqGrid("getGridParam","colModel"),
4581
+ stempl = ['eq','ne','lt','le','gt','ge','bw','bn','in','ni','ew','en','cn','nc'],
4582
+ j,pos,k,oprtr=[];
4583
+ if (p.sopt !==null) {
4584
+ k=0;
4585
+ for(j=0;j<p.sopt.length;j++) {
4586
+ if( (pos= $.inArray(p.sopt[j],stempl)) != -1 ){
4587
+ oprtr[k] = {op:p.sopt[j],text: p.odata[pos]};
4588
+ k++;
4589
+ }
4590
+ }
4591
+ } else {
4592
+ for(j=0;j<stempl.length;j++) {
4593
+ oprtr[j] = {op:stempl[j],text: p.odata[j]};
4594
+ }
4595
+ }
4596
+ $.each(colModel, function(i, v) {
4597
+ var searchable = (typeof v.search === 'undefined') ? true: v.search ,
4598
+ hidden = (v.hidden === true),
4599
+ soptions = $.extend({}, {text: colNames[i], itemval: v.index || v.name}, this.searchoptions),
4600
+ ignoreHiding = (soptions.searchhidden === true);
4601
+ if(typeof soptions.sopt !== 'undefined') {
4602
+ k=0;
4603
+ soptions.ops =[];
4604
+ if(soptions.sopt.length>0) {
4605
+ for(j=0;j<soptions.sopt.length;j++) {
4606
+ if( (pos= $.inArray(soptions.sopt[j],stempl)) != -1 ){
4607
+ soptions.ops[k] = {op:soptions.sopt[j],text: p.odata[pos]};
4608
+ k++;
4609
+ }
4610
+ }
4611
+ }
4612
+ }
4613
+ if(typeof(this.stype) === 'undefined') { this.stype='text'; }
4614
+ if(this.stype == 'select') {
4615
+ if ( soptions.dataUrl !== undefined) {}
4616
+ else {
4617
+ var eov;
4618
+ if(soptions.value) {
4619
+ eov = soptions.value;
4620
+ } else if(this.editoptions) {
4621
+ eov = this.editoptions.value;
4622
+ }
4623
+ if(eov) {
4624
+ soptions.dataValues =[];
4625
+ if(typeof(eov) === 'string') {
4626
+ var so = eov.split(";"),sv;
4627
+ for(j=0;j<so.length;j++) {
4628
+ sv = so[j].split(":");
4629
+ soptions.dataValues[j] ={value:sv[0],text:sv[1]};
4630
+ }
4631
+ } else if (typeof(eov) === 'object') {
4632
+ j=0;
4633
+ for (var key in eov) {
4634
+ if(eov.hasOwnProperty(key)) {
4635
+ soptions.dataValues[j] ={value:key,text:eov[key]};
4636
+ j++;
4637
+ }
4638
+ }
4639
+ }
4640
+ }
4641
+ }
4642
+ }
4643
+ if ((ignoreHiding && searchable) || (searchable && !hidden)) {
4644
+ fields.push(soptions);
4645
+ }
4646
+ });
4647
+ if(fields.length>0){
4648
+ $("<div id='"+fid+"' role='dialog' tabindex='-1'></div>").insertBefore("#gview_"+$t.p.id);
4649
+ // Before we create searchFilter we need to decide if we want to get back a string or a JS object.
4650
+ // see http://github.com/tonytomov/jqGrid/issues/#issue/36 for background on the issue.
4651
+ // If p.stringResult is defined, it was explisitly passed to us by user. Honor the choice, whatever it is.
4652
+ if (p.stringResult===undefined) {
4653
+ // to provide backward compatibility, inferring stringResult value from multipleSearch
4654
+ p.stringResult = p.multipleSearch;
4655
+ }
4656
+ // we preserve the return value here to retain access to .add() and other good methods of search form.
4657
+ $t.SearchFilter = $("#"+fid).searchFilter(fields, { groupOps: p.groupOps, operators: oprtr, onClose:hideFilter, resetText: p.Reset, searchText: p.Find, windowTitle: p.caption, rulesText:p.rulesText, matchText:p.matchText, onSearch: searchFilters, onReset: resetFilters,stringResult:p.stringResult, ajaxSelectOptions: $.extend({},$.jgrid.ajaxOptions,$t.p.ajaxSelectOptions ||{}), clone: p.cloneSearchRowOnAdd });
4658
+ $(".ui-widget-overlay","#"+fid).remove();
4659
+ if($t.p.direction=="rtl") { $(".ui-closer","#"+fid).css("float","left"); }
4660
+ if (p.drag===true) {
4661
+ $("#"+fid+" table thead tr:first td:first").css('cursor','move');
4662
+ if(jQuery.fn.jqDrag) {
4663
+ $("#"+fid).jqDrag($("#"+fid+" table thead tr:first td:first"));
4664
+ } else {
4665
+ try {
4666
+ $("#"+fid).draggable({handle: $("#"+fid+" table thead tr:first td:first")});
4667
+ } catch (e) {}
4668
+ }
4669
+ }
4670
+ if(p.multipleSearch === false) {
4671
+ $(".ui-del, .ui-add, .ui-del, .ui-add-last, .matchText, .rulesText", "#"+fid).hide();
4672
+ $("select[name='groupOp']","#"+fid).hide();
4673
+ }
4667
4674
  if (p.multipleSearch === true && p.loadDefaults === true) {
4668
4675
  applyDefaultFilters($t, p);
4669
4676
  }
4670
- if ( $.isFunction(p.onInitializeSearch) ) { p.onInitializeSearch( $("#"+fid) ); }
4671
- if ( $.isFunction(p.beforeShowSearch) ) { p.beforeShowSearch($("#"+fid)); }
4672
- showFilter();
4673
- if( $.isFunction(p.afterShowSearch) ) { p.afterShowSearch($("#"+fid)); }
4674
- if(p.closeOnEscape===true){
4675
- $("#"+fid).keydown( function( e ) {
4676
- if( e.which == 27 ) {
4677
- hideFilter($("#"+fid));
4678
- }
4679
- });
4680
- }
4681
- }
4682
- }
4683
- }
4684
- });
4685
- },
4686
- editGridRow : function(rowid, p){
4687
- p = $.extend({
4688
- top : 0,
4689
- left: 0,
4690
- width: 300,
4691
- height: 'auto',
4692
- dataheight: 'auto',
4693
- modal: false,
4694
- drag: true,
4695
- resize: true,
4696
- url: null,
4697
- mtype : "POST",
4698
- clearAfterAdd :true,
4699
- closeAfterEdit : false,
4700
- reloadAfterSubmit : true,
4701
- onInitializeForm: null,
4702
- beforeInitData: null,
4703
- beforeShowForm: null,
4704
- afterShowForm: null,
4705
- beforeSubmit: null,
4706
- afterSubmit: null,
4707
- onclickSubmit: null,
4708
- afterComplete: null,
4709
- onclickPgButtons : null,
4710
- afterclickPgButtons: null,
4711
- editData : {},
4712
- recreateForm : false,
4713
- jqModal : true,
4714
- closeOnEscape : false,
4715
- addedrow : "first",
4716
- topinfo : '',
4717
- bottominfo: '',
4718
- saveicon : [],
4719
- closeicon : [],
4720
- savekey: [false,13],
4721
- navkeys: [false,38,40],
4722
- checkOnSubmit : false,
4723
- checkOnUpdate : false,
4724
- _savedData : {},
4725
- processing : false,
4726
- onClose : null,
4727
- ajaxEditOptions : {},
4728
- serializeEditData : null,
4729
- viewPagerButtons : true
4730
- }, $.jgrid.edit, p || {});
4731
- rp_ge = p;
4732
- return this.each(function(){
4733
- var $t = this;
4734
- if (!$t.grid || !rowid) { return; }
4735
- var gID = $t.p.id,
4736
- frmgr = "FrmGrid_"+gID,frmtb = "TblGrid_"+gID,
4737
- IDs = {themodal:'editmod'+gID,modalhead:'edithd'+gID,modalcontent:'editcnt'+gID, scrollelm : frmgr},
4738
- onBeforeShow = $.isFunction(rp_ge.beforeShowForm) ? rp_ge.beforeShowForm : false,
4739
- onAfterShow = $.isFunction(rp_ge.afterShowForm) ? rp_ge.afterShowForm : false,
4740
- onBeforeInit = $.isFunction(rp_ge.beforeInitData) ? rp_ge.beforeInitData : false,
4741
- onInitializeForm = $.isFunction(rp_ge.onInitializeForm) ? rp_ge.onInitializeForm : false,
4742
- copydata = null,
4743
- maxCols = 1, maxRows=0, postdata, extpost, newData, diff;
4744
- if (rowid=="new") {
4745
- rowid = "_empty";
4746
- p.caption=p.addCaption;
4747
- } else {
4748
- p.caption=p.editCaption;
4749
- }
4750
- if(p.recreateForm===true && $("#"+IDs.themodal).html() != null) {
4751
- $("#"+IDs.themodal).remove();
4752
- }
4753
- var closeovrl = true;
4754
- if(p.checkOnUpdate && p.jqModal && !p.modal) {
4755
- closeovrl = false;
4756
- }
4757
- function getFormData(){
4758
- $(".FormElement", "#"+frmtb).each(function(i) {
4759
- var celm = $(".customelement", this);
4760
- if (celm.length) {
4761
- var elem = celm[0], nm = $(elem).attr('name');
4762
- $.each($t.p.colModel, function(i,n){
4763
- if(this.name == nm && this.editoptions && $.isFunction(this.editoptions.custom_value)) {
4764
- try {
4765
- postdata[nm] = this.editoptions.custom_value($("#"+nm,"#"+frmtb),'get');
4766
- if (postdata[nm] === undefined) { throw "e1"; }
4767
- } catch (e) {
4768
- if (e=="e1") { info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+$.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose);}
4769
- else { info_dialog(jQuery.jgrid.errors.errcap,e.message,jQuery.jgrid.edit.bClose); }
4770
- }
4771
- return true;
4772
- }
4773
- });
4774
- } else {
4775
- switch ($(this).get(0).type) {
4776
- case "checkbox":
4777
- if($(this).attr("checked")) {
4778
- postdata[this.name]= $(this).val();
4779
- }else {
4780
- var ofv = $(this).attr("offval");
4781
- postdata[this.name]= ofv;
4782
- }
4783
- break;
4784
- case "select-one":
4785
- postdata[this.name]= $("option:selected",this).val();
4786
- extpost[this.name]= $("option:selected",this).text();
4787
- break;
4788
- case "select-multiple":
4789
- postdata[this.name]= $(this).val();
4790
- if(postdata[this.name]) { postdata[this.name] = postdata[this.name].join(","); }
4791
- else { postdata[this.name] =""; }
4792
- var selectedText = [];
4793
- $("option:selected",this).each(
4794
- function(i,selected){
4795
- selectedText[i] = $(selected).text();
4796
- }
4797
- );
4798
- extpost[this.name]= selectedText.join(",");
4799
- break;
4800
- case "password":
4801
- case "text":
4802
- case "textarea":
4803
- case "button":
4804
- postdata[this.name] = $(this).val();
4805
-
4806
- break;
4807
- }
4808
- if($t.p.autoencode) { postdata[this.name] = $.jgrid.htmlEncode(postdata[this.name]); }
4809
- }
4810
- });
4811
- return true;
4812
- }
4813
- function createData(rowid,obj,tb,maxcols){
4814
- var nm, hc,trdata, cnt=0,tmp, dc,elc, retpos=[], ind=false,
4815
- tdtmpl = "<td class='CaptionTD ui-widget-content'>&#160;</td><td class='DataTD ui-widget-content' style='white-space:pre'>&#160;</td>", tmpl=""; //*2
4816
- for (var i =1;i<=maxcols;i++) {
4817
- tmpl += tdtmpl;
4818
- }
4819
- if(rowid != '_empty') {
4820
- ind = $(obj).jqGrid("getInd",rowid);
4821
- }
4822
- $(obj.p.colModel).each( function(i) {
4823
- nm = this.name;
4824
- // hidden fields are included in the form
4825
- if(this.editrules && this.editrules.edithidden === true) {
4826
- hc = false;
4827
- } else {
4828
- hc = this.hidden === true ? true : false;
4829
- }
4830
- dc = hc ? "style='display:none'" : "";
4831
- if ( nm !== 'cb' && nm !== 'subgrid' && this.editable===true && nm !== 'rn') {
4832
- if(ind === false) {
4833
- tmp = "";
4834
- } else {
4835
- if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
4836
- tmp = $("td:eq("+i+")",obj.rows[ind]).text();
4837
- } else {
4838
- try {
4839
- tmp = $.unformat($("td:eq("+i+")",obj.rows[ind]),{rowId:rowid, colModel:this},i);
4840
- } catch (_) {
4841
- tmp = $("td:eq("+i+")",obj.rows[ind]).html();
4842
- }
4843
- }
4844
- }
4845
- var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm}),
4846
- frmopt = $.extend({}, {elmprefix:'',elmsuffix:'',rowabove:false,rowcontent:''}, this.formoptions || {}),
4847
- rp = parseInt(frmopt.rowpos,10) || cnt+1,
4848
- cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
4849
- if(rowid == "_empty" && opt.defaultValue ) {
4850
- tmp = $.isFunction(opt.defaultValue) ? opt.defaultValue() : opt.defaultValue;
4851
- }
4852
- if(!this.edittype) { this.edittype = "text"; }
4853
- if($t.p.autoencode) { tmp = $.jgrid.htmlDecode(tmp); }
4854
- elc = createEl(this.edittype,opt,tmp,false,$.extend({},$.jgrid.ajaxOptions,obj.p.ajaxSelectOptions || {}));
4855
- if(tmp === "" && this.edittype == "checkbox") {tmp = $(elc).attr("offval");}
4856
- if(tmp === "" && this.edittype == "select") {tmp = $("option:eq(0)",elc).text();}
4857
- if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = tmp; }
4858
- $(elc).addClass("FormElement");
4859
- trdata = $(tb).find("tr[rowpos="+rp+"]");
4860
- if(frmopt.rowabove) {
4861
- var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
4862
- $(tb).append(newdata);
4863
- newdata[0].rp = rp;
4864
- }
4865
- if ( trdata.length===0 ) {
4866
- trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","tr_"+nm);
4867
- $(trdata).append(tmpl);
4868
- $(tb).append(trdata);
4869
- trdata[0].rp = rp;
4870
- }
4871
- $("td:eq("+(cp-2)+")",trdata[0]).html( typeof frmopt.label === 'undefined' ? obj.p.colNames[i]: frmopt.label);
4872
- $("td:eq("+(cp-1)+")",trdata[0]).append(frmopt.elmprefix).append(elc).append(frmopt.elmsuffix);
4873
- retpos[cnt] = i;
4874
- cnt++;
4875
- }
4876
- });
4877
- if( cnt > 0) {
4878
- var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+obj.p.id+"_id' value='"+rowid+"'/></td></tr>");
4879
- idrow[0].rp = cnt+999;
4880
- $(tb).append(idrow);
4881
- if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) { rp_ge._savedData[obj.p.id+"_id"] = rowid; }
4882
- }
4883
- return retpos;
4884
- }
4885
- function fillData(rowid,obj,fmid){
4886
- var nm,cnt=0,tmp, fld,opt,vl,vlc;
4887
- if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {rp_ge._savedData = {};rp_ge._savedData[obj.p.id+"_id"]=rowid;}
4888
- var cm = obj.p.colModel;
4889
- if(rowid == '_empty') {
4890
- $(cm).each(function(i){
4891
- nm = this.name;
4892
- opt = $.extend({}, this.editoptions || {} );
4893
- fld = $("#"+$.jgrid.jqID(nm),"#"+fmid);
4894
- if(fld[0] != null) {
4895
- vl = "";
4896
- if(opt.defaultValue ) {
4897
- vl = $.isFunction(opt.defaultValue) ? opt.defaultValue() : opt.defaultValue;
4898
- if(fld[0].type=='checkbox') {
4899
- vlc = vl.toLowerCase();
4900
- if(vlc.search(/(false|0|no|off|undefined)/i)<0 && vlc!=="") {
4901
- fld[0].checked = true;
4902
- fld[0].defaultChecked = true;
4903
- fld[0].value = vl;
4904
- } else {
4905
- fld.attr({checked:"",defaultChecked:""});
4906
- }
4907
- } else {fld.val(vl); }
4908
- } else {
4909
- if( fld[0].type=='checkbox' ) {
4910
- fld[0].checked = false;
4911
- fld[0].defaultChecked = false;
4912
- vl = $(fld).attr("offval");
4913
- } else if (fld[0].type && fld[0].type.substr(0,6)=='select') {
4914
- fld[0].selectedIndex = 0;
4915
- } else {
4916
- fld.val(vl);
4917
- }
4918
- }
4919
- if(rp_ge.checkOnSubmit===true || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = vl; }
4920
- }
4921
- });
4922
- $("#id_g","#"+fmid).val(rowid);
4923
- return;
4924
- }
4925
- var tre = $(obj).jqGrid("getInd",rowid,true);
4926
- if(!tre) { return; }
4927
- $('td',tre).each( function(i) {
4928
- nm = cm[i].name;
4929
- // hidden fields are included in the form
4930
- if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && cm[i].editable===true) {
4931
- if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
4932
- tmp = $(this).text();
4933
- } else {
4934
- try {
4935
- tmp = $.unformat($(this),{rowId:rowid, colModel:cm[i]},i);
4936
- } catch (_) {
4937
- tmp = $(this).html();
4938
- }
4939
- }
4940
- if($t.p.autoencode) { tmp = $.jgrid.htmlDecode(tmp); }
4941
- if(rp_ge.checkOnSubmit===true || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = tmp; }
4942
- nm = $.jgrid.jqID(nm);
4943
- switch (cm[i].edittype) {
4944
- case "password":
4945
- case "text":
4946
- case "button" :
4947
- case "image":
4948
- $("#"+nm,"#"+fmid).val(tmp);
4949
- break;
4950
- case "textarea":
4951
- if(tmp == "&nbsp;" || tmp == "&#160;" || (tmp.length==1 && tmp.charCodeAt(0)==160) ) {tmp='';}
4952
- $("#"+nm,"#"+fmid).val(tmp);
4953
- break;
4954
- case "select":
4955
- var opv = tmp.split(",");
4956
- opv = $.map(opv,function(n){return $.trim(n);});
4957
- $("#"+nm+" option","#"+fmid).each(function(j){
4958
- if (!cm[i].editoptions.multiple && (opv[0] == $.trim($(this).text()) || opv[0] == $.trim($(this).val())) ){
4959
- this.selected= true;
4960
- } else if (cm[i].editoptions.multiple){
4961
- if( $.inArray($.trim($(this).text()), opv ) > -1 || $.inArray($.trim($(this).val()), opv ) > -1 ){
4962
- this.selected = true;
4963
- }else{
4964
- this.selected = false;
4965
- }
4966
- } else {
4967
- this.selected = false;
4968
- }
4969
- });
4970
- break;
4971
- case "checkbox":
4972
- tmp = tmp+"";
4973
- if(cm[i].editoptions && cm[i].editoptions.value) {
4974
- var cb = cm[i].editoptions.value.split(":");
4975
- if(cb[0] == tmp) {
4976
- $("#"+nm,"#"+fmid).attr("checked",true);
4977
- $("#"+nm,"#"+fmid).attr("defaultChecked",true); //ie
4978
- } else {
4979
- $("#"+nm,"#"+fmid).attr("checked",false);
4980
- $("#"+nm,"#"+fmid).attr("defaultChecked",""); //ie
4981
- }
4982
- } else {
4983
- tmp = tmp.toLowerCase();
4984
- if(tmp.search(/(false|0|no|off|undefined)/i)<0 && tmp!=="") {
4985
- $("#"+nm,"#"+fmid).attr("checked",true);
4986
- $("#"+nm,"#"+fmid).attr("defaultChecked",true); //ie
4987
- } else {
4988
- $("#"+nm,"#"+fmid).attr("checked",false);
4989
- $("#"+nm,"#"+fmid).attr("defaultChecked",""); //ie
4990
- }
4991
- }
4992
- break;
4993
- case 'custom' :
4994
- try {
4995
- if(cm[i].editoptions && $.isFunction(cm[i].editoptions.custom_value)) {
4996
- cm[i].editoptions.custom_value($("#"+nm,"#"+fmid),'set',tmp);
4997
- } else { throw "e1"; }
4998
- } catch (e) {
4999
- if (e=="e1") { info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+$.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);}
5000
- else { info_dialog(jQuery.jgrid.errors.errcap,e.message,jQuery.jgrid.edit.bClose); }
5001
- }
5002
- break;
5003
- }
5004
- cnt++;
5005
- }
5006
- });
5007
- if(cnt>0) { $("#id_g","#"+frmtb).val(rowid); }
5008
- }
5009
- function postIt() {
5010
- var ret=[true,"",""], onCS = {}, opers = $t.p.prmNames, idname, oper;
5011
- if($.isFunction(rp_ge.beforeCheckValues)) {
5012
- var retvals = rp_ge.beforeCheckValues(postdata,$("#"+frmgr),postdata[$t.p.id+"_id"] == "_empty" ? opers.addoper : opers.editoper);
5013
- if(retvals && typeof(retvals) === 'object') { postdata = retvals; }
5014
- }
5015
- for( var key in postdata ){
5016
- if(postdata.hasOwnProperty(key)) {
5017
- ret = checkValues(postdata[key],key,$t);
5018
- if(ret[0] === false) { break; }
5019
- }
5020
- }
5021
- if(ret[0]) {
5022
- if( $.isFunction( rp_ge.onclickSubmit)) { onCS = rp_ge.onclickSubmit(rp_ge,postdata) || {}; }
5023
- if( $.isFunction(rp_ge.beforeSubmit)) { ret = rp_ge.beforeSubmit(postdata,$("#"+frmgr)); }
5024
- }
5025
-
5026
- if(ret[0] && !rp_ge.processing) {
5027
- rp_ge.processing = true;
5028
- $("#sData", "#"+frmtb+"_2").addClass('ui-state-active');
5029
- oper = opers.oper;
5030
- idname = opers.id;
5031
- // we add to pos data array the action - the name is oper
5032
- postdata[oper] = ($.trim(postdata[$t.p.id+"_id"]) == "_empty") ? opers.addoper : opers.editoper;
5033
- if(postdata[oper] != opers.addoper) {
5034
- postdata[idname] = postdata[$t.p.id+"_id"];
5035
- } else {
5036
- // check to see if we have allredy this field in the form and if yes lieve it
5037
- if( postdata[idname] === undefined ) { postdata[idname] = postdata[$t.p.id+"_id"]; }
5038
- }
5039
- delete postdata[$t.p.id+"_id"];
5040
- postdata = $.extend(postdata,rp_ge.editData,onCS);
5041
-
5042
- if($t.p.restful) {
5043
- rp_ge.mtype = postdata.id == "_empty" ? "POST" : "PUT";
5044
- rp_ge.url = postdata.id == "_empty" ? $t.p.url : $t.p.url+"/"+postdata.id;
5045
- }
5046
-
5047
- var ajaxOptions = $.extend({
5048
- url: rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl'),
5049
- type: rp_ge.mtype,
5050
- data: $.isFunction(rp_ge.serializeEditData) ? rp_ge.serializeEditData(postdata) : postdata,
5051
- complete:function(data,Status){
5052
- if(Status != "success") {
5053
- ret[0] = false;
5054
- if ($.isFunction(rp_ge.errorTextFormat)) {
5055
- ret[1] = rp_ge.errorTextFormat(data);
5056
- } else {
5057
- ret[1] = Status + " Status: '" + data.statusText + "'. Error code: " + data.status;
5058
- }
5059
- } else {
5060
- // data is posted successful
5061
- // execute aftersubmit with the returned data from server
5062
- if( $.isFunction(rp_ge.afterSubmit) ) {
5063
- ret = rp_ge.afterSubmit(data,postdata);
5064
- }
5065
- }
5066
- if(ret[0] === false) {
5067
- $("#FormError>td","#"+frmtb).html(ret[1]);
5068
- $("#FormError","#"+frmtb).show();
5069
- } else {
5070
- // remove some values if formattaer select or checkbox
5071
- $.each($t.p.colModel, function(i,n){
5072
- if(extpost[this.name] && this.formatter && this.formatter=='select') {
5073
- try {delete extpost[this.name];} catch (e) {}
5074
- }
5075
- });
5076
- postdata = $.extend(postdata,extpost);
5077
- if($t.p.autoencode) {
5078
- $.each(postdata,function(n,v){
5079
- postdata[n] = $.jgrid.htmlDecode(v);
5080
- });
5081
- }
5082
- rp_ge.reloadAfterSubmit = rp_ge.reloadAfterSubmit && $t.p.datatype != "local";
5083
- // the action is add
5084
- if(postdata[oper] == opers.addoper ) {
5085
- //id processing
5086
- // user not set the id ret[2]
5087
- if(!ret[2]) { ret[2] = (parseInt($t.p.records,10)+1)+""; }
5088
- postdata[idname] = ret[2];
5089
- if(rp_ge.closeAfterAdd) {
5090
- if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
5091
- else {
5092
- $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow);
5093
- $($t).jqGrid("setSelection",ret[2]);
5094
- }
5095
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5096
- } else if (rp_ge.clearAfterAdd) {
5097
- if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
5098
- else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
5099
- fillData("_empty",$t,frmgr);
5100
- } else {
5101
- if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
5102
- else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
5103
- }
5104
- } else {
5105
- // the action is update
5106
- if(rp_ge.reloadAfterSubmit) {
5107
- $($t).trigger("reloadGrid");
5108
- if( !rp_ge.closeAfterEdit ) { setTimeout(function(){$($t).jqGrid("setSelection",postdata[idname]);},1000); }
5109
- } else {
5110
- if($t.p.treeGrid === true) {
5111
- $($t).jqGrid("setTreeRow",postdata[idname],postdata);
5112
- } else {
5113
- $($t).jqGrid("setRowData",postdata[idname],postdata);
5114
- }
5115
- }
5116
- if(rp_ge.closeAfterEdit) { hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose}); }
5117
- }
5118
- if($.isFunction(rp_ge.afterComplete)) {
5119
- copydata = data;
5120
- setTimeout(function(){rp_ge.afterComplete(copydata,postdata,$("#"+frmgr));copydata=null;},500);
5121
- }
5122
- }
5123
- rp_ge.processing=false;
5124
- if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
5125
- $("#"+frmgr).data("disabled",false);
5126
- if(rp_ge._savedData[$t.p.id+"_id"] !="_empty"){
5127
- for(var key in rp_ge._savedData) {
5128
- if(postdata[key]) {
5129
- rp_ge._savedData[key] = postdata[key];
5130
- }
5131
- }
5132
- }
5133
- }
5134
- $("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
5135
- try{$(':input:visible',"#"+frmgr)[0].focus();} catch (e){}
5136
- },
5137
- error:function(xhr,st,err){
5138
- $("#FormError>td","#"+frmtb).html(st+ " : "+err);
5139
- $("#FormError","#"+frmtb).show();
5140
- rp_ge.processing=false;
5141
- $("#"+frmgr).data("disabled",false);
5142
- $("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
5143
- }
5144
- }, $.jgrid.ajaxOptions, rp_ge.ajaxEditOptions );
5145
-
5146
- if (!ajaxOptions.url && !rp_ge.useDataProxy) {
5147
- if ($.isFunction($t.p.dataProxy)) {
5148
- rp_ge.useDataProxy = true;
5149
- } else {
5150
- ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl;
5151
- }
5152
- }
5153
- if (ret[0]) {
5154
- if (rp_ge.useDataProxy) { $t.p.dataProxy.call($t, ajaxOptions, "set_"+$t.p.id); }
5155
- else { $.ajax(ajaxOptions); }
5156
- }
5157
- }
5158
- if(ret[0] === false) {
5159
- $("#FormError>td","#"+frmtb).html(ret[1]);
5160
- $("#FormError","#"+frmtb).show();
5161
- // return;
5162
- }
5163
- }
5164
- function compareData(nObj, oObj ) {
5165
- var ret = false,key;
5166
- for (key in nObj) {
5167
- if(nObj[key] != oObj[key]) {
5168
- ret = true;
5169
- break;
5170
- }
5171
- }
5172
- return ret;
5173
- }
5174
- function checkUpdates () {
5175
- var stat = true;
5176
- $("#FormError","#"+frmtb).hide();
5177
- if(rp_ge.checkOnUpdate) {
5178
- postdata = {}; extpost={};
5179
- getFormData();
5180
- newData = $.extend({},postdata,extpost);
5181
- diff = compareData(newData,rp_ge._savedData);
5182
- if(diff) {
5183
- $("#"+frmgr).data("disabled",true);
5184
- $(".confirm","#"+IDs.themodal).show();
5185
- stat = false;
5186
- }
5187
- }
5188
- return stat;
5189
- }
5190
-
5191
- if ( $("#"+IDs.themodal).html() != null ) {
5192
- $(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
5193
- $("#FormError","#"+frmtb).hide();
5194
- if(rp_ge.topinfo) {
5195
- $(".topinfo","#"+frmtb+"_2").html(rp_ge.topinfo);
5196
- $(".tinfo","#"+frmtb+"_2").show();
5197
- } else {
5198
- $(".tinfo","#"+frmtb+"_2").hide();
5199
- }
5200
- if(rp_ge.bottominfo) {
5201
- $(".bottominfo","#"+frmtb+"_2").html(rp_ge.bottominfo);
5202
- $(".binfo","#"+frmtb+"_2").show();
5203
- } else {
5204
- $(".binfo","#"+frmtb+"_2").hide();
5205
- }
5206
- if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
5207
- // filldata
5208
- fillData(rowid,$t,frmgr);
5209
- ///
5210
- if(rowid=="_empty" || !rp_ge.viewPagerButtons) {
5211
- $("#pData, #nData","#"+frmtb+"_2").hide();
5212
- } else {
5213
- $("#pData, #nData","#"+frmtb+"_2").show();
5214
- }
5215
- if(rp_ge.processing===true) {
5216
- rp_ge.processing=false;
5217
- $("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
5218
- }
5219
- if($("#"+frmgr).data("disabled")===true) {
5220
- $(".confirm","#"+IDs.themodal).hide();
5221
- $("#"+frmgr).data("disabled",false);
5222
- }
5223
- if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
5224
- $("#"+IDs.themodal).data("onClose",rp_ge.onClose);
5225
- viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, closeoverlay: closeovrl, modal:p.modal});
5226
- if(!closeovrl) {
5227
- $(".jqmOverlay").click(function(){
5228
- if(!checkUpdates()) { return false; }
5229
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
5230
- return false;
5231
- });
5232
- }
5233
- if(onAfterShow) { onAfterShow($("#"+frmgr)); }
5234
- } else {
5235
- $($t.p.colModel).each( function(i) {
5236
- var fmto = this.formoptions;
5237
- maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
5238
- maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
5239
- });
5240
- var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px",
5241
- frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' onSubmit='return false;' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>").data("disabled",false),
5242
- tbl = $("<table id='"+frmtb+"' class='EditTable' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");
5243
- $(frm).append(tbl);
5244
- var flr = $("<tr id='FormError' style='display:none'><td class='ui-state-error' colspan='"+(maxCols*2)+"'></td></tr>");
5245
- flr[0].rp = 0;
5246
- $(tbl).append(flr);
5247
- //topinfo
5248
- flr = $("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+(maxCols*2)+"'>"+rp_ge.topinfo+"</td></tr>");
5249
- flr[0].rp = 0;
5250
- $(tbl).append(flr);
5251
- // set the id.
5252
- // use carefull only to change here colproperties.
5253
- if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
5254
- // create data
5255
- var rtlb = $t.p.direction == "rtl" ? true :false,
5256
- bp = rtlb ? "nData" : "pData",
5257
- bn = rtlb ? "pData" : "nData";
5258
- createData(rowid,$t,tbl,maxCols);
5259
- // buttons at footer
5260
- var bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></div>",
5261
- bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>",
5262
- bS ="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+p.bSubmit+"</a>",
5263
- bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bCancel+"</a>";
5264
- var bt = "<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bS+bC+"</td></tr>";
5265
- bt += "<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+rp_ge.bottominfo+"</td></tr>";
5266
- bt += "</tbody></table>";
5267
- if(maxRows > 0) {
5268
- var sd=[];
5269
- $.each($(tbl)[0].rows,function(i,r){
5270
- sd[i] = r;
5271
- });
5272
- sd.sort(function(a,b){
5273
- if(a.rp > b.rp) {return 1;}
5274
- if(a.rp < b.rp) {return -1;}
5275
- return 0;
5276
- });
5277
- $.each(sd, function(index, row) {
5278
- $('tbody',tbl).append(row);
5279
- });
5280
- }
5281
- p.gbox = "#gbox_"+gID;
5282
- var cle = false;
5283
- if(p.closeOnEscape===true){
5284
- p.closeOnEscape = false;
5285
- cle = true;
5286
- }
5287
- var tms = $("<span></span>").append(frm).append(bt);
5288
- createModal(IDs,tms,p,"#gview_"+$t.p.id,$("#gbox_"+$t.p.id)[0]);
5289
- if(rtlb) {
5290
- $("#pData, #nData","#"+frmtb+"_2").css("float","right");
5291
- $(".EditButton","#"+frmtb+"_2").css("text-align","left");
5292
- }
5293
- if(rp_ge.topinfo) { $(".tinfo","#"+frmtb+"_2").show(); }
5294
- if(rp_ge.bottominfo) { $(".binfo","#"+frmtb+"_2").show(); }
5295
- tms = null; bt=null;
5296
- $("#"+IDs.themodal).keydown( function( e ) {
5297
- var wkey = e.target;
5298
- if ($("#"+frmgr).data("disabled")===true ) { return false; }//??
5299
- if(rp_ge.savekey[0] === true && e.which == rp_ge.savekey[1]) { // save
5300
- if(wkey.tagName != "TEXTAREA") {
5301
- $("#sData", "#"+frmtb+"_2").trigger("click");
5302
- return false;
5303
- }
5304
- }
5305
- if(e.which === 27) {
5306
- if(!checkUpdates()) { return false; }
5307
- if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: rp_ge.onClose}); }
5308
- return false;
5309
- }
5310
- if(rp_ge.navkeys[0]===true) {
5311
- if($("#id_g","#"+frmtb).val() == "_empty") { return true; }
5312
- if(e.which == rp_ge.navkeys[1]){ //up
5313
- $("#pData", "#"+frmtb+"_2").trigger("click");
5314
- return false;
5315
- }
5316
- if(e.which == rp_ge.navkeys[2]){ //down
5317
- $("#nData", "#"+frmtb+"_2").trigger("click");
5318
- return false;
5319
- }
5320
- }
5321
- });
5322
- if(p.checkOnUpdate) {
5323
- $("a.ui-jqdialog-titlebar-close span","#"+IDs.themodal).removeClass("jqmClose");
5324
- $("a.ui-jqdialog-titlebar-close","#"+IDs.themodal).unbind("click")
5325
- .click(function(){
5326
- if(!checkUpdates()) { return false; }
5327
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5328
- return false;
5329
- });
5330
- }
5331
- p.saveicon = $.extend([true,"left","ui-icon-disk"],p.saveicon);
5332
- p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
5333
- // beforeinitdata after creation of the form
5334
- if(p.saveicon[0]===true) {
5335
- $("#sData","#"+frmtb+"_2").addClass(p.saveicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5336
- .append("<span class='ui-icon "+p.saveicon[2]+"'></span>");
5337
- }
5338
- if(p.closeicon[0]===true) {
5339
- $("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5340
- .append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
5341
- }
5342
- if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
5343
- bS ="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bYes+"</a>";
5344
- bN ="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bNo+"</a>";
5345
- bC ="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bExit+"</a>";
5346
- var ii, zI = p.zIndex || 999; zI ++;
5347
- if ($.browser.msie && $.browser.version ==6) {
5348
- ii = '<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>';
5349
- } else { ii="";}
5350
- $("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+zI+";display:none;'>&#160;"+ii+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(zI+1)+"'>"+p.saveData+"<br/><br/>"+bS+bN+bC+"</div>").insertAfter("#"+frmgr);
5351
- $("#sNew","#"+IDs.themodal).click(function(){
5352
- postIt();
5353
- $("#"+frmgr).data("disabled",false);
5354
- $(".confirm","#"+IDs.themodal).hide();
5355
- return false;
5356
- });
5357
- $("#nNew","#"+IDs.themodal).click(function(){
5358
- $(".confirm","#"+IDs.themodal).hide();
5359
- $("#"+frmgr).data("disabled",false);
5360
- setTimeout(function(){$(":input","#"+frmgr)[0].focus();},0);
5361
- return false;
5362
- });
5363
- $("#cNew","#"+IDs.themodal).click(function(){
5364
- $(".confirm","#"+IDs.themodal).hide();
5365
- $("#"+frmgr).data("disabled",false);
5366
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5367
- return false;
5368
- });
5369
- }
5370
- // here initform - only once
5371
- if(onInitializeForm) { onInitializeForm($("#"+frmgr)); }
5372
- if(rowid=="_empty" || !rp_ge.viewPagerButtons) { $("#pData,#nData","#"+frmtb+"_2").hide(); } else { $("#pData,#nData","#"+frmtb+"_2").show(); }
5373
- if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
5374
- $("#"+IDs.themodal).data("onClose",rp_ge.onClose);
5375
- viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal,closeoverlay:closeovrl,modal:p.modal});
5376
- if(!closeovrl) {
5377
- $(".jqmOverlay").click(function(){
5378
- if(!checkUpdates()) { return false; }
5379
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
5380
- return false;
5381
- });
5382
- }
5383
- if(onAfterShow) { onAfterShow($("#"+frmgr)); }
5384
- $(".fm-button","#"+IDs.themodal).hover(
5385
- function(){$(this).addClass('ui-state-hover');},
5386
- function(){$(this).removeClass('ui-state-hover');}
5387
- );
5388
- $("#sData", "#"+frmtb+"_2").click(function(e){
5389
- postdata = {}; extpost={};
5390
- $("#FormError","#"+frmtb).hide();
5391
- // all depend on ret array
5392
- //ret[0] - succes
5393
- //ret[1] - msg if not succes
5394
- //ret[2] - the id that will be set if reload after submit false
5395
- getFormData();
5396
- if(postdata[$t.p.id+"_id"] == "_empty") { postIt(); }
5397
- else if(p.checkOnSubmit===true ) {
5398
- newData = $.extend({},postdata,extpost);
5399
- diff = compareData(newData,rp_ge._savedData);
5400
- if(diff) {
5401
- $("#"+frmgr).data("disabled",true);
5402
- $(".confirm","#"+IDs.themodal).show();
5403
- } else {
5404
- postIt();
5405
- }
5406
- } else {
5407
- postIt();
5408
- }
5409
- return false;
5410
- });
5411
- $("#cData", "#"+frmtb+"_2").click(function(e){
5412
- if(!checkUpdates()) { return false; }
5413
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5414
- return false;
5415
- });
5416
- $("#nData", "#"+frmtb+"_2").click(function(e){
5417
- if(!checkUpdates()) { return false; }
5418
- $("#FormError","#"+frmtb).hide();
5419
- var npos = getCurrPos();
5420
- npos[0] = parseInt(npos[0],10);
5421
- if(npos[0] != -1 && npos[1][npos[0]+1]) {
5422
- if($.isFunction(p.onclickPgButtons)) {
5423
- p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
5424
- }
5425
- fillData(npos[1][npos[0]+1],$t,frmgr);
5426
- $($t).jqGrid("setSelection",npos[1][npos[0]+1]);
5427
- if($.isFunction(p.afterclickPgButtons)) {
5428
- p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
5429
- }
5430
- updateNav(npos[0]+1,npos[1].length-1);
5431
- }
5432
- return false;
5433
- });
5434
- $("#pData", "#"+frmtb+"_2").click(function(e){
5435
- if(!checkUpdates()) { return false; }
5436
- $("#FormError","#"+frmtb).hide();
5437
- var ppos = getCurrPos();
5438
- if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
5439
- if($.isFunction(p.onclickPgButtons)) {
5440
- p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
5441
- }
5442
- fillData(ppos[1][ppos[0]-1],$t,frmgr);
5443
- $($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
5444
- if($.isFunction(p.afterclickPgButtons)) {
5445
- p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
5446
- }
5447
- updateNav(ppos[0]-1,ppos[1].length-1);
5448
- }
5449
- return false;
5450
- });
5451
- }
5452
- function updateNav(cr,totr,rid){
5453
- if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5454
- if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5455
- }
5456
- function getCurrPos() {
5457
- var rowsInGrid = $($t).jqGrid("getDataIDs"),
5458
- selrow = $("#id_g","#"+frmtb).val(),
5459
- pos = $.inArray(selrow,rowsInGrid);
5460
- return [pos,rowsInGrid];
5461
- }
4677
+ if ( $.isFunction(p.onInitializeSearch) ) { p.onInitializeSearch( $("#"+fid) ); }
4678
+ if ( $.isFunction(p.beforeShowSearch) ) { p.beforeShowSearch($("#"+fid)); }
4679
+ showFilter();
4680
+ if( $.isFunction(p.afterShowSearch) ) { p.afterShowSearch($("#"+fid)); }
4681
+ if(p.closeOnEscape===true){
4682
+ $("#"+fid).keydown( function( e ) {
4683
+ if( e.which == 27 ) {
4684
+ hideFilter($("#"+fid));
4685
+ }
4686
+ });
4687
+ }
4688
+ }
4689
+ }
4690
+ }
4691
+ });
4692
+ },
4693
+ editGridRow : function(rowid, p){
4694
+ p = $.extend({
4695
+ top : 0,
4696
+ left: 0,
4697
+ width: 300,
4698
+ height: 'auto',
4699
+ dataheight: 'auto',
4700
+ modal: false,
4701
+ overlay : 10,
4702
+ drag: true,
4703
+ resize: true,
4704
+ url: null,
4705
+ mtype : "POST",
4706
+ clearAfterAdd :true,
4707
+ closeAfterEdit : false,
4708
+ reloadAfterSubmit : true,
4709
+ onInitializeForm: null,
4710
+ beforeInitData: null,
4711
+ beforeShowForm: null,
4712
+ afterShowForm: null,
4713
+ beforeSubmit: null,
4714
+ afterSubmit: null,
4715
+ onclickSubmit: null,
4716
+ afterComplete: null,
4717
+ onclickPgButtons : null,
4718
+ afterclickPgButtons: null,
4719
+ editData : {},
4720
+ recreateForm : false,
4721
+ jqModal : true,
4722
+ closeOnEscape : false,
4723
+ addedrow : "first",
4724
+ topinfo : '',
4725
+ bottominfo: '',
4726
+ saveicon : [],
4727
+ closeicon : [],
4728
+ savekey: [false,13],
4729
+ navkeys: [false,38,40],
4730
+ checkOnSubmit : false,
4731
+ checkOnUpdate : false,
4732
+ _savedData : {},
4733
+ processing : false,
4734
+ onClose : null,
4735
+ ajaxEditOptions : {},
4736
+ serializeEditData : null,
4737
+ viewPagerButtons : true
4738
+ }, $.jgrid.edit, p || {});
4739
+ rp_ge = p;
4740
+ return this.each(function(){
4741
+ var $t = this;
4742
+ if (!$t.grid || !rowid) { return; }
4743
+ var gID = $t.p.id,
4744
+ frmgr = "FrmGrid_"+gID,frmtb = "TblGrid_"+gID,
4745
+ IDs = {themodal:'editmod'+gID,modalhead:'edithd'+gID,modalcontent:'editcnt'+gID, scrollelm : frmgr},
4746
+ onBeforeShow = $.isFunction(rp_ge.beforeShowForm) ? rp_ge.beforeShowForm : false,
4747
+ onAfterShow = $.isFunction(rp_ge.afterShowForm) ? rp_ge.afterShowForm : false,
4748
+ onBeforeInit = $.isFunction(rp_ge.beforeInitData) ? rp_ge.beforeInitData : false,
4749
+ onInitializeForm = $.isFunction(rp_ge.onInitializeForm) ? rp_ge.onInitializeForm : false,
4750
+ copydata = null,
4751
+ maxCols = 1, maxRows=0, postdata, extpost, newData, diff;
4752
+ if (rowid=="new") {
4753
+ rowid = "_empty";
4754
+ p.caption=p.addCaption;
4755
+ } else {
4756
+ p.caption=p.editCaption;
4757
+ }
4758
+ if(p.recreateForm===true && $("#"+IDs.themodal).html() != null) {
4759
+ $("#"+IDs.themodal).remove();
4760
+ }
4761
+ var closeovrl = true;
4762
+ if(p.checkOnUpdate && p.jqModal && !p.modal) {
4763
+ closeovrl = false;
4764
+ }
4765
+ function getFormData(){
4766
+ $(".FormElement", "#"+frmtb).each(function(i) {
4767
+ var celm = $(".customelement", this);
4768
+ if (celm.length) {
4769
+ var elem = celm[0], nm = $(elem).attr('name');
4770
+ $.each($t.p.colModel, function(i,n){
4771
+ if(this.name == nm && this.editoptions && $.isFunction(this.editoptions.custom_value)) {
4772
+ try {
4773
+ postdata[nm] = this.editoptions.custom_value($("#"+nm,"#"+frmtb),'get');
4774
+ if (postdata[nm] === undefined) { throw "e1"; }
4775
+ } catch (e) {
4776
+ if (e=="e1") { info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+$.jgrid.edit.msg.novalue,jQuery.jgrid.edit.bClose);}
4777
+ else { info_dialog(jQuery.jgrid.errors.errcap,e.message,jQuery.jgrid.edit.bClose); }
4778
+ }
4779
+ return true;
4780
+ }
4781
+ });
4782
+ } else {
4783
+ switch ($(this).get(0).type) {
4784
+ case "checkbox":
4785
+ if($(this).attr("checked")) {
4786
+ postdata[this.name]= $(this).val();
4787
+ }else {
4788
+ var ofv = $(this).attr("offval");
4789
+ postdata[this.name]= ofv;
4790
+ }
4791
+ break;
4792
+ case "select-one":
4793
+ postdata[this.name]= $("option:selected",this).val();
4794
+ extpost[this.name]= $("option:selected",this).text();
4795
+ break;
4796
+ case "select-multiple":
4797
+ postdata[this.name]= $(this).val();
4798
+ if(postdata[this.name]) { postdata[this.name] = postdata[this.name].join(","); }
4799
+ else { postdata[this.name] =""; }
4800
+ var selectedText = [];
4801
+ $("option:selected",this).each(
4802
+ function(i,selected){
4803
+ selectedText[i] = $(selected).text();
4804
+ }
4805
+ );
4806
+ extpost[this.name]= selectedText.join(",");
4807
+ break;
4808
+ case "password":
4809
+ case "text":
4810
+ case "textarea":
4811
+ case "button":
4812
+ postdata[this.name] = $(this).val();
4813
+
4814
+ break;
4815
+ }
4816
+ if($t.p.autoencode) { postdata[this.name] = $.jgrid.htmlEncode(postdata[this.name]); }
4817
+ }
4818
+ });
4819
+ return true;
4820
+ }
4821
+ function createData(rowid,obj,tb,maxcols){
4822
+ var nm, hc,trdata, cnt=0,tmp, dc,elc, retpos=[], ind=false,
4823
+ tdtmpl = "<td class='CaptionTD ui-widget-content'>&#160;</td><td class='DataTD ui-widget-content' style='white-space:pre'>&#160;</td>", tmpl=""; //*2
4824
+ for (var i =1;i<=maxcols;i++) {
4825
+ tmpl += tdtmpl;
4826
+ }
4827
+ if(rowid != '_empty') {
4828
+ ind = $(obj).jqGrid("getInd",rowid);
4829
+ }
4830
+ $(obj.p.colModel).each( function(i) {
4831
+ nm = this.name;
4832
+ // hidden fields are included in the form
4833
+ if(this.editrules && this.editrules.edithidden === true) {
4834
+ hc = false;
4835
+ } else {
4836
+ hc = this.hidden === true ? true : false;
4837
+ }
4838
+ dc = hc ? "style='display:none'" : "";
4839
+ if ( nm !== 'cb' && nm !== 'subgrid' && this.editable===true && nm !== 'rn') {
4840
+ if(ind === false) {
4841
+ tmp = "";
4842
+ } else {
4843
+ if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
4844
+ tmp = $("td:eq("+i+")",obj.rows[ind]).text();
4845
+ } else {
4846
+ try {
4847
+ tmp = $.unformat($("td:eq("+i+")",obj.rows[ind]),{rowId:rowid, colModel:this},i);
4848
+ } catch (_) {
4849
+ tmp = $("td:eq("+i+")",obj.rows[ind]).html();
4850
+ }
4851
+ }
4852
+ }
4853
+ var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm}),
4854
+ frmopt = $.extend({}, {elmprefix:'',elmsuffix:'',rowabove:false,rowcontent:''}, this.formoptions || {}),
4855
+ rp = parseInt(frmopt.rowpos,10) || cnt+1,
4856
+ cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
4857
+ if(rowid == "_empty" && opt.defaultValue ) {
4858
+ tmp = $.isFunction(opt.defaultValue) ? opt.defaultValue() : opt.defaultValue;
4859
+ }
4860
+ if(!this.edittype) { this.edittype = "text"; }
4861
+ if($t.p.autoencode) { tmp = $.jgrid.htmlDecode(tmp); }
4862
+ elc = createEl(this.edittype,opt,tmp,false,$.extend({},$.jgrid.ajaxOptions,obj.p.ajaxSelectOptions || {}));
4863
+ if(tmp === "" && this.edittype == "checkbox") {tmp = $(elc).attr("offval");}
4864
+ if(tmp === "" && this.edittype == "select") {tmp = $("option:eq(0)",elc).text();}
4865
+ if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = tmp; }
4866
+ $(elc).addClass("FormElement");
4867
+ trdata = $(tb).find("tr[rowpos="+rp+"]");
4868
+ if(frmopt.rowabove) {
4869
+ var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
4870
+ $(tb).append(newdata);
4871
+ newdata[0].rp = rp;
4872
+ }
4873
+ if ( trdata.length===0 ) {
4874
+ trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","tr_"+nm);
4875
+ $(trdata).append(tmpl);
4876
+ $(tb).append(trdata);
4877
+ trdata[0].rp = rp;
4878
+ }
4879
+ $("td:eq("+(cp-2)+")",trdata[0]).html( typeof frmopt.label === 'undefined' ? obj.p.colNames[i]: frmopt.label);
4880
+ $("td:eq("+(cp-1)+")",trdata[0]).append(frmopt.elmprefix).append(elc).append(frmopt.elmsuffix);
4881
+ retpos[cnt] = i;
4882
+ cnt++;
4883
+ }
4884
+ });
4885
+ if( cnt > 0) {
4886
+ var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+obj.p.id+"_id' value='"+rowid+"'/></td></tr>");
4887
+ idrow[0].rp = cnt+999;
4888
+ $(tb).append(idrow);
4889
+ if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) { rp_ge._savedData[obj.p.id+"_id"] = rowid; }
4890
+ }
4891
+ return retpos;
4892
+ }
4893
+ function fillData(rowid,obj,fmid){
4894
+ var nm,cnt=0,tmp, fld,opt,vl,vlc;
4895
+ if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {rp_ge._savedData = {};rp_ge._savedData[obj.p.id+"_id"]=rowid;}
4896
+ var cm = obj.p.colModel;
4897
+ if(rowid == '_empty') {
4898
+ $(cm).each(function(i){
4899
+ nm = this.name;
4900
+ opt = $.extend({}, this.editoptions || {} );
4901
+ fld = $("#"+$.jgrid.jqID(nm),"#"+fmid);
4902
+ if(fld[0] != null) {
4903
+ vl = "";
4904
+ if(opt.defaultValue ) {
4905
+ vl = $.isFunction(opt.defaultValue) ? opt.defaultValue() : opt.defaultValue;
4906
+ if(fld[0].type=='checkbox') {
4907
+ vlc = vl.toLowerCase();
4908
+ if(vlc.search(/(false|0|no|off|undefined)/i)<0 && vlc!=="") {
4909
+ fld[0].checked = true;
4910
+ fld[0].defaultChecked = true;
4911
+ fld[0].value = vl;
4912
+ } else {
4913
+ fld.attr({checked:"",defaultChecked:""});
4914
+ }
4915
+ } else {fld.val(vl); }
4916
+ } else {
4917
+ if( fld[0].type=='checkbox' ) {
4918
+ fld[0].checked = false;
4919
+ fld[0].defaultChecked = false;
4920
+ vl = $(fld).attr("offval");
4921
+ } else if (fld[0].type && fld[0].type.substr(0,6)=='select') {
4922
+ fld[0].selectedIndex = 0;
4923
+ } else {
4924
+ fld.val(vl);
4925
+ }
4926
+ }
4927
+ if(rp_ge.checkOnSubmit===true || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = vl; }
4928
+ }
4929
+ });
4930
+ $("#id_g","#"+fmid).val(rowid);
4931
+ return;
4932
+ }
4933
+ var tre = $(obj).jqGrid("getInd",rowid,true);
4934
+ if(!tre) { return; }
4935
+ $('td',tre).each( function(i) {
4936
+ nm = cm[i].name;
4937
+ // hidden fields are included in the form
4938
+ if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && cm[i].editable===true) {
4939
+ if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
4940
+ tmp = $(this).text();
4941
+ } else {
4942
+ try {
4943
+ tmp = $.unformat($(this),{rowId:rowid, colModel:cm[i]},i);
4944
+ } catch (_) {
4945
+ tmp = $(this).html();
4946
+ }
4947
+ }
4948
+ if($t.p.autoencode) { tmp = $.jgrid.htmlDecode(tmp); }
4949
+ if(rp_ge.checkOnSubmit===true || rp_ge.checkOnUpdate) { rp_ge._savedData[nm] = tmp; }
4950
+ nm = $.jgrid.jqID(nm);
4951
+ switch (cm[i].edittype) {
4952
+ case "password":
4953
+ case "text":
4954
+ case "button" :
4955
+ case "image":
4956
+ $("#"+nm,"#"+fmid).val(tmp);
4957
+ break;
4958
+ case "textarea":
4959
+ if(tmp == "&nbsp;" || tmp == "&#160;" || (tmp.length==1 && tmp.charCodeAt(0)==160) ) {tmp='';}
4960
+ $("#"+nm,"#"+fmid).val(tmp);
4961
+ break;
4962
+ case "select":
4963
+ var opv = tmp.split(",");
4964
+ opv = $.map(opv,function(n){return $.trim(n);});
4965
+ $("#"+nm+" option","#"+fmid).each(function(j){
4966
+ if (!cm[i].editoptions.multiple && (opv[0] == $.trim($(this).text()) || opv[0] == $.trim($(this).val())) ){
4967
+ this.selected= true;
4968
+ } else if (cm[i].editoptions.multiple){
4969
+ if( $.inArray($.trim($(this).text()), opv ) > -1 || $.inArray($.trim($(this).val()), opv ) > -1 ){
4970
+ this.selected = true;
4971
+ }else{
4972
+ this.selected = false;
4973
+ }
4974
+ } else {
4975
+ this.selected = false;
4976
+ }
4977
+ });
4978
+ break;
4979
+ case "checkbox":
4980
+ tmp = tmp+"";
4981
+ if(cm[i].editoptions && cm[i].editoptions.value) {
4982
+ var cb = cm[i].editoptions.value.split(":");
4983
+ if(cb[0] == tmp) {
4984
+ $("#"+nm,"#"+fmid).attr("checked",true);
4985
+ $("#"+nm,"#"+fmid).attr("defaultChecked",true); //ie
4986
+ } else {
4987
+ $("#"+nm,"#"+fmid).attr("checked",false);
4988
+ $("#"+nm,"#"+fmid).attr("defaultChecked",""); //ie
4989
+ }
4990
+ } else {
4991
+ tmp = tmp.toLowerCase();
4992
+ if(tmp.search(/(false|0|no|off|undefined)/i)<0 && tmp!=="") {
4993
+ $("#"+nm,"#"+fmid).attr("checked",true);
4994
+ $("#"+nm,"#"+fmid).attr("defaultChecked",true); //ie
4995
+ } else {
4996
+ $("#"+nm,"#"+fmid).attr("checked",false);
4997
+ $("#"+nm,"#"+fmid).attr("defaultChecked",""); //ie
4998
+ }
4999
+ }
5000
+ break;
5001
+ case 'custom' :
5002
+ try {
5003
+ if(cm[i].editoptions && $.isFunction(cm[i].editoptions.custom_value)) {
5004
+ cm[i].editoptions.custom_value($("#"+nm,"#"+fmid),'set',tmp);
5005
+ } else { throw "e1"; }
5006
+ } catch (e) {
5007
+ if (e=="e1") { info_dialog(jQuery.jgrid.errors.errcap,"function 'custom_value' "+$.jgrid.edit.msg.nodefined,jQuery.jgrid.edit.bClose);}
5008
+ else { info_dialog(jQuery.jgrid.errors.errcap,e.message,jQuery.jgrid.edit.bClose); }
5009
+ }
5010
+ break;
5011
+ }
5012
+ cnt++;
5013
+ }
5014
+ });
5015
+ if(cnt>0) { $("#id_g","#"+frmtb).val(rowid); }
5016
+ }
5017
+ function postIt() {
5018
+ var ret=[true,"",""], onCS = {}, opers = $t.p.prmNames, idname, oper;
5019
+ if($.isFunction(rp_ge.beforeCheckValues)) {
5020
+ var retvals = rp_ge.beforeCheckValues(postdata,$("#"+frmgr),postdata[$t.p.id+"_id"] == "_empty" ? opers.addoper : opers.editoper);
5021
+ if(retvals && typeof(retvals) === 'object') { postdata = retvals; }
5022
+ }
5023
+ for( var key in postdata ){
5024
+ if(postdata.hasOwnProperty(key)) {
5025
+ ret = checkValues(postdata[key],key,$t);
5026
+ if(ret[0] === false) { break; }
5027
+ }
5028
+ }
5029
+ if(ret[0]) {
5030
+ if( $.isFunction( rp_ge.onclickSubmit)) { onCS = rp_ge.onclickSubmit(rp_ge,postdata) || {}; }
5031
+ if( $.isFunction(rp_ge.beforeSubmit)) { ret = rp_ge.beforeSubmit(postdata,$("#"+frmgr)); }
5032
+ }
5462
5033
 
5463
- var posInit =getCurrPos();
5464
- updateNav(posInit[0],posInit[1].length-1);
5034
+ if(ret[0] && !rp_ge.processing) {
5035
+ rp_ge.processing = true;
5036
+ $("#sData", "#"+frmtb+"_2").addClass('ui-state-active');
5037
+ oper = opers.oper;
5038
+ idname = opers.id;
5039
+ // we add to pos data array the action - the name is oper
5040
+ postdata[oper] = ($.trim(postdata[$t.p.id+"_id"]) == "_empty") ? opers.addoper : opers.editoper;
5041
+ if(postdata[oper] != opers.addoper) {
5042
+ postdata[idname] = postdata[$t.p.id+"_id"];
5043
+ } else {
5044
+ // check to see if we have allredy this field in the form and if yes lieve it
5045
+ if( postdata[idname] === undefined ) { postdata[idname] = postdata[$t.p.id+"_id"]; }
5046
+ }
5047
+ delete postdata[$t.p.id+"_id"];
5048
+ postdata = $.extend(postdata,rp_ge.editData,onCS);
5465
5049
 
5466
- });
5467
- },
5468
- viewGridRow : function(rowid, p){
5469
- p = $.extend({
5470
- top : 0,
5471
- left: 0,
5472
- width: 0,
5473
- height: 'auto',
5474
- dataheight: 'auto',
5475
- modal: false,
5476
- drag: true,
5477
- resize: true,
5478
- jqModal: true,
5479
- closeOnEscape : false,
5480
- labelswidth: '30%',
5481
- closeicon: [],
5482
- navkeys: [false,38,40],
5483
- onClose: null,
5484
- beforeShowForm : null,
5485
- viewPagerButtons : true
5486
- }, $.jgrid.view, p || {});
5487
- return this.each(function(){
5488
- var $t = this;
5489
- if (!$t.grid || !rowid) { return; }
5490
- if(!p.imgpath) { p.imgpath= $t.p.imgpath; }
5491
- // I hate to rewrite code, but ...
5492
- var gID = $t.p.id,
5493
- frmgr = "ViewGrid_"+gID , frmtb = "ViewTbl_"+gID,
5494
- IDs = {themodal:'viewmod'+gID,modalhead:'viewhd'+gID,modalcontent:'viewcnt'+gID, scrollelm : frmgr},
5495
- maxCols = 1, maxRows=0;
5496
- function focusaref(){ //Sfari 3 issues
5497
- if(p.closeOnEscape===true || p.navkeys[0]===true) {
5498
- setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+IDs.modalhead).focus();},0);
5499
- }
5500
- }
5501
- function createData(rowid,obj,tb,maxcols){
5502
- var nm, hc,trdata, cnt=0,tmp, dc, retpos=[], ind=false,
5503
- tdtmpl = "<td class='CaptionTD form-view-label ui-widget-content' width='"+p.labelswidth+"'>&#160;</td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'>&#160;</td>", tmpl="",
5504
- tdtmpl2 = "<td class='CaptionTD form-view-label ui-widget-content'>&#160;</td><td class='DataTD form-view-data ui-widget-content'>&#160;</td>",
5505
- fmtnum = ['integer','number','currency'],max1 =0, max2=0 ,maxw,setme, viewfld;
5506
- for (var i =1;i<=maxcols;i++) {
5507
- tmpl += i == 1 ? tdtmpl : tdtmpl2;
5508
- }
5509
- // find max number align rigth with property formatter
5510
- $(obj.p.colModel).each( function(i) {
5511
- if(this.editrules && this.editrules.edithidden === true) {
5512
- hc = false;
5513
- } else {
5514
- hc = this.hidden === true ? true : false;
5515
- }
5516
- if(!hc && this.align==='right') {
5517
- if(this.formatter && $.inArray(this.formatter,fmtnum) !== -1 ) {
5518
- max1 = Math.max(max1,parseInt(this.width,10));
5519
- } else {
5520
- max2 = Math.max(max2,parseInt(this.width,10));
5521
- }
5522
- }
5523
- });
5524
- maxw = max1 !==0 ? max1 : max2 !==0 ? max2 : 0;
5525
- ind = $(obj).jqGrid("getInd",rowid);
5526
- $(obj.p.colModel).each( function(i) {
5527
- nm = this.name;
5528
- setme = false;
5529
- // hidden fields are included in the form
5530
- if(this.editrules && this.editrules.edithidden === true) {
5531
- hc = false;
5532
- } else {
5533
- hc = this.hidden === true ? true : false;
5534
- }
5535
- dc = hc ? "style='display:none'" : "";
5536
- viewfld = (typeof this.viewable != 'boolean') ? true : this.viewable;
5537
- if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && viewfld) {
5538
- if(ind === false) {
5539
- tmp = "";
5540
- } else {
5541
- if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
5542
- tmp = $("td:eq("+i+")",obj.rows[ind]).text();
5543
- } else {
5544
- tmp = $("td:eq("+i+")",obj.rows[ind]).html();
5545
- }
5546
- }
5547
- setme = this.align === 'right' && maxw !==0 ? true : false;
5548
- var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm}),
5549
- frmopt = $.extend({},{rowabove:false,rowcontent:''}, this.formoptions || {}),
5550
- rp = parseInt(frmopt.rowpos,10) || cnt+1,
5551
- cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
5552
- if(frmopt.rowabove) {
5553
- var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
5554
- $(tb).append(newdata);
5555
- newdata[0].rp = rp;
5556
- }
5557
- trdata = $(tb).find("tr[rowpos="+rp+"]");
5558
- if ( trdata.length===0 ) {
5559
- trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","trv_"+nm);
5560
- $(trdata).append(tmpl);
5561
- $(tb).append(trdata);
5562
- trdata[0].rp = rp;
5563
- }
5564
- $("td:eq("+(cp-2)+")",trdata[0]).html('<b>'+ (typeof frmopt.label === 'undefined' ? obj.p.colNames[i]: frmopt.label)+'</b>');
5565
- $("td:eq("+(cp-1)+")",trdata[0]).append("<span>"+tmp+"</span>").attr("id","v_"+nm);
5566
- if(setme){
5567
- $("td:eq("+(cp-1)+") span",trdata[0]).css({'text-align':'right',width:maxw+"px"});
5568
- }
5569
- retpos[cnt] = i;
5570
- cnt++;
5571
- }
5572
- });
5573
- if( cnt > 0) {
5574
- var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+rowid+"'/></td></tr>");
5575
- idrow[0].rp = cnt+99;
5576
- $(tb).append(idrow);
5577
- }
5578
- return retpos;
5579
- }
5580
- function fillData(rowid,obj){
5581
- var nm, hc,cnt=0,tmp, opt,trv;
5582
- trv = $(obj).jqGrid("getInd",rowid,true);
5583
- if(!trv) { return; }
5584
- $('td',trv).each( function(i) {
5585
- nm = obj.p.colModel[i].name;
5586
- // hidden fields are included in the form
5587
- if(obj.p.colModel[i].editrules && obj.p.colModel[i].editrules.edithidden === true) {
5588
- hc = false;
5589
- } else {
5590
- hc = obj.p.colModel[i].hidden === true ? true : false;
5591
- }
5592
- if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn') {
5593
- if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
5594
- tmp = $(this).text();
5595
- } else {
5596
- tmp = $(this).html();
5597
- }
5598
- opt = $.extend({},obj.p.colModel[i].editoptions || {});
5599
- nm = $.jgrid.jqID("v_"+nm);
5600
- $("#"+nm+" span","#"+frmtb).html(tmp);
5601
- if (hc) { $("#"+nm,"#"+frmtb).parents("tr:first").hide(); }
5602
- cnt++;
5603
- }
5604
- });
5605
- if(cnt>0) { $("#id_g","#"+frmtb).val(rowid); }
5606
- }
5607
- if ( $("#"+IDs.themodal).html() != null ) {
5608
- $(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
5609
- $("#FormError","#"+frmtb).hide();
5610
- fillData(rowid,$t);
5611
- if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
5612
- viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, modal:p.modal});
5613
- focusaref();
5614
- } else {
5615
- $($t.p.colModel).each( function(i) {
5616
- var fmto = this.formoptions;
5617
- maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
5618
- maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
5619
- });
5620
- var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px";
5621
- var frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>"),
5622
- tbl =$("<table id='"+frmtb+"' class='EditTable' cellspacing='1' cellpading='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");
5623
- // set the id.
5624
- $(frm).append(tbl);
5625
- createData(rowid, $t, tbl, maxCols);
5626
- var rtlb = $t.p.direction == "rtl" ? true :false,
5627
- bp = rtlb ? "nData" : "pData",
5628
- bn = rtlb ? "pData" : "nData",
5629
-
5630
- // buttons at footer
5631
- bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></a>",
5632
- bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></a>",
5633
- bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bClose+"</a>";
5634
- if(maxRows > 0) {
5635
- var sd=[];
5636
- $.each($(tbl)[0].rows,function(i,r){
5637
- sd[i] = r;
5638
- });
5639
- sd.sort(function(a,b){
5640
- if(a.rp > b.rp) {return 1;}
5641
- if(a.rp < b.rp) {return -1;}
5642
- return 0;
5643
- });
5644
- $.each(sd, function(index, row) {
5645
- $('tbody',tbl).append(row);
5646
- });
5647
- }
5648
- p.gbox = "#gbox_"+gID;
5649
- var cle = false;
5650
- if(p.closeOnEscape===true){
5651
- p.closeOnEscape = false;
5652
- cle = true;
5653
- }
5654
- var bt = $("<span></span>").append(frm).append("<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+p.labelswidth+"'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bC+"</td></tr></tbody></table>");
5655
- createModal(IDs,bt,p,"#gview_"+$t.p.id,$("#gview_"+$t.p.id)[0]);
5656
- if(rtlb) {
5657
- $("#pData, #nData","#"+frmtb+"_2").css("float","right");
5658
- $(".EditButton","#"+frmtb+"_2").css("text-align","left");
5659
- }
5660
- if(!p.viewPagerButtons) { $("#pData, #nData","#"+frmtb+"_2").hide(); }
5661
- bt = null;
5662
- $("#"+IDs.themodal).keydown( function( e ) {
5663
- if(e.which === 27) {
5664
- if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: p.onClose}); }
5665
- return false;
5666
- }
5667
- if(p.navkeys[0]===true) {
5668
- if(e.which === p.navkeys[1]){ //up
5669
- $("#pData", "#"+frmtb+"_2").trigger("click");
5670
- return false;
5671
- }
5672
- if(e.which === p.navkeys[2]){ //down
5673
- $("#nData", "#"+frmtb+"_2").trigger("click");
5674
- return false;
5675
- }
5676
- }
5677
- });
5678
- p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
5679
- if(p.closeicon[0]===true) {
5680
- $("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5681
- .append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
5682
- }
5683
- if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
5684
- viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, modal:p.modal});
5685
- $(".fm-button:not(.ui-state-disabled)","#"+frmtb+"_2").hover(
5686
- function(){$(this).addClass('ui-state-hover');},
5687
- function(){$(this).removeClass('ui-state-hover');}
5688
- );
5689
- focusaref();
5690
- $("#cData", "#"+frmtb+"_2").click(function(e){
5691
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: p.onClose});
5692
- return false;
5693
- });
5694
- $("#nData", "#"+frmtb+"_2").click(function(e){
5695
- $("#FormError","#"+frmtb).hide();
5696
- var npos = getCurrPos();
5697
- npos[0] = parseInt(npos[0],10);
5698
- if(npos[0] != -1 && npos[1][npos[0]+1]) {
5699
- if($.isFunction(p.onclickPgButtons)) {
5700
- p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
5701
- }
5702
- fillData(npos[1][npos[0]+1],$t);
5703
- $($t).jqGrid("setSelection",npos[1][npos[0]+1]);
5704
- if($.isFunction(p.afterclickPgButtons)) {
5705
- p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
5706
- }
5707
- updateNav(npos[0]+1,npos[1].length-1);
5708
- }
5709
- focusaref();
5710
- return false;
5711
- });
5712
- $("#pData", "#"+frmtb+"_2").click(function(e){
5713
- $("#FormError","#"+frmtb).hide();
5714
- var ppos = getCurrPos();
5715
- if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
5716
- if($.isFunction(p.onclickPgButtons)) {
5717
- p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
5718
- }
5719
- fillData(ppos[1][ppos[0]-1],$t);
5720
- $($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
5721
- if($.isFunction(p.afterclickPgButtons)) {
5722
- p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
5723
- }
5724
- updateNav(ppos[0]-1,ppos[1].length-1);
5725
- }
5726
- focusaref();
5727
- return false;
5728
- });
5729
- }
5730
- function updateNav(cr,totr,rid){
5731
- if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5732
- if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5733
- }
5734
- function getCurrPos() {
5735
- var rowsInGrid = $($t).jqGrid("getDataIDs"),
5736
- selrow = $("#id_g","#"+frmtb).val(),
5737
- pos = $.inArray(selrow,rowsInGrid);
5738
- return [pos,rowsInGrid];
5739
- }
5050
+ if($t.p.restful) {
5051
+ rp_ge.mtype = postdata.id == "_empty" ? "POST" : "PUT";
5052
+ rp_ge.url = postdata.id == "_empty" ? $t.p.url : $t.p.url+"/"+postdata.id;
5053
+ }
5740
5054
 
5741
- var posInit =getCurrPos();
5742
- updateNav(posInit[0],posInit[1].length-1);
5743
- });
5744
- },
5745
- delGridRow : function(rowids,p) {
5746
- p = $.extend({
5747
- top : 0,
5748
- left: 0,
5749
- width: 240,
5750
- height: 'auto',
5751
- dataheight : 'auto',
5752
- modal: false,
5753
- drag: true,
5754
- resize: true,
5755
- url : '',
5756
- mtype : "POST",
5757
- reloadAfterSubmit: true,
5758
- beforeShowForm: null,
5759
- afterShowForm: null,
5760
- beforeSubmit: null,
5761
- onclickSubmit: null,
5762
- afterSubmit: null,
5763
- jqModal : true,
5764
- closeOnEscape : false,
5765
- delData: {},
5766
- delicon : [],
5767
- cancelicon : [],
5768
- onClose : null,
5769
- ajaxDelOptions : {},
5770
- processing : false,
5771
- serializeDelData : null,
5772
- useDataProxy : false
5773
- }, $.jgrid.del, p ||{});
5774
- rp_ge = p;
5775
- return this.each(function(){
5776
- var $t = this;
5777
- if (!$t.grid ) { return; }
5778
- if(!rowids) { return; }
5779
- var onBeforeShow = typeof p.beforeShowForm === 'function' ? true: false,
5780
- onAfterShow = typeof p.afterShowForm === 'function' ? true: false,
5781
- gID = $t.p.id, onCS = {},
5782
- dtbl = "DelTbl_"+gID,postd, idname, opers, oper,
5783
- IDs = {themodal:'delmod'+gID,modalhead:'delhd'+gID,modalcontent:'delcnt'+gID, scrollelm: dtbl};
5784
- if (jQuery.isArray(rowids)) { rowids = rowids.join(); }
5785
- if ( $("#"+IDs.themodal).html() != null ) {
5786
- $("#DelData>td","#"+dtbl).text(rowids);
5787
- $("#DelError","#"+dtbl).hide();
5788
- if( rp_ge.processing === true) {
5789
- rp_ge.processing=false;
5790
- $("#dData", "#"+dtbl).removeClass('ui-state-active');
5791
- }
5792
- if(onBeforeShow) { p.beforeShowForm($("#"+dtbl)); }
5793
- viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal,jqM: false, modal:p.modal});
5794
- if(onAfterShow) { p.afterShowForm($("#"+dtbl)); }
5795
- } else {
5796
- var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px";
5797
- var tbl = "<div id='"+dtbl+"' class='formdata' style='width:100%;overflow:auto;position:relative;height:"+dh+";'>";
5798
- tbl += "<table class='DelTable'><tbody>";
5799
- // error data
5800
- tbl += "<tr id='DelError' style='display:none'><td class='ui-state-error'></td></tr>";
5801
- tbl += "<tr id='DelData' style='display:none'><td >"+rowids+"</td></tr>";
5802
- tbl += "<tr><td class=\"delmsg\" style=\"white-space:pre;\">"+p.msg+"</td></tr><tr><td >&#160;</td></tr>";
5803
- // buttons at footer
5804
- tbl += "</tbody></table></div>";
5805
- var bS = "<a href='javascript:void(0)' id='dData' class='fm-button ui-state-default ui-corner-all'>"+p.bSubmit+"</a>",
5806
- bC = "<a href='javascript:void(0)' id='eData' class='fm-button ui-state-default ui-corner-all'>"+p.bCancel+"</a>";
5807
- tbl += "<table cellspacing='0' cellpadding='0' border='0' class='EditTable' id='"+dtbl+"_2'><tbody><tr><td class='DataTD ui-widget-content'></td></tr><tr style='display:block;height:3px;'><td></td></tr><tr><td class='DelButton EditButton'>"+bS+"&#160;"+bC+"</td></tr></tbody></table>";
5808
- p.gbox = "#gbox_"+gID;
5809
- createModal(IDs,tbl,p,"#gview_"+$t.p.id,$("#gview_"+$t.p.id)[0]);
5810
- $(".fm-button","#"+dtbl+"_2").hover(
5811
- function(){$(this).addClass('ui-state-hover');},
5812
- function(){$(this).removeClass('ui-state-hover');}
5813
- );
5814
- p.delicon = $.extend([true,"left","ui-icon-scissors"],p.delicon);
5815
- p.cancelicon = $.extend([true,"left","ui-icon-cancel"],p.cancelicon);
5816
- if(p.delicon[0]===true) {
5817
- $("#dData","#"+dtbl+"_2").addClass(p.delicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5818
- .append("<span class='ui-icon "+p.delicon[2]+"'></span>");
5819
- }
5820
- if(p.cancelicon[0]===true) {
5821
- $("#eData","#"+dtbl+"_2").addClass(p.cancelicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5822
- .append("<span class='ui-icon "+p.cancelicon[2]+"'></span>");
5823
- }
5824
- $("#dData","#"+dtbl+"_2").click(function(e){
5825
- var ret=[true,""]; onCS = {};
5826
- var postdata = $("#DelData>td","#"+dtbl).text(); //the pair is name=val1,val2,...
5827
- if( typeof p.onclickSubmit === 'function' ) { onCS = p.onclickSubmit(rp_ge, postdata) || {}; }
5828
- if( typeof p.beforeSubmit === 'function' ) { ret = p.beforeSubmit(postdata); }
5829
- if(ret[0] && !rp_ge.processing) {
5830
- rp_ge.processing = true;
5831
- $(this).addClass('ui-state-active');
5832
- opers = $t.p.prmNames;
5833
- postd = $.extend({},rp_ge.delData, onCS);
5834
- oper = opers.oper;
5835
- postd[oper] = opers.deloper;
5836
- idname = opers.id;
5837
- postd[idname] = postdata;
5838
-
5839
- if($t.p.restful) {
5840
- p.mtype = "DELETE";
5841
- rp_ge.url = $t.p.url+"/"+postdata;
5842
- };
5055
+ var ajaxOptions = $.extend({
5056
+ url: rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl'),
5057
+ type: rp_ge.mtype,
5058
+ data: $.isFunction(rp_ge.serializeEditData) ? rp_ge.serializeEditData(postdata) : postdata,
5059
+ complete:function(data,Status){
5060
+ if(Status != "success") {
5061
+ ret[0] = false;
5062
+ if ($.isFunction(rp_ge.errorTextFormat)) {
5063
+ ret[1] = rp_ge.errorTextFormat(data);
5064
+ } else {
5065
+ ret[1] = Status + " Status: '" + data.statusText + "'. Error code: " + data.status;
5066
+ }
5067
+ } else {
5068
+ // data is posted successful
5069
+ // execute aftersubmit with the returned data from server
5070
+ if( $.isFunction(rp_ge.afterSubmit) ) {
5071
+ ret = rp_ge.afterSubmit(data,postdata);
5072
+ }
5073
+ }
5074
+ if(ret[0] === false) {
5075
+ $("#FormError>td","#"+frmtb).html(ret[1]);
5076
+ $("#FormError","#"+frmtb).show();
5077
+ } else {
5078
+ // remove some values if formattaer select or checkbox
5079
+ $.each($t.p.colModel, function(i,n){
5080
+ if(extpost[this.name] && this.formatter && this.formatter=='select') {
5081
+ try {delete extpost[this.name];} catch (e) {}
5082
+ }
5083
+ });
5084
+ postdata = $.extend(postdata,extpost);
5085
+ if($t.p.autoencode) {
5086
+ $.each(postdata,function(n,v){
5087
+ postdata[n] = $.jgrid.htmlDecode(v);
5088
+ });
5089
+ }
5090
+ rp_ge.reloadAfterSubmit = rp_ge.reloadAfterSubmit && $t.p.datatype != "local";
5091
+ // the action is add
5092
+ if(postdata[oper] == opers.addoper ) {
5093
+ //id processing
5094
+ // user not set the id ret[2]
5095
+ if(!ret[2]) { ret[2] = (parseInt($t.p.records,10)+1)+""; }
5096
+ postdata[idname] = ret[2];
5097
+ if(rp_ge.closeAfterAdd) {
5098
+ if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
5099
+ else {
5100
+ $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow);
5101
+ $($t).jqGrid("setSelection",ret[2]);
5102
+ }
5103
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5104
+ } else if (rp_ge.clearAfterAdd) {
5105
+ if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
5106
+ else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
5107
+ fillData("_empty",$t,frmgr);
5108
+ } else {
5109
+ if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
5110
+ else { $($t).jqGrid("addRowData",ret[2],postdata,p.addedrow); }
5111
+ }
5112
+ } else {
5113
+ // the action is update
5114
+ if(rp_ge.reloadAfterSubmit) {
5115
+ $($t).trigger("reloadGrid");
5116
+ if( !rp_ge.closeAfterEdit ) { setTimeout(function(){$($t).jqGrid("setSelection",postdata[idname]);},1000); }
5117
+ } else {
5118
+ if($t.p.treeGrid === true) {
5119
+ $($t).jqGrid("setTreeRow",postdata[idname],postdata);
5120
+ } else {
5121
+ $($t).jqGrid("setRowData",postdata[idname],postdata);
5122
+ }
5123
+ }
5124
+ if(rp_ge.closeAfterEdit) { hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose}); }
5125
+ }
5126
+ if($.isFunction(rp_ge.afterComplete)) {
5127
+ copydata = data;
5128
+ setTimeout(function(){rp_ge.afterComplete(copydata,postdata,$("#"+frmgr));copydata=null;},500);
5129
+ }
5130
+ }
5131
+ rp_ge.processing=false;
5132
+ if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
5133
+ $("#"+frmgr).data("disabled",false);
5134
+ if(rp_ge._savedData[$t.p.id+"_id"] !="_empty"){
5135
+ for(var key in rp_ge._savedData) {
5136
+ if(postdata[key]) {
5137
+ rp_ge._savedData[key] = postdata[key];
5138
+ }
5139
+ }
5140
+ }
5141
+ }
5142
+ $("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
5143
+ try{$(':input:visible',"#"+frmgr)[0].focus();} catch (e){}
5144
+ },
5145
+ error:function(xhr,st,err){
5146
+ $("#FormError>td","#"+frmtb).html(st+ " : "+err);
5147
+ $("#FormError","#"+frmtb).show();
5148
+ rp_ge.processing=false;
5149
+ $("#"+frmgr).data("disabled",false);
5150
+ $("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
5151
+ }
5152
+ }, $.jgrid.ajaxOptions, rp_ge.ajaxEditOptions );
5153
+
5154
+ if (!ajaxOptions.url && !rp_ge.useDataProxy) {
5155
+ if ($.isFunction($t.p.dataProxy)) {
5156
+ rp_ge.useDataProxy = true;
5157
+ } else {
5158
+ ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl;
5159
+ }
5160
+ }
5161
+ if (ret[0]) {
5162
+ if (rp_ge.useDataProxy) { $t.p.dataProxy.call($t, ajaxOptions, "set_"+$t.p.id); }
5163
+ else { $.ajax(ajaxOptions); }
5164
+ }
5165
+ }
5166
+ if(ret[0] === false) {
5167
+ $("#FormError>td","#"+frmtb).html(ret[1]);
5168
+ $("#FormError","#"+frmtb).show();
5169
+ // return;
5170
+ }
5171
+ }
5172
+ function compareData(nObj, oObj ) {
5173
+ var ret = false,key;
5174
+ for (key in nObj) {
5175
+ if(nObj[key] != oObj[key]) {
5176
+ ret = true;
5177
+ break;
5178
+ }
5179
+ }
5180
+ return ret;
5181
+ }
5182
+ function checkUpdates () {
5183
+ var stat = true;
5184
+ $("#FormError","#"+frmtb).hide();
5185
+ if(rp_ge.checkOnUpdate) {
5186
+ postdata = {}; extpost={};
5187
+ getFormData();
5188
+ newData = $.extend({},postdata,extpost);
5189
+ diff = compareData(newData,rp_ge._savedData);
5190
+ if(diff) {
5191
+ $("#"+frmgr).data("disabled",true);
5192
+ $(".confirm","#"+IDs.themodal).show();
5193
+ stat = false;
5194
+ }
5195
+ }
5196
+ return stat;
5197
+ }
5198
+
5199
+ if ( $("#"+IDs.themodal).html() != null ) {
5200
+ $(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
5201
+ $("#FormError","#"+frmtb).hide();
5202
+ if(rp_ge.topinfo) {
5203
+ $(".topinfo","#"+frmtb+"_2").html(rp_ge.topinfo);
5204
+ $(".tinfo","#"+frmtb+"_2").show();
5205
+ } else {
5206
+ $(".tinfo","#"+frmtb+"_2").hide();
5207
+ }
5208
+ if(rp_ge.bottominfo) {
5209
+ $(".bottominfo","#"+frmtb+"_2").html(rp_ge.bottominfo);
5210
+ $(".binfo","#"+frmtb+"_2").show();
5211
+ } else {
5212
+ $(".binfo","#"+frmtb+"_2").hide();
5213
+ }
5214
+ if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
5215
+ // filldata
5216
+ fillData(rowid,$t,frmgr);
5217
+ ///
5218
+ if(rowid=="_empty" || !rp_ge.viewPagerButtons) {
5219
+ $("#pData, #nData","#"+frmtb+"_2").hide();
5220
+ } else {
5221
+ $("#pData, #nData","#"+frmtb+"_2").show();
5222
+ }
5223
+ if(rp_ge.processing===true) {
5224
+ rp_ge.processing=false;
5225
+ $("#sData", "#"+frmtb+"_2").removeClass('ui-state-active');
5226
+ }
5227
+ if($("#"+frmgr).data("disabled")===true) {
5228
+ $(".confirm","#"+IDs.themodal).hide();
5229
+ $("#"+frmgr).data("disabled",false);
5230
+ }
5231
+ if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
5232
+ $("#"+IDs.themodal).data("onClose",rp_ge.onClose);
5233
+ viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, overlay: p.overlay, modal:p.modal});
5234
+ if(!closeovrl) {
5235
+ $(".jqmOverlay").click(function(){
5236
+ if(!checkUpdates()) { return false; }
5237
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
5238
+ return false;
5239
+ });
5240
+ }
5241
+ if(onAfterShow) { onAfterShow($("#"+frmgr)); }
5242
+ } else {
5243
+ $($t.p.colModel).each( function(i) {
5244
+ var fmto = this.formoptions;
5245
+ maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
5246
+ maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
5247
+ });
5248
+ var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px",
5249
+ frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' onSubmit='return false;' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>").data("disabled",false),
5250
+ tbl = $("<table id='"+frmtb+"' class='EditTable' cellspacing='0' cellpading='0' border='0'><tbody></tbody></table>");
5251
+ $(frm).append(tbl);
5252
+ var flr = $("<tr id='FormError' style='display:none'><td class='ui-state-error' colspan='"+(maxCols*2)+"'></td></tr>");
5253
+ flr[0].rp = 0;
5254
+ $(tbl).append(flr);
5255
+ //topinfo
5256
+ flr = $("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+(maxCols*2)+"'>"+rp_ge.topinfo+"</td></tr>");
5257
+ flr[0].rp = 0;
5258
+ $(tbl).append(flr);
5259
+ // set the id.
5260
+ // use carefull only to change here colproperties.
5261
+ if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
5262
+ // create data
5263
+ var rtlb = $t.p.direction == "rtl" ? true :false,
5264
+ bp = rtlb ? "nData" : "pData",
5265
+ bn = rtlb ? "pData" : "nData";
5266
+ createData(rowid,$t,tbl,maxCols);
5267
+ // buttons at footer
5268
+ var bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></div>",
5269
+ bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></div>",
5270
+ bS ="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+p.bSubmit+"</a>",
5271
+ bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bCancel+"</a>";
5272
+ var bt = "<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bS+bC+"</td></tr>";
5273
+ bt += "<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+rp_ge.bottominfo+"</td></tr>";
5274
+ bt += "</tbody></table>";
5275
+ if(maxRows > 0) {
5276
+ var sd=[];
5277
+ $.each($(tbl)[0].rows,function(i,r){
5278
+ sd[i] = r;
5279
+ });
5280
+ sd.sort(function(a,b){
5281
+ if(a.rp > b.rp) {return 1;}
5282
+ if(a.rp < b.rp) {return -1;}
5283
+ return 0;
5284
+ });
5285
+ $.each(sd, function(index, row) {
5286
+ $('tbody',tbl).append(row);
5287
+ });
5288
+ }
5289
+ p.gbox = "#gbox_"+gID;
5290
+ var cle = false;
5291
+ if(p.closeOnEscape===true){
5292
+ p.closeOnEscape = false;
5293
+ cle = true;
5294
+ }
5295
+ var tms = $("<span></span>").append(frm).append(bt);
5296
+ createModal(IDs,tms,p,"#gview_"+$t.p.id,$("#gbox_"+$t.p.id)[0]);
5297
+ if(rtlb) {
5298
+ $("#pData, #nData","#"+frmtb+"_2").css("float","right");
5299
+ $(".EditButton","#"+frmtb+"_2").css("text-align","left");
5300
+ }
5301
+ if(rp_ge.topinfo) { $(".tinfo","#"+frmtb+"_2").show(); }
5302
+ if(rp_ge.bottominfo) { $(".binfo","#"+frmtb+"_2").show(); }
5303
+ tms = null; bt=null;
5304
+ $("#"+IDs.themodal).keydown( function( e ) {
5305
+ var wkey = e.target;
5306
+ if ($("#"+frmgr).data("disabled")===true ) { return false; }//??
5307
+ if(rp_ge.savekey[0] === true && e.which == rp_ge.savekey[1]) { // save
5308
+ if(wkey.tagName != "TEXTAREA") {
5309
+ $("#sData", "#"+frmtb+"_2").trigger("click");
5310
+ return false;
5311
+ }
5312
+ }
5313
+ if(e.which === 27) {
5314
+ if(!checkUpdates()) { return false; }
5315
+ if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: rp_ge.onClose}); }
5316
+ return false;
5317
+ }
5318
+ if(rp_ge.navkeys[0]===true) {
5319
+ if($("#id_g","#"+frmtb).val() == "_empty") { return true; }
5320
+ if(e.which == rp_ge.navkeys[1]){ //up
5321
+ $("#pData", "#"+frmtb+"_2").trigger("click");
5322
+ return false;
5323
+ }
5324
+ if(e.which == rp_ge.navkeys[2]){ //down
5325
+ $("#nData", "#"+frmtb+"_2").trigger("click");
5326
+ return false;
5327
+ }
5328
+ }
5329
+ });
5330
+ if(p.checkOnUpdate) {
5331
+ $("a.ui-jqdialog-titlebar-close span","#"+IDs.themodal).removeClass("jqmClose");
5332
+ $("a.ui-jqdialog-titlebar-close","#"+IDs.themodal).unbind("click")
5333
+ .click(function(){
5334
+ if(!checkUpdates()) { return false; }
5335
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5336
+ return false;
5337
+ });
5338
+ }
5339
+ p.saveicon = $.extend([true,"left","ui-icon-disk"],p.saveicon);
5340
+ p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
5341
+ // beforeinitdata after creation of the form
5342
+ if(p.saveicon[0]===true) {
5343
+ $("#sData","#"+frmtb+"_2").addClass(p.saveicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5344
+ .append("<span class='ui-icon "+p.saveicon[2]+"'></span>");
5345
+ }
5346
+ if(p.closeicon[0]===true) {
5347
+ $("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5348
+ .append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
5349
+ }
5350
+ if(rp_ge.checkOnSubmit || rp_ge.checkOnUpdate) {
5351
+ bS ="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bYes+"</a>";
5352
+ bN ="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bNo+"</a>";
5353
+ bC ="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+p.bExit+"</a>";
5354
+ var ii, zI = p.zIndex || 999; zI ++;
5355
+ if ($.browser.msie && $.browser.version ==6) {
5356
+ ii = '<iframe style="display:block;position:absolute;z-index:-1;filter:Alpha(Opacity=\'0\');" src="javascript:false;"></iframe>';
5357
+ } else { ii="";}
5358
+ $("<div class='ui-widget-overlay jqgrid-overlay confirm' style='z-index:"+zI+";display:none;'>&#160;"+ii+"</div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(zI+1)+"'>"+p.saveData+"<br/><br/>"+bS+bN+bC+"</div>").insertAfter("#"+frmgr);
5359
+ $("#sNew","#"+IDs.themodal).click(function(){
5360
+ postIt();
5361
+ $("#"+frmgr).data("disabled",false);
5362
+ $(".confirm","#"+IDs.themodal).hide();
5363
+ return false;
5364
+ });
5365
+ $("#nNew","#"+IDs.themodal).click(function(){
5366
+ $(".confirm","#"+IDs.themodal).hide();
5367
+ $("#"+frmgr).data("disabled",false);
5368
+ setTimeout(function(){$(":input","#"+frmgr)[0].focus();},0);
5369
+ return false;
5370
+ });
5371
+ $("#cNew","#"+IDs.themodal).click(function(){
5372
+ $(".confirm","#"+IDs.themodal).hide();
5373
+ $("#"+frmgr).data("disabled",false);
5374
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5375
+ return false;
5376
+ });
5377
+ }
5378
+ // here initform - only once
5379
+ if(onInitializeForm) { onInitializeForm($("#"+frmgr)); }
5380
+ if(rowid=="_empty" || !rp_ge.viewPagerButtons) { $("#pData,#nData","#"+frmtb+"_2").hide(); } else { $("#pData,#nData","#"+frmtb+"_2").show(); }
5381
+ if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
5382
+ $("#"+IDs.themodal).data("onClose",rp_ge.onClose);
5383
+ viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, overlay: p.overlay,modal:p.modal});
5384
+ if(!closeovrl) {
5385
+ $(".jqmOverlay").click(function(){
5386
+ if(!checkUpdates()) { return false; }
5387
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
5388
+ return false;
5389
+ });
5390
+ }
5391
+ if(onAfterShow) { onAfterShow($("#"+frmgr)); }
5392
+ $(".fm-button","#"+IDs.themodal).hover(
5393
+ function(){$(this).addClass('ui-state-hover');},
5394
+ function(){$(this).removeClass('ui-state-hover');}
5395
+ );
5396
+ $("#sData", "#"+frmtb+"_2").click(function(e){
5397
+ postdata = {}; extpost={};
5398
+ $("#FormError","#"+frmtb).hide();
5399
+ // all depend on ret array
5400
+ //ret[0] - succes
5401
+ //ret[1] - msg if not succes
5402
+ //ret[2] - the id that will be set if reload after submit false
5403
+ getFormData();
5404
+ if(postdata[$t.p.id+"_id"] == "_empty") { postIt(); }
5405
+ else if(p.checkOnSubmit===true ) {
5406
+ newData = $.extend({},postdata,extpost);
5407
+ diff = compareData(newData,rp_ge._savedData);
5408
+ if(diff) {
5409
+ $("#"+frmgr).data("disabled",true);
5410
+ $(".confirm","#"+IDs.themodal).show();
5411
+ } else {
5412
+ postIt();
5413
+ }
5414
+ } else {
5415
+ postIt();
5416
+ }
5417
+ return false;
5418
+ });
5419
+ $("#cData", "#"+frmtb+"_2").click(function(e){
5420
+ if(!checkUpdates()) { return false; }
5421
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal,onClose: rp_ge.onClose});
5422
+ return false;
5423
+ });
5424
+ $("#nData", "#"+frmtb+"_2").click(function(e){
5425
+ if(!checkUpdates()) { return false; }
5426
+ $("#FormError","#"+frmtb).hide();
5427
+ var npos = getCurrPos();
5428
+ npos[0] = parseInt(npos[0],10);
5429
+ if(npos[0] != -1 && npos[1][npos[0]+1]) {
5430
+ if($.isFunction(p.onclickPgButtons)) {
5431
+ p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
5432
+ }
5433
+ fillData(npos[1][npos[0]+1],$t,frmgr);
5434
+ $($t).jqGrid("setSelection",npos[1][npos[0]+1]);
5435
+ if($.isFunction(p.afterclickPgButtons)) {
5436
+ p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
5437
+ }
5438
+ updateNav(npos[0]+1,npos[1].length-1);
5439
+ }
5440
+ return false;
5441
+ });
5442
+ $("#pData", "#"+frmtb+"_2").click(function(e){
5443
+ if(!checkUpdates()) { return false; }
5444
+ $("#FormError","#"+frmtb).hide();
5445
+ var ppos = getCurrPos();
5446
+ if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
5447
+ if($.isFunction(p.onclickPgButtons)) {
5448
+ p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
5449
+ }
5450
+ fillData(ppos[1][ppos[0]-1],$t,frmgr);
5451
+ $($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
5452
+ if($.isFunction(p.afterclickPgButtons)) {
5453
+ p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
5454
+ }
5455
+ updateNav(ppos[0]-1,ppos[1].length-1);
5456
+ }
5457
+ return false;
5458
+ });
5459
+ }
5460
+ function updateNav(cr,totr,rid){
5461
+ if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5462
+ if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5463
+ }
5464
+ function getCurrPos() {
5465
+ var rowsInGrid = $($t).jqGrid("getDataIDs"),
5466
+ selrow = $("#id_g","#"+frmtb).val(),
5467
+ pos = $.inArray(selrow,rowsInGrid);
5468
+ return [pos,rowsInGrid];
5469
+ }
5470
+
5471
+ var posInit =getCurrPos();
5472
+ updateNav(posInit[0],posInit[1].length-1);
5473
+
5474
+ });
5475
+ },
5476
+ viewGridRow : function(rowid, p){
5477
+ p = $.extend({
5478
+ top : 0,
5479
+ left: 0,
5480
+ width: 0,
5481
+ height: 'auto',
5482
+ dataheight: 'auto',
5483
+ modal: false,
5484
+ overlay: 10,
5485
+ drag: true,
5486
+ resize: true,
5487
+ jqModal: true,
5488
+ closeOnEscape : false,
5489
+ labelswidth: '30%',
5490
+ closeicon: [],
5491
+ navkeys: [false,38,40],
5492
+ onClose: null,
5493
+ beforeShowForm : null,
5494
+ viewPagerButtons : true
5495
+ }, $.jgrid.view, p || {});
5496
+ return this.each(function(){
5497
+ var $t = this;
5498
+ if (!$t.grid || !rowid) { return; }
5499
+ if(!p.imgpath) { p.imgpath= $t.p.imgpath; }
5500
+ // I hate to rewrite code, but ...
5501
+ var gID = $t.p.id,
5502
+ frmgr = "ViewGrid_"+gID , frmtb = "ViewTbl_"+gID,
5503
+ IDs = {themodal:'viewmod'+gID,modalhead:'viewhd'+gID,modalcontent:'viewcnt'+gID, scrollelm : frmgr},
5504
+ maxCols = 1, maxRows=0;
5505
+ function focusaref(){ //Sfari 3 issues
5506
+ if(p.closeOnEscape===true || p.navkeys[0]===true) {
5507
+ setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+IDs.modalhead).focus();},0);
5508
+ }
5509
+ }
5510
+ function createData(rowid,obj,tb,maxcols){
5511
+ var nm, hc,trdata, cnt=0,tmp, dc, retpos=[], ind=false,
5512
+ tdtmpl = "<td class='CaptionTD form-view-label ui-widget-content' width='"+p.labelswidth+"'>&#160;</td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'>&#160;</td>", tmpl="",
5513
+ tdtmpl2 = "<td class='CaptionTD form-view-label ui-widget-content'>&#160;</td><td class='DataTD form-view-data ui-widget-content'>&#160;</td>",
5514
+ fmtnum = ['integer','number','currency'],max1 =0, max2=0 ,maxw,setme, viewfld;
5515
+ for (var i =1;i<=maxcols;i++) {
5516
+ tmpl += i == 1 ? tdtmpl : tdtmpl2;
5517
+ }
5518
+ // find max number align rigth with property formatter
5519
+ $(obj.p.colModel).each( function(i) {
5520
+ if(this.editrules && this.editrules.edithidden === true) {
5521
+ hc = false;
5522
+ } else {
5523
+ hc = this.hidden === true ? true : false;
5524
+ }
5525
+ if(!hc && this.align==='right') {
5526
+ if(this.formatter && $.inArray(this.formatter,fmtnum) !== -1 ) {
5527
+ max1 = Math.max(max1,parseInt(this.width,10));
5528
+ } else {
5529
+ max2 = Math.max(max2,parseInt(this.width,10));
5530
+ }
5531
+ }
5532
+ });
5533
+ maxw = max1 !==0 ? max1 : max2 !==0 ? max2 : 0;
5534
+ ind = $(obj).jqGrid("getInd",rowid);
5535
+ $(obj.p.colModel).each( function(i) {
5536
+ nm = this.name;
5537
+ setme = false;
5538
+ // hidden fields are included in the form
5539
+ if(this.editrules && this.editrules.edithidden === true) {
5540
+ hc = false;
5541
+ } else {
5542
+ hc = this.hidden === true ? true : false;
5543
+ }
5544
+ dc = hc ? "style='display:none'" : "";
5545
+ viewfld = (typeof this.viewable != 'boolean') ? true : this.viewable;
5546
+ if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn' && viewfld) {
5547
+ if(ind === false) {
5548
+ tmp = "";
5549
+ } else {
5550
+ if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
5551
+ tmp = $("td:eq("+i+")",obj.rows[ind]).text();
5552
+ } else {
5553
+ tmp = $("td:eq("+i+")",obj.rows[ind]).html();
5554
+ }
5555
+ }
5556
+ setme = this.align === 'right' && maxw !==0 ? true : false;
5557
+ var opt = $.extend({}, this.editoptions || {} ,{id:nm,name:nm}),
5558
+ frmopt = $.extend({},{rowabove:false,rowcontent:''}, this.formoptions || {}),
5559
+ rp = parseInt(frmopt.rowpos,10) || cnt+1,
5560
+ cp = parseInt((parseInt(frmopt.colpos,10) || 1)*2,10);
5561
+ if(frmopt.rowabove) {
5562
+ var newdata = $("<tr><td class='contentinfo' colspan='"+(maxcols*2)+"'>"+frmopt.rowcontent+"</td></tr>");
5563
+ $(tb).append(newdata);
5564
+ newdata[0].rp = rp;
5565
+ }
5566
+ trdata = $(tb).find("tr[rowpos="+rp+"]");
5567
+ if ( trdata.length===0 ) {
5568
+ trdata = $("<tr "+dc+" rowpos='"+rp+"'></tr>").addClass("FormData").attr("id","trv_"+nm);
5569
+ $(trdata).append(tmpl);
5570
+ $(tb).append(trdata);
5571
+ trdata[0].rp = rp;
5572
+ }
5573
+ $("td:eq("+(cp-2)+")",trdata[0]).html('<b>'+ (typeof frmopt.label === 'undefined' ? obj.p.colNames[i]: frmopt.label)+'</b>');
5574
+ $("td:eq("+(cp-1)+")",trdata[0]).append("<span>"+tmp+"</span>").attr("id","v_"+nm);
5575
+ if(setme){
5576
+ $("td:eq("+(cp-1)+") span",trdata[0]).css({'text-align':'right',width:maxw+"px"});
5577
+ }
5578
+ retpos[cnt] = i;
5579
+ cnt++;
5580
+ }
5581
+ });
5582
+ if( cnt > 0) {
5583
+ var idrow = $("<tr class='FormData' style='display:none'><td class='CaptionTD'></td><td colspan='"+ (maxcols*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+rowid+"'/></td></tr>");
5584
+ idrow[0].rp = cnt+99;
5585
+ $(tb).append(idrow);
5586
+ }
5587
+ return retpos;
5588
+ }
5589
+ function fillData(rowid,obj){
5590
+ var nm, hc,cnt=0,tmp, opt,trv;
5591
+ trv = $(obj).jqGrid("getInd",rowid,true);
5592
+ if(!trv) { return; }
5593
+ $('td',trv).each( function(i) {
5594
+ nm = obj.p.colModel[i].name;
5595
+ // hidden fields are included in the form
5596
+ if(obj.p.colModel[i].editrules && obj.p.colModel[i].editrules.edithidden === true) {
5597
+ hc = false;
5598
+ } else {
5599
+ hc = obj.p.colModel[i].hidden === true ? true : false;
5600
+ }
5601
+ if ( nm !== 'cb' && nm !== 'subgrid' && nm !== 'rn') {
5602
+ if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
5603
+ tmp = $(this).text();
5604
+ } else {
5605
+ tmp = $(this).html();
5606
+ }
5607
+ opt = $.extend({},obj.p.colModel[i].editoptions || {});
5608
+ nm = $.jgrid.jqID("v_"+nm);
5609
+ $("#"+nm+" span","#"+frmtb).html(tmp);
5610
+ if (hc) { $("#"+nm,"#"+frmtb).parents("tr:first").hide(); }
5611
+ cnt++;
5612
+ }
5613
+ });
5614
+ if(cnt>0) { $("#id_g","#"+frmtb).val(rowid); }
5615
+ }
5616
+ if ( $("#"+IDs.themodal).html() != null ) {
5617
+ $(".ui-jqdialog-title","#"+IDs.modalhead).html(p.caption);
5618
+ $("#FormError","#"+frmtb).hide();
5619
+ fillData(rowid,$t);
5620
+ if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
5621
+ viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, jqM: false, overlay: p.overlay, modal:p.modal});
5622
+ focusaref();
5623
+ } else {
5624
+ $($t.p.colModel).each( function(i) {
5625
+ var fmto = this.formoptions;
5626
+ maxCols = Math.max(maxCols, fmto ? fmto.colpos || 0 : 0 );
5627
+ maxRows = Math.max(maxRows, fmto ? fmto.rowpos || 0 : 0 );
5628
+ });
5629
+ var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px";
5630
+ var frm = $("<form name='FormPost' id='"+frmgr+"' class='FormGrid' style='width:100%;overflow:auto;position:relative;height:"+dh+";'></form>"),
5631
+ tbl =$("<table id='"+frmtb+"' class='EditTable' cellspacing='1' cellpading='2' border='0' style='table-layout:fixed'><tbody></tbody></table>");
5632
+ // set the id.
5633
+ $(frm).append(tbl);
5634
+ createData(rowid, $t, tbl, maxCols);
5635
+ var rtlb = $t.p.direction == "rtl" ? true :false,
5636
+ bp = rtlb ? "nData" : "pData",
5637
+ bn = rtlb ? "pData" : "nData",
5638
+
5639
+ // buttons at footer
5640
+ bP = "<a href='javascript:void(0)' id='"+bp+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'></span></a>",
5641
+ bN = "<a href='javascript:void(0)' id='"+bn+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'></span></a>",
5642
+ bC ="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+p.bClose+"</a>";
5643
+ if(maxRows > 0) {
5644
+ var sd=[];
5645
+ $.each($(tbl)[0].rows,function(i,r){
5646
+ sd[i] = r;
5647
+ });
5648
+ sd.sort(function(a,b){
5649
+ if(a.rp > b.rp) {return 1;}
5650
+ if(a.rp < b.rp) {return -1;}
5651
+ return 0;
5652
+ });
5653
+ $.each(sd, function(index, row) {
5654
+ $('tbody',tbl).append(row);
5655
+ });
5656
+ }
5657
+ p.gbox = "#gbox_"+gID;
5658
+ var cle = false;
5659
+ if(p.closeOnEscape===true){
5660
+ p.closeOnEscape = false;
5661
+ cle = true;
5662
+ }
5663
+ var bt = $("<span></span>").append(frm).append("<table border='0' class='EditTable' id='"+frmtb+"_2'><tbody><tr id='Act_Buttons'><td class='navButton ui-widget-content' width='"+p.labelswidth+"'>"+(rtlb ? bN+bP : bP+bN)+"</td><td class='EditButton ui-widget-content'>"+bC+"</td></tr></tbody></table>");
5664
+ createModal(IDs,bt,p,"#gview_"+$t.p.id,$("#gview_"+$t.p.id)[0]);
5665
+ if(rtlb) {
5666
+ $("#pData, #nData","#"+frmtb+"_2").css("float","right");
5667
+ $(".EditButton","#"+frmtb+"_2").css("text-align","left");
5668
+ }
5669
+ if(!p.viewPagerButtons) { $("#pData, #nData","#"+frmtb+"_2").hide(); }
5670
+ bt = null;
5671
+ $("#"+IDs.themodal).keydown( function( e ) {
5672
+ if(e.which === 27) {
5673
+ if(cle) { hideModal(this,{gb:p.gbox,jqm:p.jqModal, onClose: p.onClose}); }
5674
+ return false;
5675
+ }
5676
+ if(p.navkeys[0]===true) {
5677
+ if(e.which === p.navkeys[1]){ //up
5678
+ $("#pData", "#"+frmtb+"_2").trigger("click");
5679
+ return false;
5680
+ }
5681
+ if(e.which === p.navkeys[2]){ //down
5682
+ $("#nData", "#"+frmtb+"_2").trigger("click");
5683
+ return false;
5684
+ }
5685
+ }
5686
+ });
5687
+ p.closeicon = $.extend([true,"left","ui-icon-close"],p.closeicon);
5688
+ if(p.closeicon[0]===true) {
5689
+ $("#cData","#"+frmtb+"_2").addClass(p.closeicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5690
+ .append("<span class='ui-icon "+p.closeicon[2]+"'></span>");
5691
+ }
5692
+ if($.isFunction(p.beforeShowForm)) { p.beforeShowForm($("#"+frmgr)); }
5693
+ viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, modal:p.modal});
5694
+ $(".fm-button:not(.ui-state-disabled)","#"+frmtb+"_2").hover(
5695
+ function(){$(this).addClass('ui-state-hover');},
5696
+ function(){$(this).removeClass('ui-state-hover');}
5697
+ );
5698
+ focusaref();
5699
+ $("#cData", "#"+frmtb+"_2").click(function(e){
5700
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: p.onClose});
5701
+ return false;
5702
+ });
5703
+ $("#nData", "#"+frmtb+"_2").click(function(e){
5704
+ $("#FormError","#"+frmtb).hide();
5705
+ var npos = getCurrPos();
5706
+ npos[0] = parseInt(npos[0],10);
5707
+ if(npos[0] != -1 && npos[1][npos[0]+1]) {
5708
+ if($.isFunction(p.onclickPgButtons)) {
5709
+ p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
5710
+ }
5711
+ fillData(npos[1][npos[0]+1],$t);
5712
+ $($t).jqGrid("setSelection",npos[1][npos[0]+1]);
5713
+ if($.isFunction(p.afterclickPgButtons)) {
5714
+ p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
5715
+ }
5716
+ updateNav(npos[0]+1,npos[1].length-1);
5717
+ }
5718
+ focusaref();
5719
+ return false;
5720
+ });
5721
+ $("#pData", "#"+frmtb+"_2").click(function(e){
5722
+ $("#FormError","#"+frmtb).hide();
5723
+ var ppos = getCurrPos();
5724
+ if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
5725
+ if($.isFunction(p.onclickPgButtons)) {
5726
+ p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
5727
+ }
5728
+ fillData(ppos[1][ppos[0]-1],$t);
5729
+ $($t).jqGrid("setSelection",ppos[1][ppos[0]-1]);
5730
+ if($.isFunction(p.afterclickPgButtons)) {
5731
+ p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
5732
+ }
5733
+ updateNav(ppos[0]-1,ppos[1].length-1);
5734
+ }
5735
+ focusaref();
5736
+ return false;
5737
+ });
5738
+ }
5739
+ function updateNav(cr,totr,rid){
5740
+ if (cr===0) { $("#pData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#pData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5741
+ if (cr==totr) { $("#nData","#"+frmtb+"_2").addClass('ui-state-disabled'); } else { $("#nData","#"+frmtb+"_2").removeClass('ui-state-disabled'); }
5742
+ }
5743
+ function getCurrPos() {
5744
+ var rowsInGrid = $($t).jqGrid("getDataIDs"),
5745
+ selrow = $("#id_g","#"+frmtb).val(),
5746
+ pos = $.inArray(selrow,rowsInGrid);
5747
+ return [pos,rowsInGrid];
5748
+ }
5843
5749
 
5844
- var ajaxOptions = $.extend({
5845
- url: rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl'),
5846
- type: p.mtype,
5847
- data: $.isFunction(p.serializeDelData) ? p.serializeDelData(postd) : postd,
5848
- complete:function(data,Status){
5849
- if(Status != "success") {
5850
- ret[0] = false;
5851
- if ($.isFunction(rp_ge.errorTextFormat)) {
5852
- ret[1] = rp_ge.errorTextFormat(data);
5853
- } else {
5854
- ret[1] = Status + " Status: '" + data.statusText + "'. Error code: " + data.status;
5855
- }
5856
- } else {
5857
- // data is posted successful
5858
- // execute aftersubmit with the returned data from server
5859
- if( typeof rp_ge.afterSubmit === 'function' ) {
5860
- ret = rp_ge.afterSubmit(data,postd);
5861
- }
5862
- }
5863
- if(ret[0] === false) {
5864
- $("#DelError>td","#"+dtbl).html(ret[1]);
5865
- $("#DelError","#"+dtbl).show();
5866
- } else {
5867
- if(rp_ge.reloadAfterSubmit && $t.p.datatype != "local") {
5868
- $($t).trigger("reloadGrid");
5869
- } else {
5870
- var toarr = [];
5871
- toarr = postdata.split(",");
5872
- if($t.p.treeGrid===true){
5873
- try {$($t).jqGrid("delTreeNode",toarr[0]);} catch(e){}
5874
- } else {
5875
- for(var i=0;i<toarr.length;i++) {
5876
- $($t).jqGrid("delRowData",toarr[i]);
5877
- }
5878
- }
5879
- $t.p.selrow = null;
5880
- $t.p.selarrrow = [];
5881
- }
5882
- if($.isFunction(rp_ge.afterComplete)) {
5883
- setTimeout(function(){rp_ge.afterComplete(data,postdata);},500);
5884
- }
5885
- }
5886
- rp_ge.processing=false;
5887
- $("#dData", "#"+dtbl+"_2").removeClass('ui-state-active');
5888
- if(ret[0]) { hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose}); }
5889
- },
5890
- error:function(xhr,st,err){
5891
- $("#DelError>td","#"+dtbl).html(st+ " : "+err);
5892
- $("#DelError","#"+dtbl).show();
5893
- rp_ge.processing=false;
5894
- $("#dData", "#"+dtbl+"_2").removeClass('ui-state-active');
5895
- }
5896
- }, $.jgrid.ajaxOptions, p.ajaxDelOptions);
5750
+ var posInit =getCurrPos();
5751
+ updateNav(posInit[0],posInit[1].length-1);
5752
+ });
5753
+ },
5754
+ delGridRow : function(rowids,p) {
5755
+ p = $.extend({
5756
+ top : 0,
5757
+ left: 0,
5758
+ width: 240,
5759
+ height: 'auto',
5760
+ dataheight : 'auto',
5761
+ modal: false,
5762
+ overlay: 10,
5763
+ drag: true,
5764
+ resize: true,
5765
+ url : '',
5766
+ mtype : "POST",
5767
+ reloadAfterSubmit: true,
5768
+ beforeShowForm: null,
5769
+ afterShowForm: null,
5770
+ beforeSubmit: null,
5771
+ onclickSubmit: null,
5772
+ afterSubmit: null,
5773
+ jqModal : true,
5774
+ closeOnEscape : false,
5775
+ delData: {},
5776
+ delicon : [],
5777
+ cancelicon : [],
5778
+ onClose : null,
5779
+ ajaxDelOptions : {},
5780
+ processing : false,
5781
+ serializeDelData : null,
5782
+ useDataProxy : false
5783
+ }, $.jgrid.del, p ||{});
5784
+ rp_ge = p;
5785
+ return this.each(function(){
5786
+ var $t = this;
5787
+ if (!$t.grid ) { return; }
5788
+ if(!rowids) { return; }
5789
+ var onBeforeShow = typeof p.beforeShowForm === 'function' ? true: false,
5790
+ onAfterShow = typeof p.afterShowForm === 'function' ? true: false,
5791
+ gID = $t.p.id, onCS = {},
5792
+ dtbl = "DelTbl_"+gID,postd, idname, opers, oper,
5793
+ IDs = {themodal:'delmod'+gID,modalhead:'delhd'+gID,modalcontent:'delcnt'+gID, scrollelm: dtbl};
5794
+ if (jQuery.isArray(rowids)) { rowids = rowids.join(); }
5795
+ if ( $("#"+IDs.themodal).html() != null ) {
5796
+ $("#DelData>td","#"+dtbl).text(rowids);
5797
+ $("#DelError","#"+dtbl).hide();
5798
+ if( rp_ge.processing === true) {
5799
+ rp_ge.processing=false;
5800
+ $("#dData", "#"+dtbl).removeClass('ui-state-active');
5801
+ }
5802
+ if(onBeforeShow) { p.beforeShowForm($("#"+dtbl)); }
5803
+ viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal,jqM: false, overlay: p.overlay, modal:p.modal});
5804
+ if(onAfterShow) { p.afterShowForm($("#"+dtbl)); }
5805
+ } else {
5806
+ var dh = isNaN(p.dataheight) ? p.dataheight : p.dataheight+"px";
5807
+ var tbl = "<div id='"+dtbl+"' class='formdata' style='width:100%;overflow:auto;position:relative;height:"+dh+";'>";
5808
+ tbl += "<table class='DelTable'><tbody>";
5809
+ // error data
5810
+ tbl += "<tr id='DelError' style='display:none'><td class='ui-state-error'></td></tr>";
5811
+ tbl += "<tr id='DelData' style='display:none'><td >"+rowids+"</td></tr>";
5812
+ tbl += "<tr><td class=\"delmsg\" style=\"white-space:pre;\">"+p.msg+"</td></tr><tr><td >&#160;</td></tr>";
5813
+ // buttons at footer
5814
+ tbl += "</tbody></table></div>";
5815
+ var bS = "<a href='javascript:void(0)' id='dData' class='fm-button ui-state-default ui-corner-all'>"+p.bSubmit+"</a>",
5816
+ bC = "<a href='javascript:void(0)' id='eData' class='fm-button ui-state-default ui-corner-all'>"+p.bCancel+"</a>";
5817
+ tbl += "<table cellspacing='0' cellpadding='0' border='0' class='EditTable' id='"+dtbl+"_2'><tbody><tr><td class='DataTD ui-widget-content'></td></tr><tr style='display:block;height:3px;'><td></td></tr><tr><td class='DelButton EditButton'>"+bS+"&#160;"+bC+"</td></tr></tbody></table>";
5818
+ p.gbox = "#gbox_"+gID;
5819
+ createModal(IDs,tbl,p,"#gview_"+$t.p.id,$("#gview_"+$t.p.id)[0]);
5820
+ $(".fm-button","#"+dtbl+"_2").hover(
5821
+ function(){$(this).addClass('ui-state-hover');},
5822
+ function(){$(this).removeClass('ui-state-hover');}
5823
+ );
5824
+ p.delicon = $.extend([true,"left","ui-icon-scissors"],p.delicon);
5825
+ p.cancelicon = $.extend([true,"left","ui-icon-cancel"],p.cancelicon);
5826
+ if(p.delicon[0]===true) {
5827
+ $("#dData","#"+dtbl+"_2").addClass(p.delicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5828
+ .append("<span class='ui-icon "+p.delicon[2]+"'></span>");
5829
+ }
5830
+ if(p.cancelicon[0]===true) {
5831
+ $("#eData","#"+dtbl+"_2").addClass(p.cancelicon[1] == "right" ? 'fm-button-icon-right' : 'fm-button-icon-left')
5832
+ .append("<span class='ui-icon "+p.cancelicon[2]+"'></span>");
5833
+ }
5834
+ $("#dData","#"+dtbl+"_2").click(function(e){
5835
+ var ret=[true,""]; onCS = {};
5836
+ var postdata = $("#DelData>td","#"+dtbl).text(); //the pair is name=val1,val2,...
5837
+ if( typeof p.onclickSubmit === 'function' ) { onCS = p.onclickSubmit(rp_ge, postdata) || {}; }
5838
+ if( typeof p.beforeSubmit === 'function' ) { ret = p.beforeSubmit(postdata); }
5839
+ if(ret[0] && !rp_ge.processing) {
5840
+ rp_ge.processing = true;
5841
+ $(this).addClass('ui-state-active');
5842
+ opers = $t.p.prmNames;
5843
+ postd = $.extend({},rp_ge.delData, onCS);
5844
+ oper = opers.oper;
5845
+ postd[oper] = opers.deloper;
5846
+ idname = opers.id;
5847
+ postd[idname] = postdata;
5848
+
5849
+ if($t.p.restful) {
5850
+ p.mtype = "DELETE";
5851
+ rp_ge.url = $t.p.url+"/"+postdata;
5852
+ };
5853
+
5854
+ var ajaxOptions = $.extend({
5855
+ url: rp_ge.url ? rp_ge.url : $($t).jqGrid('getGridParam','editurl'),
5856
+ type: p.mtype,
5857
+ data: $.isFunction(p.serializeDelData) ? p.serializeDelData(postd) : postd,
5858
+ complete:function(data,Status){
5859
+ if(Status != "success") {
5860
+ ret[0] = false;
5861
+ if ($.isFunction(rp_ge.errorTextFormat)) {
5862
+ ret[1] = rp_ge.errorTextFormat(data);
5863
+ } else {
5864
+ ret[1] = Status + " Status: '" + data.statusText + "'. Error code: " + data.status;
5865
+ }
5866
+ } else {
5867
+ // data is posted successful
5868
+ // execute aftersubmit with the returned data from server
5869
+ if( typeof rp_ge.afterSubmit === 'function' ) {
5870
+ ret = rp_ge.afterSubmit(data,postd);
5871
+ }
5872
+ }
5873
+ if(ret[0] === false) {
5874
+ $("#DelError>td","#"+dtbl).html(ret[1]);
5875
+ $("#DelError","#"+dtbl).show();
5876
+ } else {
5877
+ if(rp_ge.reloadAfterSubmit && $t.p.datatype != "local") {
5878
+ $($t).trigger("reloadGrid");
5879
+ } else {
5880
+ var toarr = [];
5881
+ toarr = postdata.split(",");
5882
+ if($t.p.treeGrid===true){
5883
+ try {$($t).jqGrid("delTreeNode",toarr[0]);} catch(e){}
5884
+ } else {
5885
+ for(var i=0;i<toarr.length;i++) {
5886
+ $($t).jqGrid("delRowData",toarr[i]);
5887
+ }
5888
+ }
5889
+ $t.p.selrow = null;
5890
+ $t.p.selarrrow = [];
5891
+ }
5892
+ if($.isFunction(rp_ge.afterComplete)) {
5893
+ setTimeout(function(){rp_ge.afterComplete(data,postdata);},500);
5894
+ }
5895
+ }
5896
+ rp_ge.processing=false;
5897
+ $("#dData", "#"+dtbl+"_2").removeClass('ui-state-active');
5898
+ if(ret[0]) { hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose}); }
5899
+ },
5900
+ error:function(xhr,st,err){
5901
+ $("#DelError>td","#"+dtbl).html(st+ " : "+err);
5902
+ $("#DelError","#"+dtbl).show();
5903
+ rp_ge.processing=false;
5904
+ $("#dData", "#"+dtbl+"_2").removeClass('ui-state-active');
5905
+ }
5906
+ }, $.jgrid.ajaxOptions, p.ajaxDelOptions);
5897
5907
 
5898
5908
 
5899
- if (!ajaxOptions.url && !rp_ge.useDataProxy) {
5900
- if ($.isFunction($t.p.dataProxy)) {
5901
- rp_ge.useDataProxy = true;
5902
- } else {
5903
- ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl;
5904
- }
5905
- }
5906
- if (ret[0]) {
5907
- if (rp_ge.useDataProxy) { $t.p.dataProxy.call($t, ajaxOptions, "del_"+$t.p.id); }
5908
- else { $.ajax(ajaxOptions); }
5909
- }
5910
- }
5909
+ if (!ajaxOptions.url && !rp_ge.useDataProxy) {
5910
+ if ($.isFunction($t.p.dataProxy)) {
5911
+ rp_ge.useDataProxy = true;
5912
+ } else {
5913
+ ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl;
5914
+ }
5915
+ }
5916
+ if (ret[0]) {
5917
+ if (rp_ge.useDataProxy) { $t.p.dataProxy.call($t, ajaxOptions, "del_"+$t.p.id); }
5918
+ else { $.ajax(ajaxOptions); }
5919
+ }
5920
+ }
5911
5921
 
5912
- if(ret[0] === false) {
5913
- $("#DelError>td","#"+dtbl).html(ret[1]);
5914
- $("#DelError","#"+dtbl).show();
5915
- }
5916
- return false;
5917
- });
5918
- $("#eData", "#"+dtbl+"_2").click(function(e){
5919
- hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
5920
- return false;
5921
- });
5922
- if(onBeforeShow) { p.beforeShowForm($("#"+dtbl)); }
5923
- viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal,modal:p.modal});
5924
- if(onAfterShow) { p.afterShowForm($("#"+dtbl)); }
5925
- }
5926
- if(p.closeOnEscape===true) {
5927
- setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+IDs.modalhead).focus();},0);
5928
- }
5929
- });
5930
- },
5931
- navGrid : function (elem, o, pEdit,pAdd,pDel,pSearch, pView) {
5932
- o = $.extend({
5933
- edit: true,
5934
- editicon: "ui-icon-pencil",
5935
- add: true,
5936
- addicon:"ui-icon-plus",
5937
- del: true,
5938
- delicon:"ui-icon-trash",
5939
- search: true,
5940
- searchicon:"ui-icon-search",
5941
- refresh: true,
5942
- refreshicon:"ui-icon-refresh",
5943
- refreshstate: 'firstpage',
5944
- view: false,
5945
- viewicon : "ui-icon-document",
5946
- position : "left",
5947
- closeOnEscape : true,
5948
- beforeRefresh : null,
5949
- afterRefresh : null,
5950
- cloneToTop : false
5951
- }, $.jgrid.nav, o ||{});
5952
- return this.each(function() {
5953
- var alertIDs = {themodal:'alertmod',modalhead:'alerthd',modalcontent:'alertcnt'},
5954
- $t = this, vwidth, vheight, twd, tdw;
5955
- if(!$t.grid || typeof elem != 'string') { return; }
5956
- if ($("#"+alertIDs.themodal).html() === null) {
5957
- if (typeof window.innerWidth != 'undefined') {
5958
- vwidth = window.innerWidth;
5959
- vheight = window.innerHeight;
5960
- } else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth !== 0) {
5961
- vwidth = document.documentElement.clientWidth;
5962
- vheight = document.documentElement.clientHeight;
5963
- } else {
5964
- vwidth=1024;
5965
- vheight=768;
5966
- }
5967
- createModal(alertIDs,"<div>"+o.alerttext+"</div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'></span></span>",{gbox:"#gbox_"+$t.p.id,jqModal:true,drag:true,resize:true,caption:o.alertcap,top:vheight/2-25,left:vwidth/2-100,width:200,height:'auto',closeOnEscape:o.closeOnEscape},"","",true);
5968
- }
5969
- var clone = 1;
5970
- if(o.cloneToTop && $t.p.toppager) { clone = 2; }
5971
- for(var i = 0; i<clone; i++) {
5972
- var tbd,
5973
- navtbl = $("<table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table navtable' style='float:left;table-layout:auto;'><tbody><tr></tr></tbody></table>"),
5974
- sep = "<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>",
5975
- pgid, elemids;
5976
- if(i===0) {
5977
- pgid = elem;
5978
- elemids = $t.p.id;
5979
- if(pgid == $t.p.toppager) {
5980
- elemids += "_top";
5981
- clone = 1;
5982
- }
5983
- } else {
5984
- pgid = $t.p.toppager;
5985
- elemids = $t.p.id+"_top";
5986
- }
5987
- if($t.p.direction == "rtl") { $(navtbl).attr("dir","rtl").css("float","right"); }
5988
- if (o.add) {
5989
- pAdd = pAdd || {};
5990
- tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
5991
- $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.addicon+"'></span>"+o.addtext+"</div>");
5992
- $("tr",navtbl).append(tbd);
5993
- $(tbd,navtbl)
5994
- .attr({"title":o.addtitle || "",id : pAdd.id || "add_"+elemids})
5995
- .click(function(){
5996
- if (!$(this).hasClass('ui-state-disabled')) {
5997
- if (typeof o.addfunc == 'function') {
5998
- o.addfunc();
5999
- } else {
6000
- $($t).jqGrid("editGridRow","new",pAdd);
6001
- }
6002
- }
6003
- return false;
6004
- }).hover(
6005
- function () {
6006
- if (!$(this).hasClass('ui-state-disabled')) {
6007
- $(this).addClass("ui-state-hover");
6008
- }
6009
- },
6010
- function () {$(this).removeClass("ui-state-hover");}
6011
- );
6012
- tbd = null;
6013
- }
6014
- if (o.edit) {
6015
- tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6016
- pEdit = pEdit || {};
6017
- $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.editicon+"'></span>"+o.edittext+"</div>");
6018
- $("tr",navtbl).append(tbd);
6019
- $(tbd,navtbl)
6020
- .attr({"title":o.edittitle || "",id: pEdit.id || "edit_"+elemids})
6021
- .click(function(){
6022
- if (!$(this).hasClass('ui-state-disabled')) {
6023
- var sr = $t.p.selrow;
6024
- if (sr) {
6025
- if(typeof o.editfunc == 'function') {
6026
- o.editfunc(sr);
6027
- } else {
6028
- $($t).jqGrid("editGridRow",sr,pEdit);
6029
- }
6030
- } else {
6031
- viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
6032
- $("#jqg_alrt").focus();
6033
- }
6034
- }
6035
- return false;
6036
- }).hover(
6037
- function () {
6038
- if (!$(this).hasClass('ui-state-disabled')) {
6039
- $(this).addClass("ui-state-hover");
6040
- }
6041
- },
6042
- function () {$(this).removeClass("ui-state-hover");}
6043
- );
6044
- tbd = null;
6045
- }
6046
- if (o.view) {
6047
- tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6048
- pView = pView || {};
6049
- $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.viewicon+"'></span>"+o.viewtext+"</div>");
6050
- $("tr",navtbl).append(tbd);
6051
- $(tbd,navtbl)
6052
- .attr({"title":o.viewtitle || "",id: pView.id || "view_"+elemids})
6053
- .click(function(){
6054
- if (!$(this).hasClass('ui-state-disabled')) {
6055
- var sr = $t.p.selrow;
6056
- if (sr) {
6057
- $($t).jqGrid("viewGridRow",sr,pView);
6058
- } else {
6059
- viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
6060
- $("#jqg_alrt").focus();
6061
- }
6062
- }
6063
- return false;
6064
- }).hover(
6065
- function () {
6066
- if (!$(this).hasClass('ui-state-disabled')) {
6067
- $(this).addClass("ui-state-hover");
6068
- }
6069
- },
6070
- function () {$(this).removeClass("ui-state-hover");}
6071
- );
6072
- tbd = null;
6073
- }
6074
- if (o.del) {
6075
- tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6076
- pDel = pDel || {};
6077
- $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.delicon+"'></span>"+o.deltext+"</div>");
6078
- $("tr",navtbl).append(tbd);
6079
- $(tbd,navtbl)
6080
- .attr({"title":o.deltitle || "",id: pDel.id || "del_"+elemids})
6081
- .click(function(){
6082
- if (!$(this).hasClass('ui-state-disabled')) {
6083
- var dr;
6084
- if($t.p.multiselect) {
6085
- dr = $t.p.selarrrow;
6086
- if(dr.length===0) { dr = null; }
6087
- } else {
6088
- dr = $t.p.selrow;
6089
- }
6090
- if(dr){
6091
- if("function" == typeof o.delfunc){
6092
- o.delfunc(dr);
6093
- }else{
6094
- $($t).jqGrid("delGridRow",dr,pDel);
6095
- }
6096
- } else {
6097
- viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true}); $("#jqg_alrt").focus();
6098
- }
6099
- }
6100
- return false;
6101
- }).hover(
6102
- function () {
6103
- if (!$(this).hasClass('ui-state-disabled')) {
6104
- $(this).addClass("ui-state-hover");
6105
- }
6106
- },
6107
- function () {$(this).removeClass("ui-state-hover");}
6108
- );
6109
- tbd = null;
6110
- }
6111
- if(o.add || o.edit || o.del || o.view) { $("tr",navtbl).append(sep); }
6112
- if (o.search) {
6113
- tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6114
- pSearch = pSearch || {};
6115
- $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.searchicon+"'></span>"+o.searchtext+"</div>");
6116
- $("tr",navtbl).append(tbd);
6117
- $(tbd,navtbl)
6118
- .attr({"title":o.searchtitle || "",id:pSearch.id || "search_"+elemids})
6119
- .click(function(){
6120
- if (!$(this).hasClass('ui-state-disabled')) {
6121
- $($t).jqGrid("searchGrid",pSearch);
6122
- }
6123
- return false;
6124
- }).hover(
6125
- function () {
6126
- if (!$(this).hasClass('ui-state-disabled')) {
6127
- $(this).addClass("ui-state-hover");
6128
- }
6129
- },
6130
- function () {$(this).removeClass("ui-state-hover");}
6131
- );
6132
- tbd = null;
6133
- }
6134
- if (o.refresh) {
6135
- tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6136
- $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.refreshicon+"'></span>"+o.refreshtext+"</div>");
6137
- $("tr",navtbl).append(tbd);
6138
- $(tbd,navtbl)
6139
- .attr({"title":o.refreshtitle || "",id: "refresh_"+elemids})
6140
- .click(function(){
6141
- if (!$(this).hasClass('ui-state-disabled')) {
6142
- if($.isFunction(o.beforeRefresh)) { o.beforeRefresh(); }
6143
- $t.p.search = false;
6144
- try {
6145
- var gID = $t.p.id;
6146
- $("#fbox_"+gID).searchFilter().reset({"reload":false});
6147
- if($.isFunction($t.clearToolbar)) { $t.clearToolbar(false); }
6148
- } catch (e) {}
6149
- switch (o.refreshstate) {
6150
- case 'firstpage':
6151
- $($t).trigger("reloadGrid", [{page:1}]);
6152
- break;
6153
- case 'current':
6154
- $($t).trigger("reloadGrid", [{current:true}]);
6155
- break;
6156
- }
6157
- if($.isFunction(o.afterRefresh)) { o.afterRefresh(); }
6158
- }
6159
- return false;
6160
- }).hover(
6161
- function () {
6162
- if (!$(this).hasClass('ui-state-disabled')) {
6163
- $(this).addClass("ui-state-hover");
6164
- }
6165
- },
6166
- function () {$(this).removeClass("ui-state-hover");}
6167
- );
6168
- tbd = null;
6169
- }
6170
- tdw = $(".ui-jqgrid").css("font-size") || "11px";
6171
- $('body').append("<div id='testpg2' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+tdw+";visibility:hidden;' ></div>");
6172
- twd = $(navtbl).clone().appendTo("#testpg2").width();
6173
- $("#testpg2").remove();
6174
- $(pgid+"_"+o.position,pgid).append(navtbl);
6175
- if($t.p._nvtd) {
6176
- if(twd > $t.p._nvtd[0] ) {
6177
- $(pgid+"_"+o.position,pgid).width(twd);
6178
- $t.p._nvtd[0] = twd;
6179
- }
6180
- $t.p._nvtd[1] = twd;
6181
- }
6182
- tdw =null; twd=null; navtbl =null;
6183
- }
6184
- });
6185
- },
6186
- navButtonAdd : function (elem, p) {
6187
- p = $.extend({
6188
- caption : "newButton",
6189
- title: '',
6190
- buttonicon : 'ui-icon-newwin',
6191
- onClickButton: null,
6192
- position : "last",
6193
- cursor : 'pointer'
6194
- }, p ||{});
6195
- return this.each(function() {
6196
- if( !this.grid) { return; }
6197
- if( elem.indexOf("#") !== 0) { elem = "#"+elem; }
6198
- var findnav = $(".navtable",elem)[0], $t = this;
6199
- if (findnav) {
6200
- var tbd = $("<td></td>");
6201
- if(p.buttonicon.toString().toUpperCase() == "NONE") {
5922
+ if(ret[0] === false) {
5923
+ $("#DelError>td","#"+dtbl).html(ret[1]);
5924
+ $("#DelError","#"+dtbl).show();
5925
+ }
5926
+ return false;
5927
+ });
5928
+ $("#eData", "#"+dtbl+"_2").click(function(e){
5929
+ hideModal("#"+IDs.themodal,{gb:"#gbox_"+gID,jqm:p.jqModal, onClose: rp_ge.onClose});
5930
+ return false;
5931
+ });
5932
+ if(onBeforeShow) { p.beforeShowForm($("#"+dtbl)); }
5933
+ viewModal("#"+IDs.themodal,{gbox:"#gbox_"+gID,jqm:p.jqModal, overlay: p.overlay, modal:p.modal});
5934
+ if(onAfterShow) { p.afterShowForm($("#"+dtbl)); }
5935
+ }
5936
+ if(p.closeOnEscape===true) {
5937
+ setTimeout(function(){$(".ui-jqdialog-titlebar-close","#"+IDs.modalhead).focus();},0);
5938
+ }
5939
+ });
5940
+ },
5941
+ navGrid : function (elem, o, pEdit,pAdd,pDel,pSearch, pView) {
5942
+ o = $.extend({
5943
+ edit: true,
5944
+ editicon: "ui-icon-pencil",
5945
+ add: true,
5946
+ addicon:"ui-icon-plus",
5947
+ del: true,
5948
+ delicon:"ui-icon-trash",
5949
+ search: true,
5950
+ searchicon:"ui-icon-search",
5951
+ refresh: true,
5952
+ refreshicon:"ui-icon-refresh",
5953
+ refreshstate: 'firstpage',
5954
+ view: false,
5955
+ viewicon : "ui-icon-document",
5956
+ position : "left",
5957
+ closeOnEscape : true,
5958
+ beforeRefresh : null,
5959
+ afterRefresh : null,
5960
+ cloneToTop : false
5961
+ }, $.jgrid.nav, o ||{});
5962
+ return this.each(function() {
5963
+ var alertIDs = {themodal:'alertmod',modalhead:'alerthd',modalcontent:'alertcnt'},
5964
+ $t = this, vwidth, vheight, twd, tdw;
5965
+ if(!$t.grid || typeof elem != 'string') { return; }
5966
+ if ($("#"+alertIDs.themodal).html() === null) {
5967
+ if (typeof window.innerWidth != 'undefined') {
5968
+ vwidth = window.innerWidth;
5969
+ vheight = window.innerHeight;
5970
+ } else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth !== 0) {
5971
+ vwidth = document.documentElement.clientWidth;
5972
+ vheight = document.documentElement.clientHeight;
5973
+ } else {
5974
+ vwidth=1024;
5975
+ vheight=768;
5976
+ }
5977
+ createModal(alertIDs,"<div>"+o.alerttext+"</div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'></span></span>",{gbox:"#gbox_"+$t.p.id,jqModal:true,drag:true,resize:true,caption:o.alertcap,top:vheight/2-25,left:vwidth/2-100,width:200,height:'auto',closeOnEscape:o.closeOnEscape},"","",true);
5978
+ }
5979
+ var clone = 1;
5980
+ if(o.cloneToTop && $t.p.toppager) { clone = 2; }
5981
+ for(var i = 0; i<clone; i++) {
5982
+ var tbd,
5983
+ navtbl = $("<table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table navtable' style='float:left;table-layout:auto;'><tbody><tr></tr></tbody></table>"),
5984
+ sep = "<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'></span></td>",
5985
+ pgid, elemids;
5986
+ if(i===0) {
5987
+ pgid = elem;
5988
+ elemids = $t.p.id;
5989
+ if(pgid == $t.p.toppager) {
5990
+ elemids += "_top";
5991
+ clone = 1;
5992
+ }
5993
+ } else {
5994
+ pgid = $t.p.toppager;
5995
+ elemids = $t.p.id+"_top";
5996
+ }
5997
+ if($t.p.direction == "rtl") { $(navtbl).attr("dir","rtl").css("float","right"); }
5998
+ if (o.add) {
5999
+ pAdd = pAdd || {};
6000
+ tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6001
+ $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.addicon+"'></span>"+o.addtext+"</div>");
6002
+ $("tr",navtbl).append(tbd);
6003
+ $(tbd,navtbl)
6004
+ .attr({"title":o.addtitle || "",id : pAdd.id || "add_"+elemids})
6005
+ .click(function(){
6006
+ if (!$(this).hasClass('ui-state-disabled')) {
6007
+ if (typeof o.addfunc == 'function') {
6008
+ o.addfunc();
6009
+ } else {
6010
+ $($t).jqGrid("editGridRow","new",pAdd);
6011
+ }
6012
+ }
6013
+ return false;
6014
+ }).hover(
6015
+ function () {
6016
+ if (!$(this).hasClass('ui-state-disabled')) {
6017
+ $(this).addClass("ui-state-hover");
6018
+ }
6019
+ },
6020
+ function () {$(this).removeClass("ui-state-hover");}
6021
+ );
6022
+ tbd = null;
6023
+ }
6024
+ if (o.edit) {
6025
+ tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6026
+ pEdit = pEdit || {};
6027
+ $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.editicon+"'></span>"+o.edittext+"</div>");
6028
+ $("tr",navtbl).append(tbd);
6029
+ $(tbd,navtbl)
6030
+ .attr({"title":o.edittitle || "",id: pEdit.id || "edit_"+elemids})
6031
+ .click(function(){
6032
+ if (!$(this).hasClass('ui-state-disabled')) {
6033
+ var sr = $t.p.selrow;
6034
+ if (sr) {
6035
+ if(typeof o.editfunc == 'function') {
6036
+ o.editfunc(sr);
6037
+ } else {
6038
+ $($t).jqGrid("editGridRow",sr,pEdit);
6039
+ }
6040
+ } else {
6041
+ viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
6042
+ $("#jqg_alrt").focus();
6043
+ }
6044
+ }
6045
+ return false;
6046
+ }).hover(
6047
+ function () {
6048
+ if (!$(this).hasClass('ui-state-disabled')) {
6049
+ $(this).addClass("ui-state-hover");
6050
+ }
6051
+ },
6052
+ function () {$(this).removeClass("ui-state-hover");}
6053
+ );
6054
+ tbd = null;
6055
+ }
6056
+ if (o.view) {
6057
+ tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6058
+ pView = pView || {};
6059
+ $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.viewicon+"'></span>"+o.viewtext+"</div>");
6060
+ $("tr",navtbl).append(tbd);
6061
+ $(tbd,navtbl)
6062
+ .attr({"title":o.viewtitle || "",id: pView.id || "view_"+elemids})
6063
+ .click(function(){
6064
+ if (!$(this).hasClass('ui-state-disabled')) {
6065
+ var sr = $t.p.selrow;
6066
+ if (sr) {
6067
+ $($t).jqGrid("viewGridRow",sr,pView);
6068
+ } else {
6069
+ viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
6070
+ $("#jqg_alrt").focus();
6071
+ }
6072
+ }
6073
+ return false;
6074
+ }).hover(
6075
+ function () {
6076
+ if (!$(this).hasClass('ui-state-disabled')) {
6077
+ $(this).addClass("ui-state-hover");
6078
+ }
6079
+ },
6080
+ function () {$(this).removeClass("ui-state-hover");}
6081
+ );
6082
+ tbd = null;
6083
+ }
6084
+ if (o.del) {
6085
+ tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6086
+ pDel = pDel || {};
6087
+ $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.delicon+"'></span>"+o.deltext+"</div>");
6088
+ $("tr",navtbl).append(tbd);
6089
+ $(tbd,navtbl)
6090
+ .attr({"title":o.deltitle || "",id: pDel.id || "del_"+elemids})
6091
+ .click(function(){
6092
+ if (!$(this).hasClass('ui-state-disabled')) {
6093
+ var dr;
6094
+ if($t.p.multiselect) {
6095
+ dr = $t.p.selarrrow;
6096
+ if(dr.length===0) { dr = null; }
6097
+ } else {
6098
+ dr = $t.p.selrow;
6099
+ }
6100
+ if(dr){
6101
+ if("function" == typeof o.delfunc){
6102
+ o.delfunc(dr);
6103
+ }else{
6104
+ $($t).jqGrid("delGridRow",dr,pDel);
6105
+ }
6106
+ } else {
6107
+ viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true}); $("#jqg_alrt").focus();
6108
+ }
6109
+ }
6110
+ return false;
6111
+ }).hover(
6112
+ function () {
6113
+ if (!$(this).hasClass('ui-state-disabled')) {
6114
+ $(this).addClass("ui-state-hover");
6115
+ }
6116
+ },
6117
+ function () {$(this).removeClass("ui-state-hover");}
6118
+ );
6119
+ tbd = null;
6120
+ }
6121
+ if(o.add || o.edit || o.del || o.view) { $("tr",navtbl).append(sep); }
6122
+ if (o.search) {
6123
+ tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6124
+ pSearch = pSearch || {};
6125
+ $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.searchicon+"'></span>"+o.searchtext+"</div>");
6126
+ $("tr",navtbl).append(tbd);
6127
+ $(tbd,navtbl)
6128
+ .attr({"title":o.searchtitle || "",id:pSearch.id || "search_"+elemids})
6129
+ .click(function(){
6130
+ if (!$(this).hasClass('ui-state-disabled')) {
6131
+ $($t).jqGrid("searchGrid",pSearch);
6132
+ }
6133
+ return false;
6134
+ }).hover(
6135
+ function () {
6136
+ if (!$(this).hasClass('ui-state-disabled')) {
6137
+ $(this).addClass("ui-state-hover");
6138
+ }
6139
+ },
6140
+ function () {$(this).removeClass("ui-state-hover");}
6141
+ );
6142
+ tbd = null;
6143
+ }
6144
+ if (o.refresh) {
6145
+ tbd = $("<td class='ui-pg-button ui-corner-all'></td>");
6146
+ $(tbd).append("<div class='ui-pg-div'><span class='ui-icon "+o.refreshicon+"'></span>"+o.refreshtext+"</div>");
6147
+ $("tr",navtbl).append(tbd);
6148
+ $(tbd,navtbl)
6149
+ .attr({"title":o.refreshtitle || "",id: "refresh_"+elemids})
6150
+ .click(function(){
6151
+ if (!$(this).hasClass('ui-state-disabled')) {
6152
+ if($.isFunction(o.beforeRefresh)) { o.beforeRefresh(); }
6153
+ $t.p.search = false;
6154
+ try {
6155
+ var gID = $t.p.id;
6156
+ $("#fbox_"+gID).searchFilter().reset({"reload":false});
6157
+ if($.isFunction($t.clearToolbar)) { $t.clearToolbar(false); }
6158
+ } catch (e) {}
6159
+ switch (o.refreshstate) {
6160
+ case 'firstpage':
6161
+ $($t).trigger("reloadGrid", [{page:1}]);
6162
+ break;
6163
+ case 'current':
6164
+ $($t).trigger("reloadGrid", [{current:true}]);
6165
+ break;
6166
+ }
6167
+ if($.isFunction(o.afterRefresh)) { o.afterRefresh(); }
6168
+ }
6169
+ return false;
6170
+ }).hover(
6171
+ function () {
6172
+ if (!$(this).hasClass('ui-state-disabled')) {
6173
+ $(this).addClass("ui-state-hover");
6174
+ }
6175
+ },
6176
+ function () {$(this).removeClass("ui-state-hover");}
6177
+ );
6178
+ tbd = null;
6179
+ }
6180
+ tdw = $(".ui-jqgrid").css("font-size") || "11px";
6181
+ $('body').append("<div id='testpg2' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+tdw+";visibility:hidden;' ></div>");
6182
+ twd = $(navtbl).clone().appendTo("#testpg2").width();
6183
+ $("#testpg2").remove();
6184
+ $(pgid+"_"+o.position,pgid).append(navtbl);
6185
+ if($t.p._nvtd) {
6186
+ if(twd > $t.p._nvtd[0] ) {
6187
+ $(pgid+"_"+o.position,pgid).width(twd);
6188
+ $t.p._nvtd[0] = twd;
6189
+ }
6190
+ $t.p._nvtd[1] = twd;
6191
+ }
6192
+ tdw =null; twd=null; navtbl =null;
6193
+ }
6194
+ });
6195
+ },
6196
+ navButtonAdd : function (elem, p) {
6197
+ p = $.extend({
6198
+ caption : "newButton",
6199
+ title: '',
6200
+ buttonicon : 'ui-icon-newwin',
6201
+ onClickButton: null,
6202
+ position : "last",
6203
+ cursor : 'pointer'
6204
+ }, p ||{});
6205
+ return this.each(function() {
6206
+ if( !this.grid) { return; }
6207
+ if( elem.indexOf("#") !== 0) { elem = "#"+elem; }
6208
+ var findnav = $(".navtable",elem)[0], $t = this;
6209
+ if (findnav) {
6210
+ var tbd = $("<td></td>");
6211
+ if(p.buttonicon.toString().toUpperCase() == "NONE") {
6202
6212
  $(tbd).addClass('ui-pg-button ui-corner-all').append("<div class='ui-pg-div'>"+p.caption+"</div>");
6203
- } else {
6204
- $(tbd).addClass('ui-pg-button ui-corner-all').append("<div class='ui-pg-div'><span class='ui-icon "+p.buttonicon+"'></span>"+p.caption+"</div>");
6205
- }
6206
- if(p.id) {$(tbd).attr("id",p.id);}
6207
- if(p.position=='first'){
6208
- if(findnav.rows[0].cells.length ===0 ) {
6209
- $("tr",findnav).append(tbd);
6210
- } else {
6211
- $("tr td:eq(0)",findnav).before(tbd);
6212
- }
6213
- } else {
6214
- $("tr",findnav).append(tbd);
6215
- }
6216
- $(tbd,findnav)
6217
- .attr("title",p.title || "")
6218
- .click(function(e){
6219
- if (!$(this).hasClass('ui-state-disabled')) {
6220
- if ($.isFunction(p.onClickButton) ) { p.onClickButton.call($t,e); }
6221
- }
6222
- return false;
6223
- })
6224
- .hover(
6225
- function () {
6226
- if (!$(this).hasClass('ui-state-disabled')) {
6227
- $(this).addClass('ui-state-hover');
6228
- }
6229
- },
6230
- function () {$(this).removeClass("ui-state-hover");}
6231
- );
6232
- }
6233
- });
6234
- },
6235
- navSeparatorAdd:function (elem,p) {
6236
- p = $.extend({
6237
- sepclass : "ui-separator",
6238
- sepcontent: ''
6239
- }, p ||{});
6240
- return this.each(function() {
6241
- if( !this.grid) { return; }
6242
- if( elem.indexOf("#") !== 0) { elem = "#"+elem; }
6243
- var findnav = $(".navtable",elem)[0];
6244
- if(findnav) {
6245
- var sep = "<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+p.sepclass+"'></span>"+p.sepcontent+"</td>";
6246
- $("tr",findnav).append(sep);
6247
- }
6248
- });
6249
- },
6250
- GridToForm : function( rowid, formid ) {
6251
- return this.each(function(){
6252
- var $t = this;
6253
- if (!$t.grid) { return; }
6254
- var rowdata = $($t).jqGrid("getRowData",rowid);
6255
- if (rowdata) {
6256
- for(var i in rowdata) {
6257
- if ( $("[name="+i+"]",formid).is("input:radio") || $("[name="+i+"]",formid).is("input:checkbox")) {
6258
- $("[name="+i+"]",formid).each( function() {
6259
- if( $(this).val() == rowdata[i] ) {
6260
- $(this).attr("checked","checked");
6261
- } else {
6262
- $(this).attr("checked","");
6263
- }
6264
- });
6265
- } else {
6266
- // this is very slow on big table and form.
6267
- $("[name="+i+"]",formid).val(rowdata[i]);
6268
- }
6269
- }
6270
- }
6271
- });
6272
- },
6273
- FormToGrid : function(rowid, formid, mode, position){
6274
- return this.each(function() {
6275
- var $t = this;
6276
- if(!$t.grid) { return; }
6277
- if(!mode) { mode = 'set'; }
6278
- if(!position) { position = 'first'; }
6279
- var fields = $(formid).serializeArray();
6280
- var griddata = {};
6281
- $.each(fields, function(i, field){
6282
- griddata[field.name] = field.value;
6283
- });
6284
- if(mode=='add') { $($t).jqGrid("addRowData",rowid,griddata, position); }
6285
- else if(mode=='set') { $($t).jqGrid("setRowData",rowid,griddata); }
6286
- });
6287
- }
6213
+ } else {
6214
+ $(tbd).addClass('ui-pg-button ui-corner-all').append("<div class='ui-pg-div'><span class='ui-icon "+p.buttonicon+"'></span>"+p.caption+"</div>");
6215
+ }
6216
+ if(p.id) {$(tbd).attr("id",p.id);}
6217
+ if(p.position=='first'){
6218
+ if(findnav.rows[0].cells.length ===0 ) {
6219
+ $("tr",findnav).append(tbd);
6220
+ } else {
6221
+ $("tr td:eq(0)",findnav).before(tbd);
6222
+ }
6223
+ } else {
6224
+ $("tr",findnav).append(tbd);
6225
+ }
6226
+ $(tbd,findnav)
6227
+ .attr("title",p.title || "")
6228
+ .click(function(e){
6229
+ if (!$(this).hasClass('ui-state-disabled')) {
6230
+ if ($.isFunction(p.onClickButton) ) { p.onClickButton.call($t,e); }
6231
+ }
6232
+ return false;
6233
+ })
6234
+ .hover(
6235
+ function () {
6236
+ if (!$(this).hasClass('ui-state-disabled')) {
6237
+ $(this).addClass('ui-state-hover');
6238
+ }
6239
+ },
6240
+ function () {$(this).removeClass("ui-state-hover");}
6241
+ );
6242
+ }
6243
+ });
6244
+ },
6245
+ navSeparatorAdd:function (elem,p) {
6246
+ p = $.extend({
6247
+ sepclass : "ui-separator",
6248
+ sepcontent: ''
6249
+ }, p ||{});
6250
+ return this.each(function() {
6251
+ if( !this.grid) { return; }
6252
+ if( elem.indexOf("#") !== 0) { elem = "#"+elem; }
6253
+ var findnav = $(".navtable",elem)[0];
6254
+ if(findnav) {
6255
+ var sep = "<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+p.sepclass+"'></span>"+p.sepcontent+"</td>";
6256
+ $("tr",findnav).append(sep);
6257
+ }
6258
+ });
6259
+ },
6260
+ GridToForm : function( rowid, formid ) {
6261
+ return this.each(function(){
6262
+ var $t = this;
6263
+ if (!$t.grid) { return; }
6264
+ var rowdata = $($t).jqGrid("getRowData",rowid);
6265
+ if (rowdata) {
6266
+ for(var i in rowdata) {
6267
+ if ( $("[name="+i+"]",formid).is("input:radio") || $("[name="+i+"]",formid).is("input:checkbox")) {
6268
+ $("[name="+i+"]",formid).each( function() {
6269
+ if( $(this).val() == rowdata[i] ) {
6270
+ $(this).attr("checked","checked");
6271
+ } else {
6272
+ $(this).attr("checked","");
6273
+ }
6274
+ });
6275
+ } else {
6276
+ // this is very slow on big table and form.
6277
+ $("[name="+i+"]",formid).val(rowdata[i]);
6278
+ }
6279
+ }
6280
+ }
6281
+ });
6282
+ },
6283
+ FormToGrid : function(rowid, formid, mode, position){
6284
+ return this.each(function() {
6285
+ var $t = this;
6286
+ if(!$t.grid) { return; }
6287
+ if(!mode) { mode = 'set'; }
6288
+ if(!position) { position = 'first'; }
6289
+ var fields = $(formid).serializeArray();
6290
+ var griddata = {};
6291
+ $.each(fields, function(i, field){
6292
+ griddata[field.name] = field.value;
6293
+ });
6294
+ if(mode=='add') { $($t).jqGrid("addRowData",rowid,griddata, position); }
6295
+ else if(mode=='set') { $($t).jqGrid("setRowData",rowid,griddata); }
6296
+ });
6297
+ }
6288
6298
  });
6289
6299
  })(jQuery);
6290
6300
 
@@ -7733,14 +7743,7 @@ $.jgrid.extend({
7733
7743
  }
7734
7744
  $.each(records, function(index, row) {
7735
7745
  var id = $.jgrid.getAccessor(this,$t.p.localReader.id);
7736
- if(index===0) {
7737
- var row1 = $("#"+id,$t.grid.bDiv);
7738
- $("td",row1).each( function( k ) {
7739
- $(this).css("width",$t.grid.headers[k].width+"px");
7740
- });
7741
- $t.grid.cols = row1[0].cells;
7742
- }
7743
- $('tbody',$t.grid.bDiv).append($("#"+id,$t.grid.bDiv));
7746
+ $('#'+$t.p.id+ ' tbody tr:eq('+index+')').after($('tr#'+id,$t.grid.bDiv));
7744
7747
  });
7745
7748
  query = null; roots=null;records=null;
7746
7749
  });
@@ -8324,12 +8327,12 @@ $.jgrid.extend({
8324
8327
  return this.each(function(){
8325
8328
  var $t = this;
8326
8329
  var triggerToolbar = function() {
8327
- var sdata={}, j=0, v, nm, sopt={};
8330
+ var sdata={}, j=0, v, nm, sopt={},so;
8328
8331
  $.each($t.p.colModel,function(i,n){
8329
8332
  nm = this.index || this.name;
8330
- var so = (this.searchoptions && this.searchoptions.sopt) ? this.searchoptions.sopt[0] : p.defaultSearch;
8331
8333
  switch (this.stype) {
8332
8334
  case 'select' :
8335
+ so = (this.searchoptions && this.searchoptions.sopt) ? this.searchoptions.sopt[0] : 'eq';
8333
8336
  v = $("select[name="+nm+"]",$t.grid.hDiv).val();
8334
8337
  if(v) {
8335
8338
  sdata[nm] = v;
@@ -8342,6 +8345,7 @@ $.jgrid.extend({
8342
8345
  }
8343
8346
  break;
8344
8347
  case 'text':
8348
+ so = (this.searchoptions && this.searchoptions.sopt) ? this.searchoptions.sopt[0] : p.defaultSearch;
8345
8349
  v = $("input[name="+nm+"]",$t.grid.hDiv).val();
8346
8350
  if(v) {
8347
8351
  sdata[nm] = v;
@@ -9697,7 +9701,7 @@ $.jgrid.extend({
9697
9701
  this.each(function(){
9698
9702
  // currently only one level
9699
9703
  // Is this a good idea to do it so!!!!?????
9700
- var itm = items[0] ? items[0].split(' ').join('') : "";
9704
+ var itm = items[0] ? items[0].toString().split(' ').join('') : "";
9701
9705
 
9702
9706
  var grp = this.p.groupingView, $t= this;
9703
9707
  if(gdata.hasOwnProperty(itm)) {
@@ -9706,8 +9710,8 @@ $.jgrid.extend({
9706
9710
  gdata[itm] = [];
9707
9711
  gdata[itm].push(rData);
9708
9712
  grp.sortitems[0].push(itm);
9709
- grp.sortnames[0].push($.trim(items[0]));
9710
- grp.summaryval[0][itm] = $.extend(true,{},grp.summary[0]);
9713
+ grp.sortnames[0].push($.trim(items[0].toString()));
9714
+ grp.summaryval[0][itm] = $.extend(true,[],grp.summary[0]);
9711
9715
  }
9712
9716
  if(grp.groupSummary[0]) {
9713
9717
  $.each(grp.summaryval[0][itm],function(i,n) {
@@ -9757,6 +9761,7 @@ $.jgrid.extend({
9757
9761
  if(grp.groupOrder[0].toLowerCase() == 'desc')
9758
9762
  {
9759
9763
  grp.sortitems[0].reverse();
9764
+ grp.sortnames[0].reverse();
9760
9765
  }
9761
9766
  }
9762
9767
  if(grp.groupCollapse) { pmrtl = grp.plusicon; }
@@ -9838,6 +9843,7 @@ $.jgrid.extend({
9838
9843
  $t.p.grouping = false;
9839
9844
  if(current===true) {
9840
9845
  $("tr.jqgroup, tr.jqfoot","#"+$t.p.id+" tbody:first").remove();
9846
+ $("tr.jqgrow:hidden","#"+$t.p.id+" tbody:first").show();
9841
9847
  } else {
9842
9848
  $($t).trigger("reloadGrid");
9843
9849
  }
@@ -10731,16 +10737,18 @@ $.jgrid.extend({
10731
10737
  "drop" : function (opts) {
10732
10738
  return $.extend({
10733
10739
  accept: function(d) {
10740
+ if (!$(d).hasClass('jqgrow')) { return d;}
10734
10741
  var tid = $(d).closest("table.ui-jqgrid-btable");
10735
- if($.data(tid[0],"dnd") !== undefined) {
10742
+ if(tid.length > 0 && $.data(tid[0],"dnd") !== undefined) {
10736
10743
  var cn = $.data(tid[0],"dnd").connectWith;
10737
10744
  return $.inArray('#'+this.id,cn) != -1 ? true : false;
10738
10745
  }
10739
10746
  return d;
10740
10747
  },
10741
10748
  drop: function(ev, ui) {
10749
+ if (!$(ui.draggable).hasClass('jqgrow')) { return; }
10742
10750
  var accept = $(ui.draggable).attr("id");
10743
- var getdata = $('#'+$t.id).jqGrid('getRowData',accept);
10751
+ var getdata = ui.draggable.parent().parent().jqGrid('getRowData',accept);
10744
10752
  if(!opts.dropbyname) {
10745
10753
  var j =0, tmpdata = {}, dropname;
10746
10754
  var dropmodel = $("#"+this.id).jqGrid('getGridParam','colModel');