compass-jquery-plugin 0.3.0.beta.2 → 0.3.0.beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. data/README.textile +2 -2
  2. data/VERSION.yml +1 -1
  3. data/compass-jquery-plugin.gemspec +309 -6
  4. data/gem_tasks/jqtouch.rake +73 -7
  5. data/gem_tasks/jrails13.rake +6 -6
  6. data/gem_tasks/jrails14.rake +6 -6
  7. data/lib/handle_js_files.rb +3 -2
  8. data/lib/jquery.ui.rb +1 -1
  9. data/templates/dynatree/jquery.ui/dynatree.aero.scss +4 -4
  10. data/templates/dynatree/jquery.ui/dynatree.aqua.scss +4 -4
  11. data/templates/dynatree/jquery.ui/dynatree.crystal.scss +4 -4
  12. data/templates/dynatree/jquery.ui/dynatree.xp.scss +4 -5
  13. data/templates/jqgrid/i18n/jqgrid/locale-cn.js +7 -3
  14. data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +8 -8
  15. data/templates/jqgrid/jquery.jqGrid.js +213 -137
  16. data/templates/jqgrid/jquery.jqGrid.min.js +262 -261
  17. data/templates/jqgrid/jquery.ui/jqGrid.scss +37 -37
  18. data/templates/jqtouch/jqtouch/glyphish/Read me first - license.txt +14 -0
  19. data/templates/jqtouch/jqtouch/glyphish/icons/01-refresh.png +0 -0
  20. data/templates/jqtouch/jqtouch/glyphish/icons/02-redo.png +0 -0
  21. data/templates/jqtouch/jqtouch/glyphish/icons/03-loopback.png +0 -0
  22. data/templates/jqtouch/jqtouch/glyphish/icons/04-squiggle.png +0 -0
  23. data/templates/jqtouch/jqtouch/glyphish/icons/05-shuffle.png +0 -0
  24. data/templates/jqtouch/jqtouch/glyphish/icons/06-magnifying-glass.png +0 -0
  25. data/templates/jqtouch/jqtouch/glyphish/icons/07-map-marker.png +0 -0
  26. data/templates/jqtouch/jqtouch/glyphish/icons/08-chat.png +0 -0
  27. data/templates/jqtouch/jqtouch/glyphish/icons/09-chat2.png +0 -0
  28. data/templates/jqtouch/jqtouch/glyphish/icons/10-medical.png +0 -0
  29. data/templates/jqtouch/jqtouch/glyphish/icons/100-coffee.png +0 -0
  30. data/templates/jqtouch/jqtouch/glyphish/icons/101-gameplan.png +0 -0
  31. data/templates/jqtouch/jqtouch/glyphish/icons/102-walk.png +0 -0
  32. data/templates/jqtouch/jqtouch/glyphish/icons/103-map.png +0 -0
  33. data/templates/jqtouch/jqtouch/glyphish/icons/104-index-cards.png +0 -0
  34. data/templates/jqtouch/jqtouch/glyphish/icons/105-piano.png +0 -0
  35. data/templates/jqtouch/jqtouch/glyphish/icons/106-sliders.png +0 -0
  36. data/templates/jqtouch/jqtouch/glyphish/icons/107-widescreen.png +0 -0
  37. data/templates/jqtouch/jqtouch/glyphish/icons/108-badge.png +0 -0
  38. data/templates/jqtouch/jqtouch/glyphish/icons/109-chicken.png +0 -0
  39. data/templates/jqtouch/jqtouch/glyphish/icons/11-clock.png +0 -0
  40. data/templates/jqtouch/jqtouch/glyphish/icons/110-bug.png +0 -0
  41. data/templates/jqtouch/jqtouch/glyphish/icons/111-user.png +0 -0
  42. data/templates/jqtouch/jqtouch/glyphish/icons/112-group.png +0 -0
  43. data/templates/jqtouch/jqtouch/glyphish/icons/113-navigation.png +0 -0
  44. data/templates/jqtouch/jqtouch/glyphish/icons/114-balloon.png +0 -0
  45. data/templates/jqtouch/jqtouch/glyphish/icons/115-bow-and-arrow.png +0 -0
  46. data/templates/jqtouch/jqtouch/glyphish/icons/116-controller.png +0 -0
  47. data/templates/jqtouch/jqtouch/glyphish/icons/117-todo.png +0 -0
  48. data/templates/jqtouch/jqtouch/glyphish/icons/118-coathanger.png +0 -0
  49. data/templates/jqtouch/jqtouch/glyphish/icons/119-piggybank.png +0 -0
  50. data/templates/jqtouch/jqtouch/glyphish/icons/12-eye.png +0 -0
  51. data/templates/jqtouch/jqtouch/glyphish/icons/120-headphones.png +0 -0
  52. data/templates/jqtouch/jqtouch/glyphish/icons/121-lanscape.png +0 -0
  53. data/templates/jqtouch/jqtouch/glyphish/icons/122-stats.png +0 -0
  54. data/templates/jqtouch/jqtouch/glyphish/icons/123-id-card.png +0 -0
  55. data/templates/jqtouch/jqtouch/glyphish/icons/124-bullhorn.png +0 -0
  56. data/templates/jqtouch/jqtouch/glyphish/icons/125-food.png +0 -0
  57. data/templates/jqtouch/jqtouch/glyphish/icons/126-moon.png +0 -0
  58. data/templates/jqtouch/jqtouch/glyphish/icons/127-sock.png +0 -0
  59. data/templates/jqtouch/jqtouch/glyphish/icons/128-bone.png +0 -0
  60. data/templates/jqtouch/jqtouch/glyphish/icons/129-golf.png +0 -0
  61. data/templates/jqtouch/jqtouch/glyphish/icons/13-target.png +0 -0
  62. data/templates/jqtouch/jqtouch/glyphish/icons/130-dice.png +0 -0
  63. data/templates/jqtouch/jqtouch/glyphish/icons/14-tag.png +0 -0
  64. data/templates/jqtouch/jqtouch/glyphish/icons/15-tags.png +0 -0
  65. data/templates/jqtouch/jqtouch/glyphish/icons/16-line-chart.png +0 -0
  66. data/templates/jqtouch/jqtouch/glyphish/icons/17-bar-chart.png +0 -0
  67. data/templates/jqtouch/jqtouch/glyphish/icons/18-envelope.png +0 -0
  68. data/templates/jqtouch/jqtouch/glyphish/icons/19-gear.png +0 -0
  69. data/templates/jqtouch/jqtouch/glyphish/icons/20-gear2.png +0 -0
  70. data/templates/jqtouch/jqtouch/glyphish/icons/21-skull.png +0 -0
  71. data/templates/jqtouch/jqtouch/glyphish/icons/22-skull-n-crossbones.png +0 -0
  72. data/templates/jqtouch/jqtouch/glyphish/icons/23-bird.png +0 -0
  73. data/templates/jqtouch/jqtouch/glyphish/icons/24-gift.png +0 -0
  74. data/templates/jqtouch/jqtouch/glyphish/icons/25-weather.png +0 -0
  75. data/templates/jqtouch/jqtouch/glyphish/icons/26-bandaid.png +0 -0
  76. data/templates/jqtouch/jqtouch/glyphish/icons/27-planet.png +0 -0
  77. data/templates/jqtouch/jqtouch/glyphish/icons/28-star.png +0 -0
  78. data/templates/jqtouch/jqtouch/glyphish/icons/29-heart.png +0 -0
  79. data/templates/jqtouch/jqtouch/glyphish/icons/30-key.png +0 -0
  80. data/templates/jqtouch/jqtouch/glyphish/icons/31-ipod.png +0 -0
  81. data/templates/jqtouch/jqtouch/glyphish/icons/32-iphone.png +0 -0
  82. data/templates/jqtouch/jqtouch/glyphish/icons/33-cabinet.png +0 -0
  83. data/templates/jqtouch/jqtouch/glyphish/icons/34-coffee.png +0 -0
  84. data/templates/jqtouch/jqtouch/glyphish/icons/35-shopping-bag.png +0 -0
  85. data/templates/jqtouch/jqtouch/glyphish/icons/36-toolbox.png +0 -0
  86. data/templates/jqtouch/jqtouch/glyphish/icons/37-suitcase.png +0 -0
  87. data/templates/jqtouch/jqtouch/glyphish/icons/38-airplane.png +0 -0
  88. data/templates/jqtouch/jqtouch/glyphish/icons/39-spraycan.png +0 -0
  89. data/templates/jqtouch/jqtouch/glyphish/icons/40-inbox.png +0 -0
  90. data/templates/jqtouch/jqtouch/glyphish/icons/41-picture-frame.png +0 -0
  91. data/templates/jqtouch/jqtouch/glyphish/icons/42-photos.png +0 -0
  92. data/templates/jqtouch/jqtouch/glyphish/icons/43-film-roll.png +0 -0
  93. data/templates/jqtouch/jqtouch/glyphish/icons/44-shoebox.png +0 -0
  94. data/templates/jqtouch/jqtouch/glyphish/icons/45-movie1.png +0 -0
  95. data/templates/jqtouch/jqtouch/glyphish/icons/46-movie2.png +0 -0
  96. data/templates/jqtouch/jqtouch/glyphish/icons/47-fuel.png +0 -0
  97. data/templates/jqtouch/jqtouch/glyphish/icons/48-fork-and-knife.png +0 -0
  98. data/templates/jqtouch/jqtouch/glyphish/icons/49-battery.png +0 -0
  99. data/templates/jqtouch/jqtouch/glyphish/icons/50-beaker.png +0 -0
  100. data/templates/jqtouch/jqtouch/glyphish/icons/51-outlet.png +0 -0
  101. data/templates/jqtouch/jqtouch/glyphish/icons/52-pinetree.png +0 -0
  102. data/templates/jqtouch/jqtouch/glyphish/icons/53-house.png +0 -0
  103. data/templates/jqtouch/jqtouch/glyphish/icons/54-lock.png +0 -0
  104. data/templates/jqtouch/jqtouch/glyphish/icons/55-network.png +0 -0
  105. data/templates/jqtouch/jqtouch/glyphish/icons/56-cloud.png +0 -0
  106. data/templates/jqtouch/jqtouch/glyphish/icons/57-download.png +0 -0
  107. data/templates/jqtouch/jqtouch/glyphish/icons/58-bookmark.png +0 -0
  108. data/templates/jqtouch/jqtouch/glyphish/icons/59-flag.png +0 -0
  109. data/templates/jqtouch/jqtouch/glyphish/icons/60-signpost.png +0 -0
  110. data/templates/jqtouch/jqtouch/glyphish/icons/61-brightness.png +0 -0
  111. data/templates/jqtouch/jqtouch/glyphish/icons/62-contrast.png +0 -0
  112. data/templates/jqtouch/jqtouch/glyphish/icons/63-runner.png +0 -0
  113. data/templates/jqtouch/jqtouch/glyphish/icons/64-zap.png +0 -0
  114. data/templates/jqtouch/jqtouch/glyphish/icons/65-note.png +0 -0
  115. data/templates/jqtouch/jqtouch/glyphish/icons/66-microphone.png +0 -0
  116. data/templates/jqtouch/jqtouch/glyphish/icons/67-tshirt.png +0 -0
  117. data/templates/jqtouch/jqtouch/glyphish/icons/68-paperclip.png +0 -0
  118. data/templates/jqtouch/jqtouch/glyphish/icons/69-display.png +0 -0
  119. data/templates/jqtouch/jqtouch/glyphish/icons/70-tv.png +0 -0
  120. data/templates/jqtouch/jqtouch/glyphish/icons/71-compass.png +0 -0
  121. data/templates/jqtouch/jqtouch/glyphish/icons/72-pin.png +0 -0
  122. data/templates/jqtouch/jqtouch/glyphish/icons/73-radar.png +0 -0
  123. data/templates/jqtouch/jqtouch/glyphish/icons/74-location.png +0 -0
  124. data/templates/jqtouch/jqtouch/glyphish/icons/75-phone.png +0 -0
  125. data/templates/jqtouch/jqtouch/glyphish/icons/76-baby.png +0 -0
  126. data/templates/jqtouch/jqtouch/glyphish/icons/77-ekg.png +0 -0
  127. data/templates/jqtouch/jqtouch/glyphish/icons/78-stopwatch.png +0 -0
  128. data/templates/jqtouch/jqtouch/glyphish/icons/79-medical-bag.png +0 -0
  129. data/templates/jqtouch/jqtouch/glyphish/icons/80-shopping-cart.png +0 -0
  130. data/templates/jqtouch/jqtouch/glyphish/icons/81-dashboard.png +0 -0
  131. data/templates/jqtouch/jqtouch/glyphish/icons/82-dogpaw.png +0 -0
  132. data/templates/jqtouch/jqtouch/glyphish/icons/83-calendar.png +0 -0
  133. data/templates/jqtouch/jqtouch/glyphish/icons/84-lightbulb.png +0 -0
  134. data/templates/jqtouch/jqtouch/glyphish/icons/85-trophy.png +0 -0
  135. data/templates/jqtouch/jqtouch/glyphish/icons/86-camera.png +0 -0
  136. data/templates/jqtouch/jqtouch/glyphish/icons/87-wineglass.png +0 -0
  137. data/templates/jqtouch/jqtouch/glyphish/icons/88-beermug.png +0 -0
  138. data/templates/jqtouch/jqtouch/glyphish/icons/89-dumbbell.png +0 -0
  139. data/templates/jqtouch/jqtouch/glyphish/icons/90-lifebuoy.png +0 -0
  140. data/templates/jqtouch/jqtouch/glyphish/icons/91-beaker2.png +0 -0
  141. data/templates/jqtouch/jqtouch/glyphish/icons/92-testtube.png +0 -0
  142. data/templates/jqtouch/jqtouch/glyphish/icons/93-thermometer.png +0 -0
  143. data/templates/jqtouch/jqtouch/glyphish/icons/94-pill.png +0 -0
  144. data/templates/jqtouch/jqtouch/glyphish/icons/95-equalizer.png +0 -0
  145. data/templates/jqtouch/jqtouch/glyphish/icons/96-book.png +0 -0
  146. data/templates/jqtouch/jqtouch/glyphish/icons/97-puzzle.png +0 -0
  147. data/templates/jqtouch/jqtouch/glyphish/icons/98-palette.png +0 -0
  148. data/templates/jqtouch/jqtouch/glyphish/icons/99-umbrella.png +0 -0
  149. data/templates/jqtouch/jqtouch/glyphish/mini-icons/01-refresh.png +0 -0
  150. data/templates/jqtouch/jqtouch/glyphish/mini-icons/02-redo.png +0 -0
  151. data/templates/jqtouch/jqtouch/glyphish/mini-icons/03-loopback.png +0 -0
  152. data/templates/jqtouch/jqtouch/glyphish/mini-icons/04-squiggle.png +0 -0
  153. data/templates/jqtouch/jqtouch/glyphish/mini-icons/05-shuffle.png +0 -0
  154. data/templates/jqtouch/jqtouch/glyphish/mini-icons/06-magnifying-glass.png +0 -0
  155. data/templates/jqtouch/jqtouch/glyphish/mini-icons/07-map-marker.png +0 -0
  156. data/templates/jqtouch/jqtouch/glyphish/mini-icons/08-chat.png +0 -0
  157. data/templates/jqtouch/jqtouch/glyphish/mini-icons/09-chat2.png +0 -0
  158. data/templates/jqtouch/jqtouch/glyphish/mini-icons/10-medical.png +0 -0
  159. data/templates/jqtouch/jqtouch/glyphish/mini-icons/100-coffee.png +0 -0
  160. data/templates/jqtouch/jqtouch/glyphish/mini-icons/101-gameplan.png +0 -0
  161. data/templates/jqtouch/jqtouch/glyphish/mini-icons/102-walk.png +0 -0
  162. data/templates/jqtouch/jqtouch/glyphish/mini-icons/103-map.png +0 -0
  163. data/templates/jqtouch/jqtouch/glyphish/mini-icons/104-index-cards.png +0 -0
  164. data/templates/jqtouch/jqtouch/glyphish/mini-icons/105-piano.png +0 -0
  165. data/templates/jqtouch/jqtouch/glyphish/mini-icons/106-sliders.png +0 -0
  166. data/templates/jqtouch/jqtouch/glyphish/mini-icons/107-widescreen.png +0 -0
  167. data/templates/jqtouch/jqtouch/glyphish/mini-icons/108-badge.png +0 -0
  168. data/templates/jqtouch/jqtouch/glyphish/mini-icons/109-chicken.png +0 -0
  169. data/templates/jqtouch/jqtouch/glyphish/mini-icons/11-clock.png +0 -0
  170. data/templates/jqtouch/jqtouch/glyphish/mini-icons/110-bug.png +0 -0
  171. data/templates/jqtouch/jqtouch/glyphish/mini-icons/111-user.png +0 -0
  172. data/templates/jqtouch/jqtouch/glyphish/mini-icons/112-group.png +0 -0
  173. data/templates/jqtouch/jqtouch/glyphish/mini-icons/113-navigation.png +0 -0
  174. data/templates/jqtouch/jqtouch/glyphish/mini-icons/114-balloon.png +0 -0
  175. data/templates/jqtouch/jqtouch/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
  176. data/templates/jqtouch/jqtouch/glyphish/mini-icons/116-controller.png +0 -0
  177. data/templates/jqtouch/jqtouch/glyphish/mini-icons/117-todo.png +0 -0
  178. data/templates/jqtouch/jqtouch/glyphish/mini-icons/118-coathanger.png +0 -0
  179. data/templates/jqtouch/jqtouch/glyphish/mini-icons/119-piggybank.png +0 -0
  180. data/templates/jqtouch/jqtouch/glyphish/mini-icons/12-eye.png +0 -0
  181. data/templates/jqtouch/jqtouch/glyphish/mini-icons/120-headphones.png +0 -0
  182. data/templates/jqtouch/jqtouch/glyphish/mini-icons/121-lanscape.png +0 -0
  183. data/templates/jqtouch/jqtouch/glyphish/mini-icons/122-stats.png +0 -0
  184. data/templates/jqtouch/jqtouch/glyphish/mini-icons/123-id-card.png +0 -0
  185. data/templates/jqtouch/jqtouch/glyphish/mini-icons/124-bullhorn.png +0 -0
  186. data/templates/jqtouch/jqtouch/glyphish/mini-icons/125-food.png +0 -0
  187. data/templates/jqtouch/jqtouch/glyphish/mini-icons/126-moon.png +0 -0
  188. data/templates/jqtouch/jqtouch/glyphish/mini-icons/127-sock.png +0 -0
  189. data/templates/jqtouch/jqtouch/glyphish/mini-icons/128-bone.png +0 -0
  190. data/templates/jqtouch/jqtouch/glyphish/mini-icons/129-golf.png +0 -0
  191. data/templates/jqtouch/jqtouch/glyphish/mini-icons/13-target.png +0 -0
  192. data/templates/jqtouch/jqtouch/glyphish/mini-icons/130-dice.png +0 -0
  193. data/templates/jqtouch/jqtouch/glyphish/mini-icons/14-tag.png +0 -0
  194. data/templates/jqtouch/jqtouch/glyphish/mini-icons/15-tags.png +0 -0
  195. data/templates/jqtouch/jqtouch/glyphish/mini-icons/16-line-chart.png +0 -0
  196. data/templates/jqtouch/jqtouch/glyphish/mini-icons/17-bar-chart.png +0 -0
  197. data/templates/jqtouch/jqtouch/glyphish/mini-icons/18-envelope.png +0 -0
  198. data/templates/jqtouch/jqtouch/glyphish/mini-icons/19-gear.png +0 -0
  199. data/templates/jqtouch/jqtouch/glyphish/mini-icons/20-gear2.png +0 -0
  200. data/templates/jqtouch/jqtouch/glyphish/mini-icons/21-skull.png +0 -0
  201. data/templates/jqtouch/jqtouch/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
  202. data/templates/jqtouch/jqtouch/glyphish/mini-icons/23-bird.png +0 -0
  203. data/templates/jqtouch/jqtouch/glyphish/mini-icons/24-gift.png +0 -0
  204. data/templates/jqtouch/jqtouch/glyphish/mini-icons/25-weather.png +0 -0
  205. data/templates/jqtouch/jqtouch/glyphish/mini-icons/26-bandaid.png +0 -0
  206. data/templates/jqtouch/jqtouch/glyphish/mini-icons/27-planet.png +0 -0
  207. data/templates/jqtouch/jqtouch/glyphish/mini-icons/28-star.png +0 -0
  208. data/templates/jqtouch/jqtouch/glyphish/mini-icons/29-heart.png +0 -0
  209. data/templates/jqtouch/jqtouch/glyphish/mini-icons/30-key.png +0 -0
  210. data/templates/jqtouch/jqtouch/glyphish/mini-icons/31-ipod.png +0 -0
  211. data/templates/jqtouch/jqtouch/glyphish/mini-icons/32-iphone.png +0 -0
  212. data/templates/jqtouch/jqtouch/glyphish/mini-icons/33-cabinet.png +0 -0
  213. data/templates/jqtouch/jqtouch/glyphish/mini-icons/34-coffee.png +0 -0
  214. data/templates/jqtouch/jqtouch/glyphish/mini-icons/35-shopping-bag.png +0 -0
  215. data/templates/jqtouch/jqtouch/glyphish/mini-icons/36-toolbox.png +0 -0
  216. data/templates/jqtouch/jqtouch/glyphish/mini-icons/37-suitcase.png +0 -0
  217. data/templates/jqtouch/jqtouch/glyphish/mini-icons/38-airplane.png +0 -0
  218. data/templates/jqtouch/jqtouch/glyphish/mini-icons/39-spraycan.png +0 -0
  219. data/templates/jqtouch/jqtouch/glyphish/mini-icons/40-inbox.png +0 -0
  220. data/templates/jqtouch/jqtouch/glyphish/mini-icons/41-picture-frame.png +0 -0
  221. data/templates/jqtouch/jqtouch/glyphish/mini-icons/42-photos.png +0 -0
  222. data/templates/jqtouch/jqtouch/glyphish/mini-icons/43-film-roll.png +0 -0
  223. data/templates/jqtouch/jqtouch/glyphish/mini-icons/44-shoebox.png +0 -0
  224. data/templates/jqtouch/jqtouch/glyphish/mini-icons/45-movie1.png +0 -0
  225. data/templates/jqtouch/jqtouch/glyphish/mini-icons/46-movie2.png +0 -0
  226. data/templates/jqtouch/jqtouch/glyphish/mini-icons/47-fuel.png +0 -0
  227. data/templates/jqtouch/jqtouch/glyphish/mini-icons/48-fork-and-knife.png +0 -0
  228. data/templates/jqtouch/jqtouch/glyphish/mini-icons/49-battery.png +0 -0
  229. data/templates/jqtouch/jqtouch/glyphish/mini-icons/50-beaker.png +0 -0
  230. data/templates/jqtouch/jqtouch/glyphish/mini-icons/51-outlet.png +0 -0
  231. data/templates/jqtouch/jqtouch/glyphish/mini-icons/52-pinetree.png +0 -0
  232. data/templates/jqtouch/jqtouch/glyphish/mini-icons/53-house.png +0 -0
  233. data/templates/jqtouch/jqtouch/glyphish/mini-icons/54-lock.png +0 -0
  234. data/templates/jqtouch/jqtouch/glyphish/mini-icons/55-network.png +0 -0
  235. data/templates/jqtouch/jqtouch/glyphish/mini-icons/56-cloud.png +0 -0
  236. data/templates/jqtouch/jqtouch/glyphish/mini-icons/57-download.png +0 -0
  237. data/templates/jqtouch/jqtouch/glyphish/mini-icons/58-bookmark.png +0 -0
  238. data/templates/jqtouch/jqtouch/glyphish/mini-icons/59-flag.png +0 -0
  239. data/templates/jqtouch/jqtouch/glyphish/mini-icons/60-signpost.png +0 -0
  240. data/templates/jqtouch/jqtouch/glyphish/mini-icons/61-brightness.png +0 -0
  241. data/templates/jqtouch/jqtouch/glyphish/mini-icons/62-contrast.png +0 -0
  242. data/templates/jqtouch/jqtouch/glyphish/mini-icons/63-runner.png +0 -0
  243. data/templates/jqtouch/jqtouch/glyphish/mini-icons/64-zap.png +0 -0
  244. data/templates/jqtouch/jqtouch/glyphish/mini-icons/65-note.png +0 -0
  245. data/templates/jqtouch/jqtouch/glyphish/mini-icons/66-microphone.png +0 -0
  246. data/templates/jqtouch/jqtouch/glyphish/mini-icons/67-tshirt.png +0 -0
  247. data/templates/jqtouch/jqtouch/glyphish/mini-icons/68-paperclip.png +0 -0
  248. data/templates/jqtouch/jqtouch/glyphish/mini-icons/69-display.png +0 -0
  249. data/templates/jqtouch/jqtouch/glyphish/mini-icons/70-tv.png +0 -0
  250. data/templates/jqtouch/jqtouch/glyphish/mini-icons/71-compass.png +0 -0
  251. data/templates/jqtouch/jqtouch/glyphish/mini-icons/72-pin.png +0 -0
  252. data/templates/jqtouch/jqtouch/glyphish/mini-icons/73-radar.png +0 -0
  253. data/templates/jqtouch/jqtouch/glyphish/mini-icons/74-location.png +0 -0
  254. data/templates/jqtouch/jqtouch/glyphish/mini-icons/75-phone.png +0 -0
  255. data/templates/jqtouch/jqtouch/glyphish/mini-icons/76-baby.png +0 -0
  256. data/templates/jqtouch/jqtouch/glyphish/mini-icons/77-ekg.png +0 -0
  257. data/templates/jqtouch/jqtouch/glyphish/mini-icons/78-stopwatch.png +0 -0
  258. data/templates/jqtouch/jqtouch/glyphish/mini-icons/79-medical-bag.png +0 -0
  259. data/templates/jqtouch/jqtouch/glyphish/mini-icons/80-shopping-cart.png +0 -0
  260. data/templates/jqtouch/jqtouch/glyphish/mini-icons/81-dashboard.png +0 -0
  261. data/templates/jqtouch/jqtouch/glyphish/mini-icons/82-dogpaw.png +0 -0
  262. data/templates/jqtouch/jqtouch/glyphish/mini-icons/83-calendar.png +0 -0
  263. data/templates/jqtouch/jqtouch/glyphish/mini-icons/84-lightbulb.png +0 -0
  264. data/templates/jqtouch/jqtouch/glyphish/mini-icons/85-trophy.png +0 -0
  265. data/templates/jqtouch/jqtouch/glyphish/mini-icons/86-camera.png +0 -0
  266. data/templates/jqtouch/jqtouch/glyphish/mini-icons/87-wineglass.png +0 -0
  267. data/templates/jqtouch/jqtouch/glyphish/mini-icons/88-beermug.png +0 -0
  268. data/templates/jqtouch/jqtouch/glyphish/mini-icons/89-dumbbell.png +0 -0
  269. data/templates/jqtouch/jqtouch/glyphish/mini-icons/90-lifebuoy.png +0 -0
  270. data/templates/jqtouch/jqtouch/glyphish/mini-icons/91-beaker2.png +0 -0
  271. data/templates/jqtouch/jqtouch/glyphish/mini-icons/92-testtube.png +0 -0
  272. data/templates/jqtouch/jqtouch/glyphish/mini-icons/93-thermometer.png +0 -0
  273. data/templates/jqtouch/jqtouch/glyphish/mini-icons/94-pill.png +0 -0
  274. data/templates/jqtouch/jqtouch/glyphish/mini-icons/95-equalizer.png +0 -0
  275. data/templates/jqtouch/jqtouch/glyphish/mini-icons/96-book.png +0 -0
  276. data/templates/jqtouch/jqtouch/glyphish/mini-icons/97-puzzle.png +0 -0
  277. data/templates/jqtouch/jqtouch/glyphish/mini-icons/98-palette.png +0 -0
  278. data/templates/jqtouch/jqtouch/glyphish/mini-icons/99-umbrella.png +0 -0
  279. data/templates/jqtouch/jqtouch/ical/bottom_bar.png +0 -0
  280. data/templates/jqtouch/jqtouch/ical/calpad.jpg +0 -0
  281. data/templates/jqtouch/jqtouch/ical/cells.png +0 -0
  282. data/templates/jqtouch/jqtouch/ical/footer.png +0 -0
  283. data/templates/jqtouch/jqtouch/ical/header.png +0 -0
  284. data/templates/jqtouch/jqtouch/ical/header_left.png +0 -0
  285. data/templates/jqtouch/jqtouch/ical/header_right.png +0 -0
  286. data/templates/jqtouch/jqtouch/ical/jqt_startup.png +0 -0
  287. data/templates/jqtouch/jqtouch/ical/jqtouch-ical.png +0 -0
  288. data/templates/jqtouch/jqtouch/iphone-emulator.scss +1 -1
  289. data/templates/jqtouch/jqtouch/jqt.apple.scss +30 -30
  290. data/templates/jqtouch/jqtouch/jqt.jqt.scss +40 -40
  291. data/templates/jqtouch/jqtouch/jqtouch.scss +533 -168
  292. data/templates/jqtouch/jqtouch/sw/alpha.png +0 -0
  293. data/templates/jqtouch/jqtouch/sw/button-cancel.png +0 -0
  294. data/templates/jqtouch/jqtouch/sw/button-done.png +0 -0
  295. data/templates/jqtouch/jqtouch/sw/header.png +0 -0
  296. data/templates/jqtouch/jqtouch/sw/slot-border.png +0 -0
  297. data/templates/jqtouch/jquery.jqtouch.js +2049 -25
  298. data/templates/jqtouch/jquery.jqtouch.min.js +1 -26
  299. data/templates/jqtouch/manifest.rb +276 -1
  300. data/templates/jrails-1.3/config/initializers/jrails.rb +2 -2
  301. data/templates/jrails-1.3/{jquery-ui-1.7.2.js → jquery-ui-1.7.3.js} +4730 -4716
  302. data/templates/jrails-1.3/jquery-ui-1.7.3.min.js +690 -0
  303. data/templates/jrails-1.3/jquery.ui/_theme.scss +36 -36
  304. data/templates/jrails-1.3/jquery.ui/contextMenu.scss +7 -7
  305. data/templates/jrails-1.3/manifest.rb +2 -2
  306. data/templates/jrails-1.4/config/initializers/jrails.rb +2 -2
  307. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-fr-CH.js +6 -6
  308. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-fr-CH.min.js +1 -1
  309. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-pl.js +1 -1
  310. data/templates/jrails-1.4/i18n/jquery.ui/datepicker-pl.min.js +1 -1
  311. data/templates/jrails-1.4/{jquery-ui-1.8.js → jquery-ui-1.8.1.js} +6729 -6597
  312. data/templates/jrails-1.4/{jquery-ui-1.8.min.js → jquery-ui-1.8.1.min.js} +304 -305
  313. data/templates/jrails-1.4/jquery.ui/_theme.scss +45 -45
  314. data/templates/jrails-1.4/jquery.ui/contextMenu.scss +7 -7
  315. data/templates/jrails-1.4/manifest.rb +2 -2
  316. data/templates/ribbon/jquery.ui/ribbon.office/arrow.png +0 -0
  317. data/templates/ribbon/jquery.ui/ribbon.office/arrow_down.png +0 -0
  318. data/templates/ribbon/jquery.ui/ribbon.office/bg.png +0 -0
  319. data/templates/ribbon/jquery.ui/ribbon.office/item_background.png +0 -0
  320. data/templates/ribbon/jquery.ui/ribbon.office/item_small_background.png +0 -0
  321. data/templates/ribbon/jquery.ui/ribbon.office/menu_background.png +0 -0
  322. data/templates/ribbon/jquery.ui/ribbon.office/menu_bottom.png +0 -0
  323. data/templates/ribbon/jquery.ui/ribbon.office/menu_dropdownitembg.png +0 -0
  324. data/templates/ribbon/jquery.ui/ribbon.office/menu_dropdownitembghover.png +0 -0
  325. data/templates/ribbon/jquery.ui/ribbon.office/menu_item_hover.png +0 -0
  326. data/templates/ribbon/jquery.ui/ribbon.office/menu_middle.png +0 -0
  327. data/templates/ribbon/jquery.ui/ribbon.office/menu_top.png +0 -0
  328. data/templates/ribbon/jquery.ui/ribbon.office/menu_top_backstage.png +0 -0
  329. data/templates/ribbon/jquery.ui/ribbon.office/menu_top_backstage2.png +0 -0
  330. data/templates/ribbon/jquery.ui/ribbon.office/menuitem_background.png +0 -0
  331. data/templates/ribbon/jquery.ui/ribbon.office/orb.png +0 -0
  332. data/templates/ribbon/jquery.ui/ribbon.office/orb_hover.png +0 -0
  333. data/templates/ribbon/jquery.ui/ribbon.office/orb_office.png +0 -0
  334. data/templates/ribbon/jquery.ui/ribbon.office/orb_office_hover.png +0 -0
  335. data/templates/ribbon/jquery.ui/ribbon.office/orb_submenu_item_hover.png +0 -0
  336. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-firstLevel-hover.png +0 -0
  337. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-rightColumn-wide.png +0 -0
  338. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-item-hover.png +0 -0
  339. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-item.png +0 -0
  340. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-itemSquare-hover.png +0 -0
  341. data/templates/ribbon/jquery.ui/ribbon.office/ribbon-backstage-subMenu-itemSquare.png +0 -0
  342. data/templates/ribbon/jquery.ui/ribbon.office/top_background.png +0 -0
  343. data/templates/ribbon/jquery.ui/ribbon.office.scss +444 -0
  344. data/templates/ribbon/jquery.ui/ribbon.simple.scss +17 -9
  345. data/templates/ribbon/jquery.ui/ribbon.windows7.scss +27 -37
  346. data/templates/ribbon/manifest.rb +28 -0
  347. metadata +310 -7
  348. data/templates/jrails-1.3/jquery-ui-1.7.2.min.js +0 -688
