compass-jquery-plugin 0.3.2.6 → 0.3.2.7.nil

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. data/README.md +2 -1
  2. data/VERSION.yml +2 -2
  3. data/lib/handle_js_files.rb +21 -2
  4. data/templates/dynatree/jquery.dynatree.js +23 -20
  5. data/templates/dynatree/jquery.dynatree.min.js +38 -38
  6. data/templates/dynatree/jquery/dynatree/aero.scss +1 -1
  7. data/templates/dynatree/jquery/dynatree/aqua.scss +1 -1
  8. data/templates/dynatree/jquery/dynatree/crystal.scss +1 -1
  9. data/templates/dynatree/jquery/dynatree/xp.scss +2 -2
  10. data/templates/ical/jquery/ical.scss +10 -10
  11. data/templates/jqgrid/i18n/jqgrid/locale-lt.js +134 -0
  12. data/templates/jqgrid/i18n/jqgrid/locale-lt.min.js +7 -0
  13. data/templates/jqgrid/jquery.jqGrid.js +155 -65
  14. data/templates/jqgrid/jquery.jqGrid.min.js +396 -393
  15. data/templates/jqgrid/manifest.rb +2 -0
  16. data/templates/jqtouch/jquery.jqtouch.js +166 -195
  17. data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
  18. data/templates/jqtouch/jquery/touch/apple.scss +5 -5
  19. data/templates/jqtouch/jquery/touch/default.scss +5 -5
  20. data/templates/jqtouch/jquery/touch/jqt.scss +12 -7
  21. data/templates/jqtouch/jquery/touch/jqtouch.scss +11 -13
  22. data/templates/jquery/history.adapter.jquery.js +54 -67
  23. data/templates/jquery/history.adapter.jquery.min.js +2 -2
  24. data/templates/jquery/history.html4.js +587 -680
  25. data/templates/jquery/history.html4.min.js +8 -18
  26. data/templates/jquery/history.js +1670 -1289
  27. data/templates/jquery/history.min.js +25 -21
  28. data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +1 -1
  29. data/templates/jquery/i18n/jquery.ui/datepicker-ar.min.js +1 -1
  30. data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +23 -0
  31. data/templates/jquery/i18n/jquery.ui/datepicker-tj.min.js +2 -0
  32. data/templates/jquery/jquery-ui.js +97 -61
  33. data/templates/jquery/jquery-ui.min.js +175 -175
  34. data/templates/jquery/jquery.dst.js +86 -151
  35. data/templates/jquery/jquery/ui/_theme.scss +13 -13
  36. data/templates/jquery/json2.js +214 -214
  37. data/templates/jquery/manifest.rb +2 -0
  38. data/templates/mobile/jquery.mobile.js +324 -225
  39. data/templates/mobile/jquery.mobile.min.js +4 -4
  40. data/templates/mobile/jquery/mobile/_base.scss +60 -48
  41. data/templates/mobile/jquery/mobile/default.scss +57 -80
  42. data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
  43. data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
  44. data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
  45. data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
  46. data/templates/mobile/jquery/mobile/valencia.scss +61 -73
  47. data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
  48. data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
  49. data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
  50. data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
  51. data/templates/mobile/manifest.rb +0 -8
  52. data/templates/ribbon/jquery/ribbon/office.scss +12 -12
  53. data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
  54. data/templates/tiny_mce/manifest.rb +16 -0
  55. data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -1
  56. data/templates/tiny_mce/tiny_mce/langs/de.js +1 -0
  57. data/templates/tiny_mce/tiny_mce/langs/en.js +1 -222
  58. data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +1 -5
  59. data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -1
  60. data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +1 -57
  61. data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +1 -43
  62. data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/de_dlg.js +1 -0
  63. data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -7
  64. data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +1 -58
  65. data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +1 -13
  66. data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -1
  67. data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +1 -50
  68. data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +1 -235
  69. data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -445
  70. data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/de_dlg.js +1 -0
  71. data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -45
  72. data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +1 -8
  73. data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -1
  74. data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +1 -61
  75. data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +1 -525
  76. data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/de_dlg.js +1 -0
  77. data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -54
  78. data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -338
  79. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
  80. data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -154
  81. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
  82. data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -119
  83. data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
  84. data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +1 -431
  85. data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +1 -4
  86. data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -1
  87. data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +1 -120
  88. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
  89. data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -154
  90. data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
  91. data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +1 -82
  92. data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -1
  93. data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +1 -43
  94. data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +1 -41
  95. data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +1 -22
  96. data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/de_dlg.js +1 -0
  97. data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -20
  98. data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +1 -22
  99. data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -1
  100. data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +1 -84
  101. data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +1 -19
  102. data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +1 -3
  103. data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +1 -3
  104. data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +1 -182
  105. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
  106. data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -166
  107. data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -571
  108. data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +1 -492
  109. data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/de_dlg.js +1 -0
  110. data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -85
  111. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
  112. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +1 -159
  113. data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +1 -109
  114. data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -1
  115. data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +1 -54
  116. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
  117. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +1 -696
  118. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -90
  119. data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +1 -387
  120. data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -1
  121. data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +1 -83
  122. data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -1
  123. data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +1 -214
  124. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
  125. data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +1 -139
  126. data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +1 -17
  127. data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -1
  128. data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +1 -770
  129. data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +1 -73
  130. data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -340
  131. data/templates/tiny_mce/tiny_mce/plugins/media/langs/de_dlg.js +1 -0
  132. data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +1 -109
  133. data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -812
  134. data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -1
  135. data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +1 -53
  136. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
  137. data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -90
  138. data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -1
  139. data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +1 -74
  140. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
  141. data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -899
  142. data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +1 -36
  143. data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +1 -51
  144. data/templates/tiny_mce/tiny_mce/plugins/paste/langs/de_dlg.js +1 -0
  145. data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +1 -5
  146. data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +1 -27
  147. data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +1 -21
  148. data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -1
  149. data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +1 -53
  150. data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +17 -16
  151. data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +1 -73
  152. data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +10 -9
  153. data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -1
  154. data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +1 -34
  155. data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -1
  156. data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +1 -101
  157. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +1 -6
  158. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -1
  159. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +1 -61
  160. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +1 -140
  161. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/de_dlg.js +1 -0
  162. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -16
  163. data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +1 -100
  164. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -1
  165. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
  166. data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -415
  167. data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +1 -13
  168. data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -1
  169. data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +1 -55
  170. data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +1 -635
  171. data/templates/tiny_mce/tiny_mce/plugins/style/langs/de_dlg.js +1 -0
  172. data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +1 -70
  173. data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +1 -838
  174. data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
  175. data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +1 -114
  176. data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +1 -178
  177. data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +1 -17
  178. data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +1 -25
  179. data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +1 -13
  180. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
  181. data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1183
  182. data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +1 -284
  183. data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +1 -27
  184. data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +1 -232
  185. data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +1 -450
  186. data/templates/tiny_mce/tiny_mce/plugins/table/langs/de_dlg.js +1 -0
  187. data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +1 -74
  188. data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +1 -32
  189. data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +1 -157
  190. data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +1 -188
  191. data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +1 -12
  192. data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +1 -23
  193. data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -1
  194. data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +1 -159
  195. data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +1 -106
  196. data/templates/tiny_mce/tiny_mce/plugins/template/langs/de_dlg.js +1 -0
  197. data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +1 -15
  198. data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +1 -31
  199. data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -1
  200. data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +1 -83
  201. data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
  202. data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +1 -114
  203. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +1 -142
  204. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +1 -142
  205. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +1 -149
  206. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +1 -142
  207. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +1 -11
  208. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +1 -9
  209. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +1 -162
  210. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
  211. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +1 -132
  212. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +1 -162
  213. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +1 -28
  214. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +1 -28
  215. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +1 -125
  216. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +1 -28
  217. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +1 -53
  218. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +1 -229
  219. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +1 -53
  220. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
  221. data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
  222. data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +1 -52
  223. data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +1 -26
  224. data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +1 -51
  225. data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +1 -74
  226. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
  227. data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1328
  228. data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +1 -80
  229. data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +1 -73
  230. data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +1 -42
  231. data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +1 -354
  232. data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +1 -329
  233. data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +1 -247
  234. data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +1 -153
  235. data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +1 -56
  236. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de.js +1 -0
  237. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de_dlg.js +1 -0
  238. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +1 -68
  239. data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +1 -54
  240. data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +1 -57
  241. data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +1 -47
  242. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +1 -47
  243. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +1 -117
  244. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -213
  245. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +1 -23
  246. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +1 -105
  247. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +1 -101
  248. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +1 -46
  249. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -116
  250. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -215
  251. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +1 -8
  252. data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +1 -5
  253. data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +1 -25
  254. data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -1
  255. data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +1 -84
  256. data/templates/tiny_mce/tiny_mce/themes/simple/langs/de.js +1 -0
  257. data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +1 -11
  258. data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +1 -25
  259. data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +1 -32
  260. data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +1 -17
  261. data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +1 -35
  262. data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
  263. data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +1 -5
  264. data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +1 -70
  265. data/templates/tiny_mce/tiny_mce/utils/form_utils.js +1 -207
  266. data/templates/tiny_mce/tiny_mce/utils/mctabs.js +1 -162
  267. data/templates/tiny_mce/tiny_mce/utils/validate.js +1 -252
  268. metadata +32 -17
  269. data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
  270. data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
  271. data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
  272. data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
  273. data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
  274. data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
  275. data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
  276. data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
@@ -0,0 +1,7 @@
1
+ (function(b){b.jgrid={defaults:{recordtext:"Peržiūrima {0} - {1} iš {2}",emptyrecords:"Įrašų nėra",loadtext:"Kraunama...",pgtext:"Puslapis {0} iš {1}"},search:{caption:"Paieška...",Find:"Ieškoti",Reset:"Atstatyti",odata:["lygu","nelygu","mažiau","mažiau arba lygu","daugiau","daugiau arba lygu","prasideda","neprasideda","reikšmė yra","reikšmės nėra","baigiasi","nesibaigia","yra sudarytas","nėra sudarytas"],groupOps:[{op:"AND",text:"visi"},{op:"OR",text:"bet kuris"}],matchText:" match",rulesText:" rules"},
2
+ edit:{addCaption:"Sukurti įrašą",editCaption:"Redaguoti įrašą",bSubmit:"Išsaugoti",bCancel:"Atšaukti",bClose:"Uždaryti",saveData:"Duomenys buvo pakeisti! Išsaugoti pakeitimus?",bYes:"Taip",bNo:"Ne",bExit:"Atšaukti",msg:{required:"Privalomas laukas",number:"Įveskite tinkamą numerį",minValue:"reikšmė turi būti didesnė arba lygi ",maxValue:"reikšmė turi būti mažesnė arba lygi",email:"neteisingas el. pašto adresas",integer:"Įveskite teisingą sveikąjį skaičių",date:"Įveskite teisingą datą",url:"blogas adresas. Nepamirškite pridėti ('http://' arba 'https://')",
3
+ nodefined:" nėra apibrėžta!",novalue:" turi būti gražinama kokia nors reikšmė!",customarray:"Custom f-ja turi grąžinti masyvą!",customfcheck:"Custom f-ja tūrėtų būti sukurta, prieš bandant ją naudoti!"}},view:{caption:"Peržiūrėti įrašus",bClose:"Uždaryti"},del:{caption:"Ištrinti",msg:"Ištrinti pažymėtus įrašus(-ą)?",bSubmit:"Ištrinti",bCancel:"Atšaukti"},nav:{edittext:"",edittitle:"Redaguoti pažymėtą eilutę",addtext:"",addtitle:"Pridėti naują eilutę",deltext:"",deltitle:"Ištrinti pažymėtą eilutę",
4
+ searchtext:"",searchtitle:"Rasti įrašus",refreshtext:"",refreshtitle:"Perkrauti lentelę",alertcap:"Įspėjimas",alerttext:"Pasirinkite eilutę",viewtext:"",viewtitle:"Peržiūrėti pasirinktą eilutę"},col:{caption:"Pasirinkti stulpelius",bSubmit:"Gerai",bCancel:"Atšaukti"},errors:{errcap:"Klaida",nourl:"Url reikšmė turi būti perduota",norecords:"Nėra įrašų, kuriuos būtų galima apdoroti",model:"colNames skaičius <> colModel skaičiui!"},formatter:{integer:{thousandsSeparator:"",defaultValue:"0"},number:{decimalSeparator:",",
5
+ thousandsSeparator:"",decimalPlaces:2,defaultValue:"0.00"},currency:{decimalSeparator:",",thousandsSeparator:"",decimalPlaces:2,prefix:"",suffix:"",defaultValue:"0.00"},date:{dayNames:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš","Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"],monthNames:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugj","Rugs","Spa","Lap","Gru","Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis",
6
+ "Spalis","Lapkritis","Gruodis"],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:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},reformatAfterEdit:false},baseLinkUrl:"",showAction:"",
7
+ target:"",checkbox:{disabled:true},idName:"id"}}})(jQuery);
@@ -2,12 +2,12 @@
2
2
  // @compilation_level SIMPLE_OPTIMIZATIONS