@@ -4,8 +4,8 @@
4
4
  * Copyright (c) 2008, Tony Tomov, tony@trirand.com
5
5
  * Dual licensed under the MIT and GPL licenses
6
6
  * http://www.opensource.org/licenses/mit-license.php
7
- * http://www.gnu.org/licenses/gpl.html
8
- * Date: 2010-02-14
7
+ * http://www.gnu.org/licenses/gpl-2.0.html
8
+ * Date: 2010-02-14
9
9
  */
10
10
  $.jgrid = $.jgrid || {};
11
11
  $.extend($.jgrid,{
@@ -34,7 +34,7 @@ $.extend($.jgrid,{
34
34
  var regexp = /<("[^"]*"|'[^']*'|[^'">])*>/gi;
35
35
  if (v) {
36
36
  v = v.replace(regexp,"");
37
- return (v && v !== '&nbsp;' && v !== '&#160;') ? v : "";
37
+ return (v && v !== '&nbsp;' && v !== '&#160;') ? v.replace(/\"/g,"'") : "";
38
38
  } else {
39
39
  return v;
40
40
  }
@@ -811,13 +811,12 @@ $.fn.jqGrid = function( pin ) {
811
811
  type:ts.p.mtype,
812
812
  dataType: dt ,
813
813
  data: $.isFunction(ts.p.serializeGridData)? ts.p.serializeGridData.call(ts,ts.p.postData) : ts.p.postData,
814
- complete:function(req,st) {
815
- if(st=="success" || (req.statusText == "OK" && req.status == "200")) {
816
- if(dt === "xml") { addXmlData(req.responseXML,ts.grid.bDiv,rcnt,npage>1,adjust); }
817
- else { addJSONData($.jgrid.parse(req.responseText),ts.grid.bDiv,rcnt,npage>1,adjust); }
818
- if(lc) { lc.call(ts,req); }
819
- if (pvis) { ts.grid.populateVisible(); }
820
- }
814
+ success:function(req,st) {
815
+ if(dt === "xml") { addXmlData(req,ts.grid.bDiv,rcnt,npage>1,adjust); }
816
+ else { addJSONData(req,ts.grid.bDiv,rcnt,npage>1,adjust); }
817
+ if(lc) { lc.call(ts,req); }
818
+ if (pvis) { ts.grid.populateVisible(); }
819
+ if( ts.p.loadonce || ts.p.treeGrid) {ts.p.datatype = "local";}
821
820
  req=null;
822
821
  endReq();
823
822
  },
@@ -831,7 +830,6 @@ $.fn.jqGrid = function( pin ) {
831
830
  if($.isFunction(ts.p.loadBeforeSend)) { ts.p.loadBeforeSend.call(ts,xhr); }
832
831
  }
833
832
  },$.jgrid.ajaxOptions, ts.p.ajaxGridOptions));
834
- if( ts.p.loadonce || ts.p.treeGrid) {ts.p.datatype = "local";}
835
833
  break;
836
834
  case "xmlstring":
837
835
  beginReq();
@@ -918,6 +916,8 @@ $.fn.jqGrid = function( pin ) {
918
916
  var fd = ts.p.colModel[col].datefmt || "Y-m-d";
919
917
  return parseDate(fd,$cell).getTime();
920
918
  };
919
+ } else if($.isFunction(st)) {
920
+ findSortKey = st;
921
921
  } else {
922
922
  findSortKey = function($cell) {
923
923
  return $.trim($cell.toUpperCase());
@@ -927,7 +927,7 @@ $.fn.jqGrid = function( pin ) {
927
927
  $.each(ts.rows, function(index, row) {
928
928
  try { sv = $.unformat($(row).children('td').eq(col),{rowId:row.id, colModel:cm},col,true);}
929
929
  catch (_) { sv = $(row).children('td').eq(col).text(); }
930
- row.sortKey = cm.custom_sort === undefined ? findSortKey(sv) : cm.custom_sort.call(ts,sv);
930
+ row.sortKey = findSortKey(sv);
931
931
  rows[index] = this;
932
932
  });
933
933
  if(ts.p.treeGrid) {
@@ -1128,7 +1128,7 @@ $.fn.jqGrid = function( pin ) {
1128
1128
  if( ts.p.sortorder == 'asc') {
1129
1129
  ts.p.sortorder = 'desc';
1130
1130
  } else if(ts.p.sortorder == 'desc') { ts.p.sortorder = 'asc';}
1131
- } else { ts.p.sortorder = 'asc';}
1131
+ } else { ts.p.sortorder = ts.p.colModel[idxcol].firstsortorder || 'asc'; }
1132
1132
  ts.p.page = 1;
1133
1133
  }
1134
1134
  if(sor) {
@@ -1328,8 +1328,7 @@ $.fn.jqGrid = function( pin ) {
1328
1328
  $(this).append(thead);
1329
1329
  $("thead tr:first th",this).hover(function(){$(this).addClass('ui-state-hover');},function(){$(this).removeClass('ui-state-hover');});
1330
1330
  if(this.p.multiselect) {
1331
- var onSA = true, emp=[], chk;
1332
- if(typeof ts.p.onSelectAll !== 'function') {onSA=false;}
1331
+ var emp=[], chk;
1333
1332
  $('#cb_'+$.jgrid.jqID(ts.p.id),this).bind('click',function(){
1334
1333
  if (this.checked) {
1335
1334
  $("[id^=jqg_]",ts.rows).attr("checked",true);
@@ -1353,7 +1352,7 @@ $.fn.jqGrid = function( pin ) {
1353
1352
  ts.p.selarrrow = []; ts.p.selrow = null;
1354
1353
  chk=false;
1355
1354
  }
1356
- if(onSA) {ts.p.onSelectAll.call(ts, chk ? ts.p.selarrrow : emp,chk);}
1355
+ if($.isFunction(ts.p.onSelectAll)) {ts.p.onSelectAll.call(ts, chk ? ts.p.selarrrow : emp,chk);}
1357
1356
  });
1358
1357
  }
1359
1358
 
@@ -2370,7 +2369,7 @@ $.jgrid.extend({
2370
2369
  * http://trirand.com/blog/
2371
2370
  * Dual licensed under the MIT and GPL licenses:
2372
2371
  * http://www.opensource.org/licenses/mit-license.php
2373
- * http://www.gnu.org/licenses/gpl.html
2372
+ * http://www.gnu.org/licenses/gpl-2.0.html
2374
2373
  **/
2375
2374
  /**
2376
2375
  * all events and options here are aded anonynous and not in the base grid
@@ -2853,7 +2852,7 @@ $.jgrid.extend({
2853
2852
  * http://trirand.com/blog/
2854
2853
  * Dual licensed under the MIT and GPL licenses:
2855
2854
  * http://www.opensource.org/licenses/mit-license.php
2856
- * http://www.gnu.org/licenses/gpl.html
2855
+ * http://www.gnu.org/licenses/gpl-2.0.html
2857
2856
  */
2858
2857
  // Modal functions
2859
2858
  var showModal = function(h) {
@@ -3485,7 +3484,7 @@ function checkValues(val, valref,g) {
3485
3484
  * http://trirand.com/blog/
3486
3485
  * Dual licensed under the MIT and GPL licenses:
3487
3486
  * http://www.opensource.org/licenses/mit-license.php
3488
- * http://www.gnu.org/licenses/gpl.html
3487
+ * http://www.gnu.org/licenses/gpl-2.0.html
3489
3488
  **/
3490
3489
  $.jgrid.extend({
3491
3490
  getColProp : function(colname){
@@ -4302,7 +4301,7 @@ $.jgrid.extend({
4302
4301
  * http://trirand.com/blog/
4303
4302
  * Dual licensed under the MIT and GPL licenses:
4304
4303
  * http://www.opensource.org/licenses/mit-license.php
4305
- * http://www.gnu.org/licenses/gpl.html
4304
+ * http://www.gnu.org/licenses/gpl-2.0.html
4306
4305
  **/
4307
4306
  var rp_ge = null;
4308
4307
  $.jgrid.extend({
@@ -4314,7 +4313,7 @@ $.jgrid.extend({
4314
4313
  sValue:'searchString',
4315
4314
  sOper: 'searchOper',
4316
4315
  sFilter: 'filters',
4317
- loadDefaults: false, // this options activates loading of default filters from grid's postData for Multipe Search only.
4316
+ loadDefaults: true, // this options activates loading of default filters from grid's postData for Multipe Search only.
4318
4317
  beforeShowSearch: null,
4319
4318
  afterShowSearch : null,
4320
4319
  onInitializeSearch: null,
@@ -4379,16 +4378,19 @@ $.jgrid.extend({
4379
4378
  gridDOMobj.SearchFilter.setGroupOp(defaultFilters.groupOp);
4380
4379
  }
4381
4380
  if (defaultFilters.rules) {
4382
- var f;
4383
- for (var i = 0, li = defaultFilters.rules.length; i < li; i++) {
4381
+ var f
4382
+ , i = 0
4383
+ , li = defaultFilters.rules.length
4384
+ , success = false;
4385
+ for (; i < li; i++) {
4384
4386
  f = defaultFilters.rules[i];
4385
4387
  // we are not trying to counter all issues with filter declaration here. Just the basics to avoid lookup exceptions.
4386
4388
  if (f.field !== undefined && f.op !== undefined && f.data !== undefined) {
4387
- gridDOMobj.SearchFilter.setFilter({
4389
+ success = gridDOMobj.SearchFilter.setFilter({
4388
4390
  'sfref':gridDOMobj.SearchFilter.$.find(".sf:last"),
4389
4391
  'filter':$.extend({},f)
4390
4392
  });
4391
- gridDOMobj.SearchFilter.add();
4393
+ if (success) { gridDOMobj.SearchFilter.add(); }
4392
4394
  }
4393
4395
  }
4394
4396
  }
@@ -4407,10 +4409,8 @@ $.jgrid.extend({
4407
4409
  colNames = $("#"+$t.p.id).jqGrid("getGridParam","colNames"),
4408
4410
  colModel = $("#"+$t.p.id).jqGrid("getGridParam","colModel"),
4409
4411
  stempl = ['eq','ne','lt','le','gt','ge','bw','bn','in','ni','ew','en','cn','nc'],
4410
- j,pos,k,oprtr;
4411
- oprtr = jQuery.fn.searchFilter.defaults.operators;
4412
+ j,pos,k,oprtr=[];
4412
4413
  if (p.sopt !==null) {
4413
- oprtr = [];
4414
4414
  k=0;
4415
4415
  for(j=0;j<p.sopt.length;j++) {
4416
4416
  if( (pos= $.inArray(p.sopt[j],stempl)) != -1 ){
@@ -4418,6 +4418,10 @@ $.jgrid.extend({
4418
4418
  k++;
4419
4419
  }
4420
4420
  }
4421
+ } else {
4422
+ for(j=0;j<stempl.length;j++) {
4423
+ oprtr[j] = {op:stempl[j],text: p.odata[j]};
4424
+ }
4421
4425
  }
4422
4426
  var searchable;
4423
4427
  $.each(colModel, function(i, v) {
@@ -4425,14 +4429,15 @@ $.jgrid.extend({
4425
4429
  hidden = (v.hidden === true),
4426
4430
  soptions = $.extend({}, {text: colNames[i], itemval: v.index || v.name}, this.searchoptions),
4427
4431
  ignoreHiding = (soptions.searchhidden === true);
4428
- if(typeof soptions.sopt == 'undefined') { soptions.sopt = p.sopt || stempl; }
4429
- k=0;
4430
- soptions.ops =[];
4431
- if(soptions.sopt.length>0) {
4432
- for(j=0;j<soptions.sopt.length;j++) {
4433
- if( (pos= $.inArray(soptions.sopt[j],stempl)) != -1 ){
4434
- soptions.ops[k] = {op:soptions.sopt[j],text: p.odata[pos]};
4435
- k++;
4432
+ if(typeof soptions.sopt !== 'undefined') {
4433
+ k=0;
4434
+ soptions.ops =[];
4435
+ if(soptions.sopt.length>0) {
4436
+ for(j=0;j<soptions.sopt.length;j++) {
4437
+ if( (pos= $.inArray(soptions.sopt[j],stempl)) != -1 ){
4438
+ soptions.ops[k] = {op:soptions.sopt[j],text: p.odata[pos]};
4439
+ k++;
4440
+ }
4436
4441
  }
4437
4442
  }
4438
4443
  }
@@ -5871,13 +5876,20 @@ $.jgrid.extend({
5871
5876
  $(tbd,navtbl)
5872
5877
  .attr({"title":o.addtitle || "",id : pAdd.id || "add_"+elemids})
5873
5878
  .click(function(){
5874
- if (typeof o.addfunc == 'function') {
5875
- o.addfunc();
5876
- } else {
5877
- $($t).jqGrid("editGridRow","new",pAdd);
5879
+ if (!$(this).hasClass('ui-state-disabled')) {
5880
+ if (typeof o.addfunc == 'function') {
5881
+ o.addfunc();
5882
+ } else {
5883
+ $($t).jqGrid("editGridRow","new",pAdd);
5884
+ }
5878
5885
  }
5879
5886
  return false;
5880
- }).hover(function () {$(this).addClass("ui-state-hover");},
5887
+ }).hover(
5888
+ function () {
5889
+ if (!$(this).hasClass('ui-state-disabled')) {
5890
+ $(this).addClass("ui-state-hover");
5891
+ }
5892
+ },
5881
5893
  function () {$(this).removeClass("ui-state-hover");}
5882
5894
  );
5883
5895
  tbd = null;
@@ -5890,19 +5902,26 @@ $.jgrid.extend({
5890
5902
  $(tbd,navtbl)
5891
5903
  .attr({"title":o.edittitle || "",id: pEdit.id || "edit_"+elemids})
5892
5904
  .click(function(){
5893
- var sr = $t.p.selrow;
5894
- if (sr) {
5895
- if(typeof o.editfunc == 'function') {
5896
- o.editfunc(sr);
5905
+ if (!$(this).hasClass('ui-state-disabled')) {
5906
+ var sr = $t.p.selrow;
5907
+ if (sr) {
5908
+ if(typeof o.editfunc == 'function') {
5909
+ o.editfunc(sr);
5910
+ } else {
5911
+ $($t).jqGrid("editGridRow",sr,pEdit);
5912
+ }
5897
5913
  } else {
5898
- $($t).jqGrid("editGridRow",sr,pEdit);
5914
+ viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
5915
+ $("#jqg_alrt").focus();
5899
5916
  }
5900
- } else {
5901
- viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
5902
- $("#jqg_alrt").focus();
5903
5917
  }
5904
5918
  return false;
5905
- }).hover( function () {$(this).addClass("ui-state-hover");},
5919
+ }).hover(
5920
+ function () {
5921
+ if (!$(this).hasClass('ui-state-disabled')) {
5922
+ $(this).addClass("ui-state-hover");
5923
+ }
5924
+ },
5906
5925
  function () {$(this).removeClass("ui-state-hover");}
5907
5926
  );
5908
5927
  tbd = null;
@@ -5915,15 +5934,22 @@ $.jgrid.extend({
5915
5934
  $(tbd,navtbl)
5916
5935
  .attr({"title":o.viewtitle || "",id: pView.id || "view_"+elemids})
5917
5936
  .click(function(){
5918
- var sr = $t.p.selrow;
5919
- if (sr) {
5920
- $($t).jqGrid("viewGridRow",sr,pView);
5921
- } else {
5922
- viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
5923
- $("#jqg_alrt").focus();
5937
+ if (!$(this).hasClass('ui-state-disabled')) {
5938
+ var sr = $t.p.selrow;
5939
+ if (sr) {
5940
+ $($t).jqGrid("viewGridRow",sr,pView);
5941
+ } else {
5942
+ viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true});
5943
+ $("#jqg_alrt").focus();
5944
+ }
5924
5945
  }
5925
5946
  return false;
5926
- }).hover( function () {$(this).addClass("ui-state-hover");},
5947
+ }).hover(
5948
+ function () {
5949
+ if (!$(this).hasClass('ui-state-disabled')) {
5950
+ $(this).addClass("ui-state-hover");
5951
+ }
5952
+ },
5927
5953
  function () {$(this).removeClass("ui-state-hover");}
5928
5954
  );
5929
5955
  tbd = null;
@@ -5936,24 +5962,31 @@ $.jgrid.extend({
5936
5962
  $(tbd,navtbl)
5937
5963
  .attr({"title":o.deltitle || "",id: pDel.id || "del_"+elemids})
5938
5964
  .click(function(){
5939
- var dr;
5940
- if($t.p.multiselect) {
5941
- dr = $t.p.selarrrow;
5942
- if(dr.length===0) { dr = null; }
5943
- } else {
5944
- dr = $t.p.selrow;
5945
- }
5946
- if(dr){
5947
- if("function" == typeof o.delfunc){
5948
- o.delfunc(dr);
5949
- }else{
5950
- $($t).jqGrid("delGridRow",dr,pDel);
5965
+ if (!$(this).hasClass('ui-state-disabled')) {
5966
+ var dr;
5967
+ if($t.p.multiselect) {
5968
+ dr = $t.p.selarrrow;
5969
+ if(dr.length===0) { dr = null; }
5970
+ } else {
5971
+ dr = $t.p.selrow;
5972
+ }
5973
+ if(dr){
5974
+ if("function" == typeof o.delfunc){
5975
+ o.delfunc(dr);
5976
+ }else{
5977
+ $($t).jqGrid("delGridRow",dr,pDel);
5978
+ }
5979
+ } else {
5980
+ viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true}); $("#jqg_alrt").focus();
5951
5981
  }
5952
- } else {
5953
- viewModal("#"+alertIDs.themodal,{gbox:"#gbox_"+$t.p.id,jqm:true}); $("#jqg_alrt").focus();
5954
5982
  }
5955
5983
  return false;
5956
- }).hover(function () {$(this).addClass("ui-state-hover");},
5984
+ }).hover(
5985
+ function () {
5986
+ if (!$(this).hasClass('ui-state-disabled')) {
5987
+ $(this).addClass("ui-state-hover");
5988
+ }
5989
+ },
5957
5990
  function () {$(this).removeClass("ui-state-hover");}
5958
5991
  );
5959
5992
  tbd = null;
@@ -5967,9 +6000,16 @@ $.jgrid.extend({
5967
6000
  $(tbd,navtbl)
5968
6001
  .attr({"title":o.searchtitle || "",id:pSearch.id || "search_"+elemids})
5969
6002
  .click(function(){
5970
- $($t).jqGrid("searchGrid",pSearch);
6003
+ if (!$(this).hasClass('ui-state-disabled')) {
6004
+ $($t).jqGrid("searchGrid",pSearch);
6005
+ }
5971
6006
  return false;
5972
- }).hover(function () {$(this).addClass("ui-state-hover");},
6007
+ }).hover(
6008
+ function () {
6009
+ if (!$(this).hasClass('ui-state-disabled')) {
6010
+ $(this).addClass("ui-state-hover");
6011
+ }
6012
+ },
5973
6013
  function () {$(this).removeClass("ui-state-hover");}
5974
6014
  );
5975
6015
  tbd = null;
@@ -5981,24 +6021,31 @@ $.jgrid.extend({
5981
6021
  $(tbd,navtbl)
5982
6022
  .attr({"title":o.refreshtitle || "",id: "refresh_"+elemids})
5983
6023
  .click(function(){
5984
- if($.isFunction(o.beforeRefresh)) { o.beforeRefresh(); }
5985
- $t.p.search = false;
5986
- try {
5987
- var gID = $t.p.id;
5988
- $("#fbox_"+gID).searchFilter().reset();
5989
- if($.isFunction($t.clearToolbar)) { $t.clearToolbar(false); }
5990
- } catch (e) {}
5991
- switch (o.refreshstate) {
5992
- case 'firstpage':
5993
- $($t).trigger("reloadGrid", [{page:1}]);
5994
- break;
5995
- case 'current':
5996
- $($t).trigger("reloadGrid", [{current:true}]);
5997
- break;
6024
+ if (!$(this).hasClass('ui-state-disabled')) {
6025
+ if($.isFunction(o.beforeRefresh)) { o.beforeRefresh(); }
6026
+ $t.p.search = false;
6027
+ try {
6028
+ var gID = $t.p.id;
6029
+ $("#fbox_"+gID).searchFilter().reset();
6030
+ if($.isFunction($t.clearToolbar)) { $t.clearToolbar(false); }
6031
+ } catch (e) {}
6032
+ switch (o.refreshstate) {
6033
+ case 'firstpage':
6034
+ $($t).trigger("reloadGrid", [{page:1}]);
6035
+ break;
6036
+ case 'current':
6037
+ $($t).trigger("reloadGrid", [{current:true}]);
6038
+ break;
6039
+ }
6040
+ if($.isFunction(o.afterRefresh)) { o.afterRefresh(); }
5998
6041
  }
5999
- if($.isFunction(o.afterRefresh)) { o.afterRefresh(); }
6000
6042
  return false;
6001
- }).hover(function () {$(this).addClass("ui-state-hover");},
6043
+ }).hover(
6044
+ function () {
6045
+ if (!$(this).hasClass('ui-state-disabled')) {
6046
+ $(this).addClass("ui-state-hover");
6047
+ }
6048
+ },
6002
6049
  function () {$(this).removeClass("ui-state-hover");}
6003
6050
  );
6004
6051
  tbd = null;
@@ -6052,14 +6099,19 @@ $.jgrid.extend({
6052
6099
  $(tbd,findnav)
6053
6100
  .attr("title",p.title || "")
6054
6101
  .click(function(e){
6055
- if ($.isFunction(p.onClickButton) ) { p.onClickButton.call($t,e); }
6102
+ if (!$(this).hasClass('ui-state-disabled')) {
6103
+ if ($.isFunction(p.onClickButton) ) { p.onClickButton.call($t,e); }
6104
+ }
6056
6105
  return false;
6057
6106
  })
6058
6107
  .hover(
6059
- function () {$(this).addClass("ui-state-hover");},
6108
+ function () {
6109
+ if (!$(this).hasClass('ui-state-disabled')) {
6110
+ $(this).addClass('ui-state-hover');
6111
+ }
6112
+ },
6060
6113
  function () {$(this).removeClass("ui-state-hover");}
6061
- )
6062
- .css("cursor",p.cursor ? p.cursor : "normal");
6114
+ );
6063
6115
  }
6064
6116
  });
6065
6117
  },
@@ -6127,7 +6179,7 @@ $.jgrid.extend({
6127
6179
  * http://trirand.com/blog/
6128
6180
  * Dual licensed under the MIT and GPL licenses:
6129
6181
  * http://www.opensource.org/licenses/mit-license.php
6130
- * http://www.gnu.org/licenses/gpl.html
6182
+ * http://www.gnu.org/licenses/gpl-2.0.html
6131
6183
  **/
6132
6184
  $.jgrid.extend({
6133
6185
  jqGridImport : function(o) {
@@ -6327,7 +6379,7 @@ $.jgrid.extend({
6327
6379
  * http://trirand.com/blog/
6328
6380
  * Dual licensed under the MIT and GPL licenses:
6329
6381
  * http://www.opensource.org/licenses/mit-license.php
6330
- * http://www.gnu.org/licenses/gpl.html
6382
+ * http://www.gnu.org/licenses/gpl-2.0.html
6331
6383
  **/
6332
6384
  $.jgrid.extend({
6333
6385
  //Editing
@@ -6585,8 +6637,8 @@ $.jgrid.extend({
6585
6637
  * Author: Mark Williams
6586
6638
  * Dual licensed under the MIT and GPL licenses:
6587
6639
  * http://www.opensource.org/licenses/mit-license.php
6588
- * http://www.gnu.org/licenses/gpl.html
6589
- * depends on jQuery UI sortable
6640
+ * http://www.gnu.org/licenses/gpl-2.0.html
6641
+ * depends on jQuery UI
6590
6642
  **/
6591
6643
  if ($.browser.msie && $.browser.version==8) {
6592
6644
  $.expr[":"].hidden = function(elem) {
@@ -6595,6 +6647,7 @@ if ($.browser.msie && $.browser.version==8) {
6595
6647
  };
6596
6648
  }
6597
6649
  // requiere load multiselect before grid
6650
+ $.jgrid._multiselect = false;
6598
6651
  if($.ui) {
6599
6652
  if ($.ui.multiselect ) {
6600
6653
  if($.ui.multiselect.prototype._setSelected) {
@@ -6623,6 +6676,7 @@ if($.ui) {
6623
6676
  }
6624
6677
  };
6625
6678
  }
6679
+ $.jgrid._multiselect = true;
6626
6680
  }
6627
6681
  }
6628
6682
 
@@ -6777,6 +6831,11 @@ $.jgrid.extend({
6777
6831
  },
6778
6832
  "msel_opts" : {}
6779
6833
  }, $.jgrid.col, opts || {});
6834
+ if(opts.msel == "multiselect" && !$.jgrid._multiselect) {
6835
+ // should be in language file
6836
+ alert("Multiselect plugin not loaded or loaded after jqGrid. Please load the plugin before the jqGrid!");
6837
+ return;
6838
+ }
6780
6839
  if($.ui) {
6781
6840
  if ($.ui.multiselect ) {
6782
6841
  opts.msel_opts = $.extend($.ui.multiselect.defaults,opts.msel_opts);
@@ -7081,7 +7140,7 @@ $.jgrid.extend({
7081
7140
  *
7082
7141
  * Dual licensed under the MIT and GPL licenses:
7083
7142
  * http://www.opensource.org/licenses/mit-license.php
7084
- * http://www.gnu.org/licenses/gpl.html
7143
+ * http://www.gnu.org/licenses/gpl-2.0.html
7085
7144
  **/
7086
7145
  $.jgrid.extend({
7087
7146
  getPostData : function(){
@@ -7146,7 +7205,7 @@ $.jgrid.extend({
7146
7205
  * http://www.roznicki.prv.pl
7147
7206
  * Dual licensed under the MIT and GPL licenses:
7148
7207
  * http://www.opensource.org/licenses/mit-license.php
7149
- * http://www.gnu.org/licenses/gpl.html
7208
+ * http://www.gnu.org/licenses/gpl-2.0.html
7150
7209
  **/
7151
7210
  $.jgrid.extend({
7152
7211
  setColumns : function(p) {
@@ -7273,7 +7332,7 @@ $.jgrid.extend({
7273
7332
  * http://trirand.com/blog/
7274
7333
  * Dual licensed under the MIT and GPL licenses:
7275
7334
  * http://www.opensource.org/licenses/mit-license.php
7276
- * http://www.gnu.org/licenses/gpl.html
7335
+ * http://www.gnu.org/licenses/gpl-2.0.html
7277
7336
  **/
7278
7337
  $.jgrid.extend({
7279
7338
  setSubGrid : function () {
@@ -7644,7 +7703,7 @@ jQuery(selector).each(function() {
7644
7703
  * http://trirand.com/blog/
7645
7704
  * Dual licensed under the MIT and GPL licenses:
7646
7705
  * http://www.opensource.org/licenses/mit-license.php
7647
- * http://www.gnu.org/licenses/gpl.html
7706
+ * http://www.gnu.org/licenses/gpl-2.0.html
7648
7707
  **/
7649
7708
  $.jgrid.extend({
7650
7709
  setTreeNode : function(rd, row){
@@ -8232,7 +8291,7 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
8232
8291
  * Changes from Tony Tomov tony@trirand.com
8233
8292
  * Dual licensed under the MIT and GPL licenses:
8234
8293
  * http://www.opensource.org/licenses/mit-license.php
8235
- * http://www.gnu.org/licenses/gpl.html
8294
+ * http://www.gnu.org/licenses/gpl-2.0.html
8236
8295
  *
8237
8296
  **/
8238
8297
 
@@ -8327,25 +8386,30 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
8327
8386
  monthNames: opts.monthNames
8328
8387
  };
8329
8388
  if( format in opts.masks ) { format = opts.masks[format]; }
8330
- date = date.split(/[\\\/:_;.\t\T\s-]/);
8331
- format = format.split(/[\\\/:_;.\t\T\s-]/);
8332
- // parsing for month names
8333
- for(k=0,hl=format.length;k<hl;k++){
8334
- if(format[k] == 'M') {
8335
- dM = $.inArray(date[k],dateFormat.i18n.monthNames);
8336
- if(dM !== -1 && dM < 12){date[k] = dM+1;}
8337
- }
8338
- if(format[k] == 'F') {
8339
- dM = $.inArray(date[k],dateFormat.i18n.monthNames);
8340
- if(dM !== -1 && dM > 11){date[k] = dM+1-12;}
8341
- }
8342
- ts[format[k].toLowerCase()] = parseInt(date[k],10);
8343
- }
8344
- ts.m = parseInt(ts.m,10)-1;
8345
- var ty = ts.y;
8346
- if (ty >= 70 && ty <= 99) { ts.y = 1900+ts.y; }
8347
- else if (ty >=0 && ty <=69) { ts.y= 2000+ts.y; }
8348
- timestamp = new Date(ts.y, ts.m, ts.d, ts.h, ts.i, ts.s, ts.u);
8389
+ if(date.constructor === Date) {
8390
+ timestamp = date;
8391
+ } else {
8392
+ date = date.split(/[\\\/:_;.\t\T\s-]/);
8393
+ format = format.split(/[\\\/:_;.\t\T\s-]/);
8394
+ // parsing for month names
8395
+ for(k=0,hl=format.length;k<hl;k++){
8396
+ if(format[k] == 'M') {
8397
+ dM = $.inArray(date[k],dateFormat.i18n.monthNames);
8398
+ if(dM !== -1 && dM < 12){date[k] = dM+1;}
8399
+ }
8400
+ if(format[k] == 'F') {
8401
+ dM = $.inArray(date[k],dateFormat.i18n.monthNames);
8402
+ if(dM !== -1 && dM > 11){date[k] = dM+1-12;}
8403
+ }
8404
+ ts[format[k].toLowerCase()] = parseInt(date[k],10);
8405
+ }
8406
+ ts.m = parseInt(ts.m,10)-1;
8407
+ var ty = ts.y;
8408
+ if (ty >= 70 && ty <= 99) { ts.y = 1900+ts.y; }
8409
+ else if (ty >=0 && ty <=69) { ts.y= 2000+ts.y; }
8410
+ timestamp = new Date(ts.y, ts.m, ts.d, ts.h, ts.i, ts.s, ts.u);
8411
+ }
8412
+
8349
8413
  if( newformat in opts.masks ) {
8350
8414
  newformat = opts.masks[newformat];
8351
8415
  } else if ( !newformat ) {
@@ -8636,7 +8700,7 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
8636
8700
  ret= $(cellval).text();
8637
8701
  }
8638
8702
  }
8639
- return ret ? ret : cnt===true ? $(cellval).text() : $(cellval).html();
8703
+ return ret ? ret : cnt===true ? $(cellval).text() : $.jgrid.htmlDecode($(cellval).html());
8640
8704
  };
8641
8705
  $.unformat.select = function (cellval,options,pos,cnt) {
8642
8706
  // Spacial case when we have local data and perform a sort
@@ -8745,7 +8809,7 @@ hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function()
8745
8809
 
8746
8810
  /* Plugin: searchFilter v1.2.9
8747
8811
  * Author: Kasey Speakman (kasey@cornerspeed.com)
8748
- * License: Dual Licensed, MIT and GPL v2 (http://www.gnu.org/copyleft/gpl.html)
8812
+ * License: Dual Licensed, MIT and GPL v2 (http://www.gnu.org/licenses/gpl-2.0.html)
8749
8813
  *
8750
8814
  * REQUIREMENTS:
8751
8815
  * jQuery 1.3+ (http://jquery.com/)
@@ -9232,7 +9296,7 @@ jQuery.fn.searchFilter = function(fields, options) {
9232
9296
  }
9233
9297
  selDOMobj.selectedIndex = indexmap[setting];
9234
9298
  $(selDOMobj).change();
9235
- }
9299
+ };
9236
9300
 
9237
9301
  this.setFilter = function(settings) {
9238
9302
  /* a "setter" for an arbitrary SearchFilter's filter line.
@@ -9257,27 +9321,27 @@ jQuery.fn.searchFilter = function(fields, options) {
9257
9321
  var o = settings['sfref'], filter = settings['filter'];
9258
9322
 
9259
9323
  // setting up valueindexmap that we will need to manipulate SELECT elements.
9260
- var fields = [],
9324
+ var fields = [], i, j , l, lj, li,
9261
9325
  valueindexmap = {};
9262
9326
  // example of valueindexmap:
9263
9327
  // {'field1':{'index':0,'ops':{'eq':0,'ne':1}},'fieldX':{'index':1,'ops':{'eq':0,'ne':1},'data':{'true':0,'false':1}}},
9264
9328
  // if data is undefined it's a INPUT field. If defined, it's SELECT
9265
9329
  selDOMobj = o.find("select[name='field']")[0];
9266
- for (var i=0, l=selDOMobj.options.length; i<l; i++) {
9330
+ for (i=0, l=selDOMobj.options.length; i<l; i++) {
9267
9331
  valueindexmap[selDOMobj.options[i].value] = {'index':i,'ops':{}};
9268
9332
  fields.push(selDOMobj.options[i].value);
9269
9333
  }
9270
- for (var i=0, li=fields.length; i < li; i++) {
9334
+ for (i=0, li=fields.length; i < li; i++) {
9271
9335
  selDOMobj = o.find(".ops > select[class='field"+i+"']")[0];
9272
9336
  if (selDOMobj) {
9273
- for (var j=0, lj=selDOMobj.options.length; j<lj; j++) {
9337
+ for (j=0, lj=selDOMobj.options.length; j<lj; j++) {
9274
9338
  valueindexmap[fields[i]]['ops'][selDOMobj.options[j].value] = j;
9275
9339
  }
9276
9340
  }
9277
9341
  selDOMobj = o.find(".data > select[class='field"+i+"']")[0];
9278
9342
  if (selDOMobj) {
9279
9343
  valueindexmap[fields[i]]['data'] = {}; // this setting is the flag that 'data' is contained in a SELECT
9280
- for (var j=0, lj=selDOMobj.options.length; j<lj; j++) {
9344
+ for (j=0, lj=selDOMobj.options.length; j<lj; j++) {
9281
9345
  valueindexmap[fields[i]]['data'][selDOMobj.options[j].value] = j;
9282
9346
  }
9283
9347
  }
@@ -9286,19 +9350,28 @@ jQuery.fn.searchFilter = function(fields, options) {
9286
9350
  // preparsing the index values for SELECT elements.
9287
9351
  var fieldvalue, fieldindex, opindex, datavalue, dataindex;
9288
9352
  fieldvalue = filter['field'];
9289
- fieldindex = valueindexmap[fieldvalue]['index'];
9290
- if (fieldindex != undefined) {
9353
+ if (valueindexmap[fieldvalue]) {
9354
+ fieldindex = valueindexmap[fieldvalue]['index'];
9355
+ }
9356
+ if (fieldindex != null) {
9291
9357
  opindex = valueindexmap[fieldvalue]['ops'][filter['op']];
9358
+ if(opindex === undefined) {
9359
+ for(i=0,li=options.operators.length; i<li;i++) {
9360
+ if(options.operators[i].op == filter.op ){
9361
+ opindex = i;
9362
+ break;
9363
+ }
9364
+ }
9365
+ }
9292
9366
  datavalue = filter['data'];
9293
- if (valueindexmap[fieldvalue]['data'] == undefined) {
9367
+ if (valueindexmap[fieldvalue]['data'] == null) {
9294
9368
  dataindex = -1; // 'data' is not SELECT, Making the var 'defined'
9295
9369
  } else {
9296
9370
  dataindex = valueindexmap[fieldvalue]['data'][datavalue]; // 'undefined' may come from here.
9297
9371
  }
9298
9372
  }
9299
-
9300
9373
  // only if values for 'field' and 'op' and 'data' are 'found' in mapping...
9301
- if (fieldindex != undefined && opindex != undefined && dataindex != undefined) {
9374
+ if (fieldindex != null && opindex != null && dataindex != null) {
9302
9375
  o.find("select[name='field']")[0].selectedIndex = fieldindex;
9303
9376
  o.find("select[name='field']").change();
9304
9377
  o.find("select[name='op']")[0].selectedIndex = opindex;
@@ -9307,8 +9380,11 @@ jQuery.fn.searchFilter = function(fields, options) {
9307
9380
  if (o) {
9308
9381
  o.selectedIndex = dataindex;
9309
9382
  }
9310
- }
9311
- } // end of this.setFilter fn
9383
+ return true
9384
+ } else {
9385
+ return false
9386
+ }
9387
+ }; // end of this.setFilter fn
9312
9388
  } // end of if fields != null
9313
9389
  }
9314
9390
  return new SearchFilter(this, fields, options);