3
3
 
4
4
  /*
5
- * jqGrid 3.8.2 - jQuery Grid
5
+ * jqGrid 4.0 beta - jQuery Grid
6
6
  * Copyright (c) 2008, Tony Tomov, tony@trirand.com
7
7
  * Dual licensed under the MIT and GPL licenses
8
8
  * http://www.opensource.org/licenses/mit-license.php
9
9
  * http://www.gnu.org/licenses/gpl-2.0.html
10
- * Date: 2010-12-14
10
+ * Date: 2011-03-21
11
11
  */
12
12
  //jsHint options
13
13
  /*global document, window, jQuery, DOMParser, ActiveXObject $ */
@@ -17,7 +17,7 @@
17
17
  $.jgrid = $.jgrid || {};
18
18
  $.extend($.jgrid, {
19
19
  htmlDecode : function(value) {
20
- if (value == '&nbsp;' || value == '&#160;' || (value.length == 1 && value.charCodeAt(0) == 160)) {
20
+ if (value && (value == '&nbsp;' || value == '&#160;' || (value.length == 1 && value.charCodeAt(0) == 160))) {
21
21
  return "";
22
22
  }
23
23
  return !value ? value : String(value).replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&quot;/g, '"');
@@ -153,6 +153,11 @@
153
153
  sid = sid + "";
154
154
  return sid.replace(/([\.\:\[\]])/g, "\\$1");
155
155
  },
156
+ guid : 1,
157
+ uidPref: 'jqg',
158
+ randId : function(prefix) {
159
+ return (prefix ? prefix : $.jgrid.uidPref) + ($.jgrid.guid++);
160
+ },
156
161
  getAccessor : function(obj, expr) {
157
162
  var ret,p,prm = [], i;
158
163
  if (typeof expr === 'function') {
@@ -1108,8 +1113,10 @@
1108
1113
  parent.scrollTop = 0;
1109
1114
  }
1110
1115
  if (locdata === true) {
1111
- ts.p.data = [];
1112
- ts.p._index = {};
1116
+ if (ts.p.treeGrid === true) {
1117
+ ts.p.data = [];
1118
+ ts.p._index = {};
1119
+ }
1113
1120
  }
1114
1121
  },
1115
1122
  refreshIndex = function() {
@@ -1203,7 +1210,7 @@
1203
1210
  var gl = gxml.length, j = 0, grpdata = {}, rn;
1204
1211
  if (gxml && gl) {
1205
1212
  rn = parseInt(ts.p.rowNum, 10);
1206
- var br = ts.p.scroll ? (parseInt(ts.p.page, 10) - 1) * rn + 1 : 1,altr;
1213
+ var br = ts.p.scroll ? $.jgrid.randId() : 1,altr;
1207
1214
  if (adjust) {
1208
1215
  rn *= adjust + 1;
1209
1216
  }
@@ -1383,7 +1390,7 @@
1383
1390
  dReader = ts.p.jsonReader;
1384
1391
  frd = 'json';
1385
1392
  }
1386
- var ir = 0,v,i,j,row,f = [],F,cur,gi = 0,si = 0,ni = 0,len,drows,idn,rd = {}, fpos, idr,rowData = [],cn = (ts.p.altRows === true) ? " " + ts.p.altclass : "",cn1,lp;
1393
+ var ir = 0,v,i,j,f = [],F,cur,gi = 0,si = 0,ni = 0,len,drows,idn,rd = {}, fpos, idr,rowData = [],cn = (ts.p.altRows === true) ? " " + ts.p.altclass : "",cn1,lp;
1387
1394
  ts.p.page = $.jgrid.getAccessor(data, dReader.page) || 0;
1388
1395
  lp = $.jgrid.getAccessor(data, dReader.total);
1389
1396
  ts.p.lastpage = lp === undefined ? 1 : lp;
@@ -1409,7 +1416,7 @@
1409
1416
  }
1410
1417
  len = drows.length;
1411
1418
  i = 0;
1412
- var rn = parseInt(ts.p.rowNum, 10),br = ts.p.scroll ? (parseInt(ts.p.page, 10) - 1) * rn + 1 : 1, altr;
1419
+ var rn = parseInt(ts.p.rowNum, 10),br = ts.p.scroll ? $.jgrid.randId() : 1, altr;
1413
1420
  if (adjust) {
1414
1421
  rn *= adjust + 1;
1415
1422
  }
@@ -2812,22 +2819,22 @@
2812
2819
  return false;
2813
2820
  });
2814
2821
  }
2815
- if ($.isFunction(this.p.onRightClickRow)) {
2816
- $(this).bind('contextmenu', function(e) {
2817
- td = e.target;
2818
- ptr = $(td, ts.rows).closest("tr.jqgrow");
2819
- if ($(ptr).length === 0) {
2820
- return false;
2821
- }
2822
- if (!ts.p.multiselect) {
2823
- $(ts).jqGrid("setSelection", ptr[0].id, true);
2824
- }
2825
- ri = ptr[0].rowIndex;
2826
- ci = $.jgrid.getCellIndex(td);
2827
- ts.p.onRightClickRow.call(ts, $(ptr).attr("id"), ri, ci, e);
2828
- return false;
2829
- });
2830
- }
2822
+ // if ($.isFunction(this.p.onRightClickRow)) {
2823
+ // $(this).bind('contextmenu', function(e) {
2824
+ // td = e.target;
2825
+ // ptr = $(td, ts.rows).closest("tr.jqgrow");
2826
+ // if ($(ptr).length === 0) {
2827
+ // return false;
2828
+ // }
2829
+ // if (!ts.p.multiselect) {
2830
+ // $(ts).jqGrid("setSelection", ptr[0].id, true);
2831
+ // }
2832
+ // ri = ptr[0].rowIndex;
2833
+ // ci = $.jgrid.getCellIndex(td);
2834
+ // ts.p.onRightClickRow.call(ts, $(ptr).attr("id"), ri, ci, e);
2835
+ // return false;
2836
+ // });
2837
+ // }
2831
2838
  grid.bDiv = document.createElement("div");
2832
2839
  $(grid.bDiv)
2833
2840
  .append($('<div style="position:relative;' + (isMSIE && $.browser.version < 8 ? "height:0.01%;" : "") + '"></div>').append('<div></div>').append(this))
@@ -3309,7 +3316,7 @@
3309
3316
  rowid = rowid + "";
3310
3317
  }
3311
3318
  else {
3312
- rowid = (t.p.records + 1) + "";
3319
+ rowid = $.jgrid.randId();
3313
3320
  if (t.p.keyIndex !== false) {
3314
3321
  cnm = t.p.colModel[t.p.keyIndex + gi + si + ni].name;
3315
3322
  if (typeof rdata[0][cnm] != "undefined") {
@@ -3329,7 +3336,7 @@
3329
3336
  rowid = data[cnm];
3330
3337
  }
3331
3338
  catch (e) {
3332
- rowid = (t.p.records + 1) + "";
3339
+ rowid = $.jgrid.randId();
3333
3340
  }
3334
3341
  cna = t.p.altRows === true ? (t.rows.length - 1) % 2 === 0 ? cn : "" : "";
3335
3342
  }
@@ -4030,6 +4037,18 @@
4030
4037
  var $t = this;
4031
4038
  $($t).unbind('keydown');
4032
4039
  });
4040
+ },
4041
+ getLocalRow : function (rowid) {
4042
+ var ret = false, ind;
4043
+ this.each(function() {
4044
+ if (typeof(rowid) !== "undefined") {
4045
+ ind = this.p._index[rowid];
4046
+ if (ind >= 0) {
4047
+ ret = this.p.data[ind];
4048
+ }
4049
+ }
4050
+ });
4051
+ return ret;
4033
4052
  }
4034
4053
  });
4035
4054
  })(jQuery);
@@ -4806,9 +4825,11 @@
4806
4825
  M1 = false;
4807
4826
  }
4808
4827
  //E.css({opacity:0.8});
4809
- try {
4810
- $("input.hasDatepicker", E[0]).datepicker('hide');
4811
- } catch (dpe) {
4828
+ if ($("input.hasDatepicker", E[0])[0]) {
4829
+ try {
4830
+ $("input.hasDatepicker", E[0]).datepicker('hide');
4831
+ } catch (dpe) {
4832
+ }
4812
4833
  }
4813
4834
  $(document).mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);
4814
4835
  return false;
@@ -5841,8 +5862,9 @@ var xmlJsonClass = {
5841
5862
  }
5842
5863
  return [curleft,curtop];
5843
5864
  },
5844
- createModal : function(aIDs, content, p, insertSelector, posSelector, appendsel) {
5865
+ createModal : function(aIDs, content, p, insertSelector, posSelector, appendsel, css) {
5845
5866
  var mw = document.createElement('div'), rtlsup, self = this;
5867
+ css = $.extend({}, css || {});
5846
5868
  rtlsup = $(p.gbox).attr("dir") == "rtl" ? true : false;
5847
5869
  mw.className = "ui-widget ui-widget-content ui-corner-all ui-jqdialog";
5848
5870
  mw.id = aIDs.themodal;
@@ -5876,15 +5898,18 @@ var xmlJsonClass = {
5876
5898
  if (appendsel === true) {
5877
5899
  $('body').append(mw);
5878
5900
  } //append as first child in body -for alert dialog
5901
+ else if (typeof appendsel == "string")
5902
+ $(appendsel).append(mw);
5879
5903
  else {
5880
5904
  $(mw).insertBefore(insertSelector);
5881
5905
  }
5906
+ $(mw).css(css);
5882
5907
  if (typeof p.jqModal === 'undefined') {
5883
5908
  p.jqModal = true;
5884
5909
  } // internal use
5885
5910
  var coord = {};
5886
5911
  if ($.fn.jqm && p.jqModal === true) {
5887
- if (p.left === 0 && p.top === 0) {
5912
+ if (p.left === 0 && p.top === 0 && p.overlay) {
5888
5913
  var pos = [];
5889
5914
  pos = this.findPos(posSelector);
5890
5915
  p.left = pos[0] + 4;
@@ -5909,7 +5934,7 @@ var xmlJsonClass = {
5909
5934
  p.height = 200;
5910
5935
  }
5911
5936
  if (!p.zIndex) {
5912
- var parentZ = $(insertSelector).parents("*[role=dialog]").first().css("z-index");
5937
+ var parentZ = $(insertSelector).parents("*[role=dialog]").filter(':first').css("z-index");
5913
5938
  if (parentZ) {
5914
5939
  p.zIndex = parseInt(parentZ, 10) + 1;
5915
5940
  } else {
@@ -6122,12 +6147,15 @@ var xmlJsonClass = {
6122
6147
  }
6123
6148
 
6124
6149
  function setAttributes(elm, atr) {
6125
- var exclude = ['dataInit','dataEvents', 'value','dataUrl', 'buildSelect'];
6150
+ var exclude = ['dataInit','dataEvents','dataUrl', 'buildSelect','sopt', 'searchhidden', 'defaultValue', 'attr'];
6126
6151
  $.each(atr, function(key, value) {
6127
6152
  if ($.inArray(key, exclude) === -1) {
6128
- $(elem).attr(key, value);
6153
+ $(elm).attr(key, value);
6129
6154
  }
6130
6155
  });
6156
+ if (!atr.hasOwnProperty('id')) {
6157
+ $(elm).attr('id', $.jgrid.randId());
6158
+ }
6131
6159
  }
6132
6160
 
6133
6161
  switch (eltype) {
@@ -6193,8 +6221,11 @@ var xmlJsonClass = {
6193
6221
  url: options.dataUrl,
6194
6222
  type : "GET",
6195
6223
  dataType: "html",
6224
+ context: {elem:elem, options:options, vl:vl},
6196
6225
  success: function(data, status) {
6197
- var a;
6226
+ var a, ovm = [], elem = this.elem, vl = this.vl,
6227
+ options = $.extend({}, this.options),
6228
+ msl = options.multiple === true;
6198
6229
  if (typeof(options.buildSelect) != "undefined") {
6199
6230
  var b = options.buildSelect(data);
6200
6231
  a = $(b).html();
@@ -6223,9 +6254,6 @@ var xmlJsonClass = {
6223
6254
  $(this).attr("role", "option");
6224
6255
  if ($.inArray($.trim($(this).text()), ovm) > -1 || $.inArray($.trim($(this).val()), ovm) > -1) {
6225
6256
  this.selected = "selected";
6226
- if (!msl) {
6227
- return false;
6228
- }
6229
6257
  }
6230
6258
  });
6231
6259
  }, 0);
@@ -6622,7 +6650,7 @@ var xmlJsonClass = {
6622
6650
  ]
6623
6651
  }
6624
6652
  */
6625
- /*global jQuery, $ */
6653
+ /*global jQuery, $, window, navigator */
6626
6654
 
6627
6655
  (function ($) {
6628
6656
 
@@ -6685,7 +6713,7 @@ var xmlJsonClass = {
6685
6713
  };
6686
6714
  }
6687
6715
  var i, len = this.p.columns.length, cl,
6688
- isIE = /msie/i.test(navigator.userAgent) && !win.opera;
6716
+ isIE = /msie/i.test(navigator.userAgent) && !window.opera;
6689
6717
 
6690
6718
  // translating the options
6691
6719
  if (this.p._gridsopt.length) {
@@ -6753,10 +6781,12 @@ var xmlJsonClass = {
6753
6781
  p.error = !ret[0];
6754
6782
  p.errmsg = ret[1];
6755
6783
  }
6756
- },
6757
- randId = function() {
6758
- return Math.floor(Math.random() * 10000).toString();
6759
- };
6784
+ };
6785
+ /* moving to common
6786
+ randId = function() {
6787
+ return Math.floor(Math.random()*10000).toString();
6788
+ };
6789
+ */
6760
6790
 
6761
6791
  this.onchange = function () {
6762
6792
  // clear any error
@@ -6782,7 +6812,7 @@ var xmlJsonClass = {
6782
6812
  var that = this, i;
6783
6813
 
6784
6814
  // this table will hold all the group (tables) and rules (rows)
6785
- var table = $("<table class='group ui-widget ui-widget-content' style='border:0px none;'><tbody>");
6815
+ var table = $("<table class='group ui-widget ui-widget-content' style='border:0px none;'><tbody></tbody></table>");
6786
6816
  // create error message row
6787
6817
  if (parentgroup === null) {
6788
6818
  $(table).append("<tr class='error' style='display:none;'><th colspan='5' class='ui-state-error' align='left'></th></tr>");
@@ -6966,8 +6996,8 @@ var xmlJsonClass = {
6966
6996
  if (!cm) {
6967
6997
  return;
6968
6998
  }
6969
- cm.searchoptions.id = randId();
6970
- if (isIE) {
6999
+ cm.searchoptions.id = $.jgrid.randId();
7000
+ if (isIE && cm.inputtype === "text") {
6971
7001
  if (!cm.searchoptions.size) {
6972
7002
  cm.searchoptions.size = 10;
6973
7003
  }
@@ -7038,8 +7068,8 @@ var xmlJsonClass = {
7038
7068
  cm = p.columns[j];
7039
7069
  // create it here so it can be referentiated in the onchange event
7040
7070
  //var RD = that.createElement(rule, rule.data);
7041
- cm.searchoptions.id = randId();
7042
- if (isIE) {
7071
+ cm.searchoptions.id = $.jgrid.randId();
7072
+ if (isIE && cm.inputtype === "text") {
7043
7073
  if (!cm.searchoptions.size) {
7044
7074
  cm.searchoptions.size = 10;
7045
7075
  }
@@ -7398,7 +7428,13 @@ var xmlJsonClass = {
7398
7428
  onReset : null,
7399
7429
  toTop : true,
7400
7430
  overlay : 10,
7401
- columns : []
7431
+ columns : [],
7432
+ tmplNames : null,
7433
+ tmplFilters : null,
7434
+ // translations - later in lang file
7435
+ tmplLabel : ' Template: ',
7436
+ showOnLoad: false,
7437
+ layer: null
7402
7438
  }, $.jgrid.search, p || {});
7403
7439
  return this.each(function() {
7404
7440
  var $t = this;
@@ -7407,7 +7443,7 @@ var xmlJsonClass = {
7407
7443
  }
7408
7444
  var fid = "fbox_" + $t.p.id,
7409
7445
  showFrm = true,
7410
- IDs = {themodal:'editmod' + fid,modalhead:'edithd' + fid,modalcontent:'editcnt' + fid, scrollelm : fid},
7446
+ IDs = {themodal:'searchmod' + fid,modalhead:'searchhd' + fid,modalcontent:'searchcnt' + fid, scrollelm : fid},
7411
7447
  defaultFilters = $t.p.postData[p.sFilter];
7412
7448
  if (typeof(defaultFilters) === "string") {
7413
7449
  defaultFilters = $.jgrid.parse(defaultFilters);
@@ -7438,14 +7474,12 @@ var xmlJsonClass = {
7438
7474
  p.onInitializeSearch($("#" + fid));
7439
7475
  }
7440
7476
  var columns = $.extend([], $t.p.colModel),
7441
- bS = "<a href='javascript:void(0)' id='" + fid + "_search' class='fm-button ui-state-default ui-corner-all fm-button-icon-left ui-reset'><span class='ui-icon ui-icon-search'></span>" + p.Find + "</a>",
7477
+ bS = "<a href='javascript:void(0)' id='" + fid + "_search' class='fm-button ui-state-default ui-corner-all fm-button-icon-right ui-reset'><span class='ui-icon ui-icon-search'></span>" + p.Find + "</a>",
7442
7478
  bC = "<a href='javascript:void(0)' id='" + fid + "_reset' class='fm-button ui-state-default ui-corner-all fm-button-icon-left ui-search'><span class='ui-icon ui-icon-arrowreturnthick-1-w'></span>" + p.Reset + "</a>",
7443
- bQ = "";
7479
+ bQ = "", tmpl = "", colnm, found = false, bt;
7444
7480
  if (p.showQuery) {
7445
7481
  bQ = "<a href='javascript:void(0)' id='" + fid + "_query' class='fm-button ui-state-default ui-corner-all fm-button-icon-left'><span class='ui-icon ui-icon-comment'></span>Query</a>";
7446
7482
  }
7447
- var bt = "<table class='EditTable' style='border:0px none;margin-top:5px' id='" + fid + "_2'><tbody><tr><td colspan='2'><hr class='ui-widget-content' style='margin:1px'/></td></tr><tr><td class='EditButton' style='text-align:left'>" + bC + "</td><td class='EditButton'>" + bQ + bS + "</td></tr></tbody></table>",
7448
- colnm, found = false;
7449
7483
  if (!p.columns.length) {
7450
7484
  $.each(columns, function(i, n) {
7451
7485
  if (!n.label) {
@@ -7471,6 +7505,20 @@ var xmlJsonClass = {
7471
7505
  {"field":colnm,"op":"eq","data":""}
7472
7506
  ]};
7473
7507
  }
7508
+ found = false;
7509
+ if (p.tmplNames && p.tmplNames.length) {
7510
+ found = true;
7511
+ tmpl = p.tmplLabel;
7512
+ tmpl += "<select class='ui-template'>";
7513
+ tmpl += "<option value='default'>Default</option>";
7514
+ $.each(p.tmplNames, function(i, n) {
7515
+ tmpl += "<option value='" + i + "'>" + n + "</option>";
7516
+ });
7517
+ tmpl += "</select>";
7518
+ }
7519
+
7520
+ bt = "<table class='EditTable' style='border:0px none;margin-top:5px' id='" + fid + "_2'><tbody><tr><td colspan='2'><hr class='ui-widget-content' style='margin:1px'/></td></tr><tr><td class='EditButton' style='text-align:left'>" + bC + tmpl + "</td><td class='EditButton'>" + bQ + bS + "</td></tr></tbody></table>";
7521
+
7474
7522
  $("#" + fid).jqFilter({
7475
7523
  columns : columns,
7476
7524
  filter: p.loadDefaults ? defaultFilters : null,
@@ -7486,6 +7534,17 @@ var xmlJsonClass = {
7486
7534
  }
7487
7535
  });
7488
7536
  fil.append(bt);
7537
+ if (found && p.tmplFilters && p.tmplFilters.length) {
7538
+ $(".ui-template", fil).bind('change', function(e) {
7539
+ var curtempl = $(this).val();
7540
+ if (curtempl == "default") {
7541
+ $("#" + fid).jqFilter('addFilter', defaultFilters);
7542
+ } else {
7543
+ $("#" + fid).jqFilter('addFilter', p.tmplFilters[parseInt(curtempl, 10)]);
7544
+ }
7545
+ return false;
7546
+ });
7547
+ }
7489
7548
  if (p.multipleSearch === false) {
7490
7549
  $(".add-rule", "#" + fid).hide();
7491
7550
  $(".delete-rule", "#" + fid).hide();
@@ -7493,7 +7552,10 @@ var xmlJsonClass = {
7493
7552
  if ($.isFunction(p.onInitializeSearch)) {
7494
7553
  p.onInitializeSearch($("#" + fid));
7495
7554
  }
7496
- $.jgrid.createModal(IDs, fil, p, "#gview_" + $t.p.id, $("#gbox_" + $t.p.id)[0]);
7555
+ if (p.layer)
7556
+ $.jgrid.createModal(IDs, fil, p, "#gview_" + $t.p.id, $("#gbox_" + $t.p.id)[0], "#" + p.layer, {position: "relative"});
7557
+ else
7558
+ $.jgrid.createModal(IDs, fil, p, "#gview_" + $t.p.id, $("#gbox_" + $t.p.id)[0]);
7497
7559
  if (bQ) {
7498
7560
  $("#" + fid + "_query").bind('click', function(e) {
7499
7561
  $(".queryresult", fil).toggle();
@@ -7571,6 +7633,9 @@ var xmlJsonClass = {
7571
7633
  sdata[p.sFilter] = "";
7572
7634
  }
7573
7635
  fl[0].resetFilter();
7636
+ if (found) {
7637
+ $(".ui-template", fil).val("default");
7638
+ }
7574
7639
  $.extend($t.p.postData, sdata);
7575
7640
  if ($.isFunction(p.onReset)) {
7576
7641
  p.onReset();
@@ -8081,7 +8146,7 @@ var xmlJsonClass = {
8081
8146
  //id processing
8082
8147
  // user not set the id ret[2]
8083
8148
  if (!ret[2]) {
8084
- ret[2] = (parseInt($t.p.records, 10) + 1) + "";
8149
+ ret[2] = $.jgrid.randId();
8085
8150
  }
8086
8151
  postdata[idname] = ret[2];
8087
8152
  if (rp_ge.closeAfterAdd) {
@@ -9401,6 +9466,8 @@ var xmlJsonClass = {
9401
9466
  $(this).removeClass("ui-state-hover");
9402
9467
  }
9403
9468
  );
9469
+ if (pSearch.showOnLoad && pSearch.showOnLoad === true)
9470
+ $(tbd, navtbl).click();
9404
9471
  tbd = null;
9405
9472
  }
9406
9473
  if (o.refresh) {
@@ -10922,15 +10989,17 @@ var xmlJsonClass = {
10922
10989
  ldat = $t.p.data[dind];
10923
10990
  //$t.rows[i].level = ldat[level];
10924
10991
  if ($t.p.treeGridModel == 'nested') {
10925
- lft = parseInt(ldat[$t.p.treeReader.left_field], 10);
10926
- rgt = parseInt(ldat[$t.p.treeReader.right_field], 10);
10927
10992
  if (!ldat[isLeaf]) {
10993
+ lft = parseInt(ldat[$t.p.treeReader.left_field], 10);
10994
+ rgt = parseInt(ldat[$t.p.treeReader.right_field], 10);
10928
10995
  // NS Model
10929
10996
  ldat[isLeaf] = (rgt === lft + 1) ? 'true' : 'false';
10997
+ $t.rows[i].cells[$t.p._treeleafpos].innerHTML = ldat[isLeaf];
10930
10998
  }
10931
- } else {
10932
- //row.parent_id = rd[$t.p.treeReader.parent_id_field];
10933
10999
  }
11000
+ //else {
11001
+ //row.parent_id = rd[$t.p.treeReader.parent_id_field];
11002
+ //}
10934
11003
  curLevel = parseInt(ldat[level], 10);
10935
11004
  if ($t.p.tree_root_level === 0) {
10936
11005
  ident = curLevel + 1;
@@ -10967,6 +11036,7 @@ var xmlJsonClass = {
10967
11036
 
10968
11037
  twrap += "</div></div>";
10969
11038
  $($t.rows[i].cells[expCol]).wrapInner("<span class='cell-wrapper" + lf + "'></span>").prepend(twrap);
11039
+
10970
11040
  if (curLevel !== parseInt($t.p.tree_root_level, 10)) {
10971
11041
  var pn = $($t).jqGrid('getNodeParent', ldat);
10972
11042
  expan = pn && pn.hasOwnProperty(expanded) ? pn[expanded] : true;
@@ -11065,7 +11135,6 @@ var xmlJsonClass = {
11065
11135
  }
11066
11136
  i++;
11067
11137
  //
11068
-
11069
11138
  for (var tkey in $t.p.treeReader) {
11070
11139
  if ($t.p.treeReader[tkey] == nm)
11071
11140
  dupcols.push(nm);
@@ -11073,8 +11142,12 @@ var xmlJsonClass = {
11073
11142
 
11074
11143
  }
11075
11144
  }
11076
- $.each($t.p.treeReader, function(i, n) {
11145
+ $.each($t.p.treeReader, function(j, n) {
11077
11146
  if (n && $.inArray(n, dupcols) === -1) {
11147
+ if (j === 'leaf_field') {
11148
+ $t.p._treeleafpos = i;
11149
+ }
11150
+ i++;
11078
11151
  $t.p.colNames.push(n);
11079
11152
  $t.p.colModel.push({name:n,width:1,hidden:true,sortable:false,resizable:false,hidedlg:true,editable:true,search:false});
11080
11153
  }
@@ -11615,6 +11688,9 @@ var xmlJsonClass = {
11615
11688
  if (!grp.groupField.length) {
11616
11689
  $t.p.grouping = false;
11617
11690
  } else {
11691
+ if (typeof(grp.visibiltyOnNextGrouping) == 'undefined') {
11692
+ grp.visibiltyOnNextGrouping = [];
11693
+ }
11618
11694
  for (var i = 0; i < grp.groupField.length; i++) {
11619
11695
  if (!grp.groupOrder[i]) {
11620
11696
  grp.groupOrder[i] = 'asc';
@@ -11629,8 +11705,10 @@ var xmlJsonClass = {
11629
11705
  grp.groupSummary[i] = false;
11630
11706
  }
11631
11707
  if (grp.groupColumnShow[i] === true) {
11708
+ grp.visibiltyOnNextGrouping[i] = true;
11632
11709
  $($t).jqGrid('showCol', grp.groupField[i]);
11633
11710
  } else {
11711
+ grp.visibiltyOnNextGrouping[i] = $("#" + $t.p.id + "_" + grp.groupField[i]).is(":visible");
11634
11712
  $($t).jqGrid('hideCol', grp.groupField[i]);
11635
11713
  }
11636
11714
  grp.sortitems[i] = [];
@@ -11834,12 +11912,16 @@ var xmlJsonClass = {
11834
11912
  }
11835
11913
  var grp = $t.p.groupingView;
11836
11914
  $t.p.grouping = true;
11837
- // show previoous hidden groups if they are hidden
11915
+ // show previous hidden groups if they are hidden and weren't removed yet
11838
11916
  for (var i = 0; i < grp.groupField.length; i++) {
11839
- if (!grp.groupColumnShow[i]) {
11917
+ if (!grp.groupColumnShow[i] && grp.visibiltyOnNextGrouping[i]) {
11840
11918
  $($t).jqGrid('showCol', grp.groupField[i]);
11841
11919
  }
11842
11920
  }
11921
+ // set visibility status of current group columns on next grouping
11922
+ for (var i = 0; i < name.length; i++) {
11923
+ grp.visibiltyOnNextGrouping[i] = $("#" + $t.p.id + "_" + name[i]).is(":visible");
11924
+ }
11843
11925
  $t.p.groupingView = $.extend($t.p.groupingView, options || {});
11844
11926
  grp.groupField = name;
11845
11927
  $($t).trigger("reloadGrid");
@@ -11853,6 +11935,13 @@ var xmlJsonClass = {
11853
11935
  }
11854
11936
  $t.p.grouping = false;
11855
11937
  if (current === true) {
11938
+ var grp = $t.p.groupingView;
11939
+ // show previous hidden groups if they are hidden and weren't removed yet
11940
+ for (var i = 0; i < grp.groupField.length; i++) {
11941
+ if (!grp.groupColumnShow[i] && grp.visibiltyOnNextGrouping[i]) {
11942
+ $($t).jqGrid('showCol', grp.groupField);
11943
+ }
11944
+ }
11856
11945
  $("tr.jqgroup, tr.jqfoot", "#" + $t.p.id + " tbody:first").remove();
11857
11946
  $("tr.jqgrow:hidden", "#" + $t.p.id + " tbody:first").show();
11858
11947
  } else {
@@ -11894,6 +11983,7 @@ var xmlJsonClass = {
11894
11983
  });
11895
11984
  })(jQuery);
11896
11985
 
11986
+
11897
11987
  ;
11898
11988
  (function($) {
11899
11989
  /*