rjack-solr 3.6.2.0-java → 4.0.0.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. data/History.rdoc +5 -0
  2. data/Manifest.txt +268 -33
  3. data/NOTICE.txt +1 -1
  4. data/README.rdoc +6 -6
  5. data/assembly.xml +2 -2
  6. data/bin/rjack-solr-fg +1 -1
  7. data/init/rjack-solr +2 -2
  8. data/lib/rjack-solr.rb +7 -2
  9. data/lib/rjack-solr/base.rb +2 -2
  10. data/lib/rjack-solr/commons-cli-1.2.jar +0 -0
  11. data/lib/rjack-solr/config.rb +1 -1
  12. data/lib/rjack-solr/server.rb +1 -1
  13. data/lib/rjack-solr/solr-core-4.0.0.jar +0 -0
  14. data/lib/rjack-solr/solr-solrj-4.0.0.jar +0 -0
  15. data/pom.xml +19 -6
  16. data/test/test_solr.rb +7 -5
  17. data/webapp/META-INF/LICENSE.txt +0 -940
  18. data/webapp/META-INF/MANIFEST.MF +5 -5
  19. data/webapp/META-INF/NOTICE.txt +160 -93
  20. data/webapp/WEB-INF/web.xml +57 -43
  21. data/webapp/admin.html +140 -0
  22. data/webapp/css/chosen.css +392 -0
  23. data/webapp/css/styles/analysis.css +293 -0
  24. data/webapp/css/styles/cloud.css +331 -0
  25. data/webapp/css/styles/common.css +593 -0
  26. data/webapp/css/styles/cores.css +203 -0
  27. data/webapp/css/styles/dashboard.css +127 -0
  28. data/webapp/css/styles/dataimport.css +222 -0
  29. data/webapp/css/styles/index.css +195 -0
  30. data/webapp/css/styles/java-properties.css +33 -0
  31. data/webapp/css/styles/logging.css +323 -0
  32. data/webapp/css/styles/menu.css +272 -0
  33. data/webapp/css/styles/plugins.css +175 -0
  34. data/webapp/css/styles/query.css +137 -0
  35. data/webapp/css/styles/replication.css +494 -0
  36. data/webapp/css/styles/schema-browser.css +476 -0
  37. data/webapp/css/styles/threads.css +153 -0
  38. data/webapp/img/ZeroClipboard.swf +0 -0
  39. data/webapp/img/chosen-sprite.png +0 -0
  40. data/webapp/img/div.gif +0 -0
  41. data/webapp/{admin → img}/favicon.ico +0 -0
  42. data/webapp/img/filetypes/7z.png +0 -0
  43. data/webapp/img/filetypes/README +27 -0
  44. data/webapp/img/filetypes/ai.png +0 -0
  45. data/webapp/img/filetypes/aiff.png +0 -0
  46. data/webapp/img/filetypes/asc.png +0 -0
  47. data/webapp/img/filetypes/audio.png +0 -0
  48. data/webapp/img/filetypes/bin.png +0 -0
  49. data/webapp/img/filetypes/bz2.png +0 -0
  50. data/webapp/img/filetypes/c.png +0 -0
  51. data/webapp/img/filetypes/cfc.png +0 -0
  52. data/webapp/img/filetypes/cfm.png +0 -0
  53. data/webapp/img/filetypes/chm.png +0 -0
  54. data/webapp/img/filetypes/class.png +0 -0
  55. data/webapp/img/filetypes/conf.png +0 -0
  56. data/webapp/img/filetypes/cpp.png +0 -0
  57. data/webapp/img/filetypes/cs.png +0 -0
  58. data/webapp/img/filetypes/css.png +0 -0
  59. data/webapp/img/filetypes/csv.png +0 -0
  60. data/webapp/img/filetypes/deb.png +0 -0
  61. data/webapp/img/filetypes/divx.png +0 -0
  62. data/webapp/img/filetypes/doc.png +0 -0
  63. data/webapp/img/filetypes/dot.png +0 -0
  64. data/webapp/img/filetypes/eml.png +0 -0
  65. data/webapp/img/filetypes/enc.png +0 -0
  66. data/webapp/img/filetypes/file.png +0 -0
  67. data/webapp/img/filetypes/gif.png +0 -0
  68. data/webapp/img/filetypes/gz.png +0 -0
  69. data/webapp/img/filetypes/hlp.png +0 -0
  70. data/webapp/img/filetypes/htm.png +0 -0
  71. data/webapp/img/filetypes/html.png +0 -0
  72. data/webapp/img/filetypes/image.png +0 -0
  73. data/webapp/img/filetypes/iso.png +0 -0
  74. data/webapp/img/filetypes/jar.png +0 -0
  75. data/webapp/img/filetypes/java.png +0 -0
  76. data/webapp/img/filetypes/jpeg.png +0 -0
  77. data/webapp/img/filetypes/jpg.png +0 -0
  78. data/webapp/img/filetypes/js.png +0 -0
  79. data/webapp/img/filetypes/lua.png +0 -0
  80. data/webapp/img/filetypes/m.png +0 -0
  81. data/webapp/img/filetypes/mm.png +0 -0
  82. data/webapp/img/filetypes/mov.png +0 -0
  83. data/webapp/img/filetypes/mp3.png +0 -0
  84. data/webapp/img/filetypes/mpg.png +0 -0
  85. data/webapp/img/filetypes/odc.png +0 -0
  86. data/webapp/img/filetypes/odf.png +0 -0
  87. data/webapp/img/filetypes/odg.png +0 -0
  88. data/webapp/img/filetypes/odi.png +0 -0
  89. data/webapp/img/filetypes/odp.png +0 -0
  90. data/webapp/img/filetypes/ods.png +0 -0
  91. data/webapp/img/filetypes/odt.png +0 -0
  92. data/webapp/img/filetypes/ogg.png +0 -0
  93. data/webapp/img/filetypes/pdf.png +0 -0
  94. data/webapp/img/filetypes/pgp.png +0 -0
  95. data/webapp/img/filetypes/php.png +0 -0
  96. data/webapp/img/filetypes/pl.png +0 -0
  97. data/webapp/img/filetypes/png.png +0 -0
  98. data/webapp/img/filetypes/ppt.png +0 -0
  99. data/webapp/img/filetypes/ps.png +0 -0
  100. data/webapp/img/filetypes/py.png +0 -0
  101. data/webapp/img/filetypes/ram.png +0 -0
  102. data/webapp/img/filetypes/rar.png +0 -0
  103. data/webapp/img/filetypes/rb.png +0 -0
  104. data/webapp/img/filetypes/rm.png +0 -0
  105. data/webapp/img/filetypes/rpm.png +0 -0
  106. data/webapp/img/filetypes/rtf.png +0 -0
  107. data/webapp/img/filetypes/sig.png +0 -0
  108. data/webapp/img/filetypes/sql.png +0 -0
  109. data/webapp/img/filetypes/swf.png +0 -0
  110. data/webapp/img/filetypes/sxc.png +0 -0
  111. data/webapp/img/filetypes/sxd.png +0 -0
  112. data/webapp/img/filetypes/sxi.png +0 -0
  113. data/webapp/img/filetypes/sxw.png +0 -0
  114. data/webapp/img/filetypes/tar.png +0 -0
  115. data/webapp/img/filetypes/tex.png +0 -0
  116. data/webapp/img/filetypes/tgz.png +0 -0
  117. data/webapp/img/filetypes/txt.png +0 -0
  118. data/webapp/img/filetypes/vcf.png +0 -0
  119. data/webapp/img/filetypes/video.png +0 -0
  120. data/webapp/img/filetypes/vsd.png +0 -0
  121. data/webapp/img/filetypes/wav.png +0 -0
  122. data/webapp/img/filetypes/wma.png +0 -0
  123. data/webapp/img/filetypes/wmv.png +0 -0
  124. data/webapp/img/filetypes/xls.png +0 -0
  125. data/webapp/img/filetypes/xml.png +0 -0
  126. data/webapp/img/filetypes/xpi.png +0 -0
  127. data/webapp/img/filetypes/xvid.png +0 -0
  128. data/webapp/img/filetypes/zip.png +0 -0
  129. data/webapp/img/ico/arrow-000-small.png +0 -0
  130. data/webapp/img/ico/arrow-circle.png +0 -0
  131. data/webapp/img/ico/arrow-switch.png +0 -0
  132. data/webapp/img/ico/asterisk.png +0 -0
  133. data/webapp/img/ico/battery.png +0 -0
  134. data/webapp/img/ico/block-small.png +0 -0
  135. data/webapp/img/ico/block.png +0 -0
  136. data/webapp/img/ico/book-open-text.png +0 -0
  137. data/webapp/img/ico/box.png +0 -0
  138. data/webapp/img/ico/bug.png +0 -0
  139. data/webapp/img/ico/chart.png +0 -0
  140. data/webapp/img/ico/chevron-small-expand.png +0 -0
  141. data/webapp/img/ico/chevron-small.png +0 -0
  142. data/webapp/img/ico/clipboard-list.png +0 -0
  143. data/webapp/img/ico/clipboard-paste-document-text.png +0 -0
  144. data/webapp/img/ico/clipboard-paste.png +0 -0
  145. data/webapp/img/ico/clock-select-remain.png +0 -0
  146. data/webapp/img/ico/clock-select.png +0 -0
  147. data/webapp/img/ico/construction.png +0 -0
  148. data/webapp/img/ico/cross-0.png +0 -0
  149. data/webapp/img/ico/cross-1.png +0 -0
  150. data/webapp/img/ico/cross.png +0 -0
  151. data/webapp/img/ico/dashboard.png +0 -0
  152. data/webapp/img/ico/database.png +0 -0
  153. data/webapp/img/ico/databases.png +0 -0
  154. data/webapp/img/ico/disk-black.png +0 -0
  155. data/webapp/img/ico/document-convert.png +0 -0
  156. data/webapp/img/ico/document-import.png +0 -0
  157. data/webapp/img/ico/document-list.png +0 -0
  158. data/webapp/img/ico/document-text.png +0 -0
  159. data/webapp/img/ico/download-cloud.png +0 -0
  160. data/webapp/img/ico/exclamation-button.png +0 -0
  161. data/webapp/img/ico/eye.png +0 -0
  162. data/webapp/img/ico/folder-export.png +0 -0
  163. data/webapp/img/ico/folder-tree.png +0 -0
  164. data/webapp/img/ico/folder.png +0 -0
  165. data/webapp/img/ico/funnel-small.png +0 -0
  166. data/webapp/img/ico/funnel.png +0 -0
  167. data/webapp/img/ico/gear.png +0 -0
  168. data/webapp/img/ico/globe-network.png +0 -0
  169. data/webapp/img/ico/globe.png +0 -0
  170. data/webapp/img/ico/hammer-screwdriver.png +0 -0
  171. data/webapp/img/ico/hand.png +0 -0
  172. data/webapp/img/ico/highlighter-text.png +0 -0
  173. data/webapp/img/ico/hourglass--exclamation.png +0 -0
  174. data/webapp/img/ico/hourglass.png +0 -0
  175. data/webapp/img/ico/inbox-document-text.png +0 -0
  176. data/webapp/img/ico/information-button.png +0 -0
  177. data/webapp/img/ico/information-small.png +0 -0
  178. data/webapp/img/ico/information-white.png +0 -0
  179. data/webapp/img/ico/information.png +0 -0
  180. data/webapp/img/ico/jar.png +0 -0
  181. data/webapp/img/ico/magnifier.png +0 -0
  182. data/webapp/img/ico/mail.png +0 -0
  183. data/webapp/img/ico/memory.png +0 -0
  184. data/webapp/img/ico/molecule.png +0 -0
  185. data/webapp/img/ico/network-cloud.png +0 -0
  186. data/webapp/img/ico/network-status-away.png +0 -0
  187. data/webapp/img/ico/network-status-busy.png +0 -0
  188. data/webapp/img/ico/network-status-offline.png +0 -0
  189. data/webapp/img/ico/network-status.png +0 -0
  190. data/webapp/img/ico/network.png +0 -0
  191. data/webapp/img/ico/node-design.png +0 -0
  192. data/webapp/img/ico/node-master.png +0 -0
  193. data/webapp/img/ico/node-select.png +0 -0
  194. data/webapp/img/ico/node-slave.png +0 -0
  195. data/webapp/img/ico/node.png +0 -0
  196. data/webapp/img/ico/pencil-small.png +0 -0
  197. data/webapp/img/ico/plus-button.png +0 -0
  198. data/webapp/img/ico/processor.png +0 -0
  199. data/webapp/img/ico/prohibition.png +0 -0
  200. data/webapp/img/ico/property.png +0 -0
  201. data/webapp/img/ico/question-small-white.png +0 -0
  202. data/webapp/img/ico/question-white.png +0 -0
  203. data/webapp/img/ico/question.png +0 -0
  204. data/webapp/img/ico/receipt-invoice.png +0 -0
  205. data/webapp/img/ico/receipt.png +0 -0
  206. data/webapp/img/ico/script-code.png +0 -0
  207. data/webapp/img/ico/server-cast.png +0 -0
  208. data/webapp/img/ico/server.png +0 -0
  209. data/webapp/img/ico/sitemap.png +0 -0
  210. data/webapp/img/ico/slash.png +0 -0
  211. data/webapp/img/ico/status-away.png +0 -0
  212. data/webapp/img/ico/status-busy.png +0 -0
  213. data/webapp/img/ico/status-offline.png +0 -0
  214. data/webapp/img/ico/status.png +0 -0
  215. data/webapp/img/ico/system-monitor--exclamation.png +0 -0
  216. data/webapp/img/ico/system-monitor.png +0 -0
  217. data/webapp/img/ico/table.png +0 -0
  218. data/webapp/img/ico/terminal.png +0 -0
  219. data/webapp/img/ico/tick-circle.png +0 -0
  220. data/webapp/img/ico/tick-red.png +0 -0
  221. data/webapp/img/ico/tick.png +0 -0
  222. data/webapp/img/ico/toggle-small-expand.png +0 -0
  223. data/webapp/img/ico/toggle-small.png +0 -0
  224. data/webapp/img/ico/toolbox.png +0 -0
  225. data/webapp/img/ico/ui-accordion.png +0 -0
  226. data/webapp/img/ico/ui-address-bar.png +0 -0
  227. data/webapp/img/ico/ui-check-box-uncheck.png +0 -0
  228. data/webapp/img/ico/ui-check-box.png +0 -0
  229. data/webapp/img/ico/ui-radio-button-uncheck.png +0 -0
  230. data/webapp/img/ico/ui-radio-button.png +0 -0
  231. data/webapp/img/ico/ui-text-field-select.png +0 -0
  232. data/webapp/img/ico/users.png +0 -0
  233. data/webapp/img/ico/wooden-box.png +0 -0
  234. data/webapp/img/ico/zone.png +0 -0
  235. data/webapp/img/loader-light.gif +0 -0
  236. data/webapp/img/loader.gif +0 -0
  237. data/webapp/img/lucene-ico.png +0 -0
  238. data/webapp/img/solr-ico.png +0 -0
  239. data/webapp/{admin/solr_small.png → img/solr.png} +0 -0
  240. data/webapp/img/tree.png +0 -0
  241. data/webapp/js/lib/ZeroClipboard.js +317 -0
  242. data/webapp/js/lib/chosen.js +953 -0
  243. data/webapp/{admin/get-properties.jsp → js/lib/console.js} +13 -10
  244. data/webapp/js/lib/d3.js +9342 -0
  245. data/webapp/js/lib/highlight.js +1 -0
  246. data/webapp/{admin/jquery-1.4.3.min.js → js/lib/jquery-1.7.2.min.js} +0 -0
  247. data/webapp/js/lib/jquery.blockUI.js +499 -0
  248. data/webapp/js/lib/jquery.cookie.js +47 -0
  249. data/webapp/js/lib/jquery.form.js +782 -0
  250. data/webapp/js/lib/jquery.jstree.js +3510 -0
  251. data/webapp/js/lib/jquery.sammy.js +1856 -0
  252. data/webapp/js/lib/jquery.sparkline.js +1271 -0
  253. data/webapp/js/lib/jquery.timeago.js +165 -0
  254. data/webapp/js/lib/linker.js +48 -0
  255. data/webapp/js/lib/order.js +189 -0
  256. data/webapp/js/main.js +57 -0
  257. data/webapp/js/require.js +11319 -0
  258. data/webapp/js/scripts/analysis.js +549 -0
  259. data/webapp/js/scripts/app.js +368 -0
  260. data/webapp/js/scripts/cloud.js +719 -0
  261. data/webapp/js/scripts/cores.js +540 -0
  262. data/webapp/js/scripts/dashboard.js +540 -0
  263. data/webapp/js/scripts/dataimport.js +567 -0
  264. data/webapp/js/scripts/file.js +56 -0
  265. data/webapp/js/scripts/index.js +344 -0
  266. data/webapp/js/scripts/java-properties.js +107 -0
  267. data/webapp/js/scripts/logging.js +519 -0
  268. data/webapp/js/scripts/ping.js +72 -0
  269. data/webapp/js/scripts/plugins.js +426 -0
  270. data/webapp/js/scripts/query.js +170 -0
  271. data/webapp/js/scripts/replication.js +557 -0
  272. data/webapp/js/scripts/schema-browser.js +1206 -0
  273. data/webapp/js/scripts/threads.js +159 -0
  274. data/webapp/tpl/analysis.html +83 -0
  275. data/webapp/tpl/cloud.html +54 -0
  276. data/webapp/tpl/cores.html +215 -0
  277. data/webapp/tpl/dashboard.html +164 -0
  278. data/webapp/tpl/dataimport.html +123 -0
  279. data/webapp/tpl/index.html +250 -0
  280. data/webapp/tpl/logging.html +23 -0
  281. data/webapp/tpl/plugins.html +39 -0
  282. data/webapp/tpl/query.html +318 -0
  283. data/webapp/tpl/replication.html +207 -0
  284. data/webapp/tpl/schema-browser.html +178 -0
  285. data/webapp/tpl/threads.html +56 -0
  286. metadata +307 -40
  287. data/lib/rjack-solr/solr-core-3.6.2.jar +0 -0
  288. data/lib/rjack-solr/solr-solrj-3.6.2.jar +0 -0
  289. data/webapp/admin/_info.jsp +0 -120
  290. data/webapp/admin/action.jsp +0 -94
  291. data/webapp/admin/analysis.jsp +0 -496
  292. data/webapp/admin/analysis.xsl +0 -179
  293. data/webapp/admin/dataimport.jsp +0 -53
  294. data/webapp/admin/debug.jsp +0 -103
  295. data/webapp/admin/distributiondump.jsp +0 -160
  296. data/webapp/admin/form.jsp +0 -152
  297. data/webapp/admin/get-file.jsp +0 -72
  298. data/webapp/admin/header.jsp +0 -44
  299. data/webapp/admin/index.jsp +0 -162
  300. data/webapp/admin/meta.xsl +0 -34
  301. data/webapp/admin/ping.jsp +0 -52
  302. data/webapp/admin/ping.xsl +0 -71
  303. data/webapp/admin/raw-schema.jsp +0 -38
  304. data/webapp/admin/registry.jsp +0 -107
  305. data/webapp/admin/registry.xsl +0 -321
  306. data/webapp/admin/replication/header.jsp +0 -89
  307. data/webapp/admin/replication/index.jsp +0 -378
  308. data/webapp/admin/schema.jsp +0 -690
  309. data/webapp/admin/solr-admin.css +0 -215
  310. data/webapp/admin/stats.jsp +0 -92
  311. data/webapp/admin/stats.xsl +0 -220
  312. data/webapp/admin/tabular.xsl +0 -141
  313. data/webapp/admin/threaddump.jsp +0 -110
  314. data/webapp/admin/threaddump.xsl +0 -103
  315. data/webapp/index.jsp +0 -49
@@ -0,0 +1 @@
1
+ var hljs=new function(){var p={};var a={};function n(c){return c.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function k(s,r){if(!s){return false}for(var c=0;c<s.length;c++){if(s[c]==r){return true}}return false}function e(s,r,c){var t="m"+(s.cI?"i":"")+(c?"g":"");return new RegExp(r,t)}function j(r){for(var c=0;c<r.childNodes.length;c++){node=r.childNodes[c];if(node.nodeName=="CODE"){return node}if(!(node.nodeType==3&&node.nodeValue.match(/\s+/))){return null}}}function h(u,t){var s="";for(var r=0;r<u.childNodes.length;r++){if(u.childNodes[r].nodeType==3){var c=u.childNodes[r].nodeValue;if(t){c=c.replace(/\n/g,"")}s+=c}else{if(u.childNodes[r].nodeName=="BR"){s+="\n"}else{s+=h(u.childNodes[r])}}}s=s.replace(/\r/g,"\n");return s}function b(t){var r=t.className.split(/\s+/);r=r.concat(t.parentNode.className.split(/\s+/));for(var c=0;c<r.length;c++){var s=r[c].replace(/^language-/,"");if(p[s]||s=="no-highlight"){return s}}}function d(c){var r=[];(function(t,u){for(var s=0;s<t.childNodes.length;s++){if(t.childNodes[s].nodeType==3){u+=t.childNodes[s].nodeValue.length}else{if(t.childNodes[s].nodeName=="BR"){u+=1}else{r.push({event:"start",offset:u,node:t.childNodes[s]});u=arguments.callee(t.childNodes[s],u);r.push({event:"stop",offset:u,node:t.childNodes[s]})}}}return u})(c,0);return r}function m(z,A,y){var s=0;var x="";var u=[];function v(){if(z.length&&A.length){if(z[0].offset!=A[0].offset){return(z[0].offset<A[0].offset)?z:A}else{return(z[0].event=="start"&&A[0].event=="stop")?A:z}}else{return z.length?z:A}}function t(E){var F="<"+E.nodeName.toLowerCase();for(var C=0;C<E.attributes.length;C++){var D=E.attributes[C];F+=" "+D.nodeName.toLowerCase();if(D.nodeValue!=undefined){F+='="'+n(D.nodeValue)+'"'}}return F+">"}function B(C){return"</"+C.nodeName.toLowerCase()+">"}while(z.length||A.length){var w=v().splice(0,1)[0];x+=n(y.substr(s,w.offset-s));s=w.offset;if(w.event=="start"){x+=t(w.node);u.push(w.node)}else{if(w.event=="stop"){var r=u.length;do{r--;var c=u[r];x+=B(c)}while(c!=w.node);u.splice(r,1);while(r<u.length){x+=t(u[r]);r++}}}}x+=y.substr(s);return x}function g(K,E){function A(r,N){for(var M=0;M<N.sm.length;M++){if(N.sm[M].bR.test(r)){return N.sm[M]}}return null}function x(M,r){if(D[M].e&&D[M].eR.test(r)){return 1}if(D[M].eW){var N=x(M-1,r);return N?N+1:0}return 0}function y(r,M){return M.iR&&M.iR.test(r)}function B(P,O){var N=[];for(var M=0;M<P.sm.length;M++){N.push(P.sm[M].b)}var r=D.length-1;do{if(D[r].e){N.push(D[r].e)}r--}while(D[r+1].eW);if(P.i){N.push(P.i)}return e(O,"("+N.join("|")+")",true)}function t(N,M){var O=D[D.length-1];if(!O.t){O.t=B(O,I)}O.t.lastIndex=M;var r=O.t.exec(N);if(r){return[N.substr(M,r.index-M),r[0],false]}else{return[N.substr(M),"",true]}}function c(P,r){var M=I.cI?r[0].toLowerCase():r[0];for(var O in P.keywordGroups){if(!P.keywordGroups.hasOwnProperty(O)){continue}var N=P.keywordGroups[O].hasOwnProperty(M);if(N){return[O,N]}}return false}function G(N,Q){if(!Q.k||!Q.l){return n(N)}if(!Q.lR){var P="("+Q.l.join("|")+")";Q.lR=e(I,P,true)}var O="";var R=0;Q.lR.lastIndex=0;var M=Q.lR.exec(N);while(M){O+=n(N.substr(R,M.index-R));var r=c(Q,M);if(r){u+=r[1];O+='<span class="'+r[0]+'">'+n(M[0])+"</span>"}else{O+=n(M[0])}R=Q.lR.lastIndex;M=Q.lR.exec(N)}O+=n(N.substr(R,N.length-R));return O}function L(r,N){if(N.subLanguage&&a[N.subLanguage]){var M=g(N.subLanguage,r);u+=M.keyword_count;C+=M.r;return M.value}else{return G(r,N)}}function J(N,r){var M=N.nM?"":'<span class="'+N.displayClassName+'">';if(N.rB){s+=M;N.buffer=""}else{if(N.eB){s+=n(r)+M;N.buffer=""}else{s+=M;N.buffer=r}}D[D.length]=N}function F(M,O,R){var P=D[D.length-1];if(R){s+=L(P.buffer+M,P);return false}var S=A(O,P);if(S){s+=L(P.buffer+M,P);J(S,O);C+=S.r;return S.rB}var r=x(D.length-1,O);if(r){var T=P.nM?"":"</span>";if(P.rE){s+=L(P.buffer+M,P)+T}else{if(P.eE){s+=L(P.buffer+M,P)+T+n(O)}else{s+=L(P.buffer+M+O,P)+T}}while(r>1){T=D[D.length-2].nM?"":"</span>";s+=T;r--;D.length--}var Q=D[D.length-1];D.length--;D[D.length-1].buffer="";if(Q.starts){for(var N=0;N<I.m.length;N++){if(I.m[N].cN==Q.starts){J(I.m[N],"");break}}}return P.rE}if(y(O,P)){throw"Illegal"}}var I=p[K];var D=[I.dM];var C=0;var u=0;var s="";try{var w=0;I.dM.buffer="";do{var z=t(E,w);var v=F(z[0],z[1],z[2]);w+=z[0].length;if(!v){w+=z[1].length}}while(!z[2]);if(D.length>1){throw"Illegal"}return{language:K,r:C,keyword_count:u,value:s}}catch(H){if(H=="Illegal"){return{language:null,r:0,keyword_count:0,value:n(E)}}else{throw H}}}function i(){function r(y,x){if(y.compiled){return}if(y.b){y.bR=e(x,"^"+y.b)}if(y.e){y.eR=e(x,"^"+y.e)}if(y.i){y.iR=e(x,"^(?:"+y.i+")")}if(y.r==undefined){y.r=1}if(!y.displayClassName){y.displayClassName=y.cN}if(!y.cN){y.nM=true}for(var w in y.k){if(!y.k.hasOwnProperty(w)){continue}if(y.k[w] instanceof Object){y.keywordGroups=y.k}else{y.keywordGroups={keyword:y.k}}break}y.sm=[];if(y.c){for(var v=0;v<y.c.length;v++){if(y.c[v] instanceof Object){y.sm.push(y.c[v])}else{for(var u=0;u<x.m.length;u++){if(x.m[u].cN==y.c[v]){y.sm.push(x.m[u])}}}}}y.compiled=true;for(var v=0;v<y.sm.length;v++){r(y.sm[v],x)}}for(var t in p){if(!p.hasOwnProperty(t)){continue}var c=[p[t].dM].concat(p[t].m);for(var s=0;s<c.length;s++){r(c[s],p[t])}}}function f(){if(f.called){return}f.called=true;i();a=p}function q(v,A,r){f();var C=h(v,r);var t=b(v);if(t=="no-highlight"){return}if(t){var y=g(t,C)}else{var y={language:"",keyword_count:0,r:0,value:n(C)};var z=y;for(var B in a){if(!a.hasOwnProperty(B)){continue}var w=g(B,C);if(w.keyword_count+w.r>z.keyword_count+z.r){z=w}if(w.keyword_count+w.r>y.keyword_count+y.r){z=y;y=w}}}var u=v.className;if(!u.match(y.language)){u=u?(u+" "+y.language):y.language}var c=d(v);if(c.length){var s=document.createElement("pre");s.innerHTML=y.value;y.value=m(c,d(s),C)}if(A){y.value=y.value.replace(/^((<[^>]+>|\t)+)/gm,function(D,G,F,E){return G.replace(/\t/g,A)})}if(r){y.value=y.value.replace(/\n/g,"<br>")}if(/MSIE [678]/.test(navigator.userAgent)&&v.tagName=="CODE"&&v.parentNode.tagName=="PRE"){var s=v.parentNode;var x=document.createElement("div");x.innerHTML="<pre><code>"+y.value+"</code></pre>";v=x.firstChild.firstChild;x.firstChild.cN=s.cN;s.parentNode.replaceChild(x.firstChild,s)}else{v.innerHTML=y.value}v.className=u;v.dataset={};v.dataset.result={language:y.language,kw:y.keyword_count,re:y.r};if(z&&z.language){v.dataset.second_best={language:z.language,kw:z.keyword_count,re:z.r}}}function l(){if(l.called){return}l.called=true;f();if(arguments.length){for(var c=0;c<arguments.length;c++){if(p[arguments[c]]){a[arguments[c]]=p[arguments[c]]}}}var s=document.getElementsByTagName("pre");for(var c=0;c<s.length;c++){var r=j(s[c]);if(r){q(r,hljs.tabReplace)}}}function o(){var c=arguments;var r=function(){l.apply(null,c)};if(window.addEventListener){window.addEventListener("DOMContentLoaded",r,false);window.addEventListener("load",r,false)}else{if(window.attachEvent){window.attachEvent("onload",r)}else{window.onload=r}}}this.LANGUAGES=p;this.initHighlightingOnLoad=o;this.highlightBlock=q;this.initHighlighting=l;this.IMR="\\b|\\B";this.IR="[a-zA-Z][a-zA-Z0-9_]*";this.UIR="[a-zA-Z_][a-zA-Z0-9_]*";this.NR="\\b\\d+(\\.\\d+)?";this.CNR="\\b(0x[A-Za-z0-9]+|\\d+(\\.\\d+)?)";this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:["escape"],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:["escape"],r:0};this.BE={cN:"escape",b:"\\\\.",e:this.IMR,nM:true,r:0};this.CLCM={cN:"comment",b:"//",e:"$",r:0};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NUMBER_MODE={cN:"number",b:this.NR,e:this.IMR,r:0};this.CNM={cN:"number",b:this.CNR,e:this.IMR,r:0};this.inherit=function(c,t){var s={};for(var r in c){s[r]=c[r]}if(t){for(var r in t){s[r]=t[r]}}return s}}();var initHighlightingOnLoad=hljs.initHighlightingOnLoad;(function(){var d="[A-Za-z0-9\\._:-]+";var k={cN:"pi",b:"<\\?",e:"\\?>",r:10};var i={cN:"doctype",b:"<!DOCTYPE",e:">",r:10};var j={cN:"comment",b:"<!--",e:"-->"};var g={cN:"tag",b:"</?",e:"/?>",c:["title","tag_internal"]};var e={cN:"title",b:d,e:hljs.IMR};var b={cN:"tag_internal",b:hljs.IMR,eW:true,nM:true,c:["attribute","value_container"],r:0};var f={cN:"attribute",b:d,e:hljs.IMR,r:0};var a={cN:"value_container",b:'="',rB:true,e:'"',nM:true,c:[{cN:"value",b:'"',eW:true}]};var c={cN:"value_container",b:"='",rB:true,e:"'",nM:true,c:[{cN:"value",b:"'",eW:true}]};hljs.LANGUAGES.xml={dM:{c:["pi","doctype","comment","cdata","tag"]},cI:true,m:[{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},k,i,j,g,hljs.inherit(e,{r:1.75}),b,f,a,c]};var h={code:1,kbd:1,font:1,noscript:1,style:1,img:1,title:1,menu:1,tt:1,tr:1,param:1,li:1,tfoot:1,th:1,input:1,td:1,dl:1,blockquote:1,fieldset:1,big:1,dd:1,abbr:1,optgroup:1,dt:1,button:1,isindex:1,p:1,small:1,div:1,dir:1,em:1,frame:1,meta:1,sub:1,bdo:1,label:1,acronym:1,sup:1,body:1,basefont:1,base:1,br:1,address:1,strong:1,legend:1,ol:1,script:1,caption:1,s:1,col:1,h2:1,h3:1,h1:1,h6:1,h4:1,h5:1,table:1,select:1,noframes:1,span:1,area:1,dfn:1,strike:1,cite:1,thead:1,head:1,option:1,form:1,hr:1,"var":1,link:1,b:1,colgroup:1,ul:1,applet:1,del:1,iframe:1,pre:1,frameset:1,ins:1,tbody:1,html:1,samp:1,map:1,object:1,a:1,xmlns:1,center:1,textarea:1,i:1,q:1,u:1,section:1,nav:1,article:1,aside:1,hgroup:1,header:1,footer:1,figure:1,figurecaption:1,time:1,mark:1,wbr:1,embed:1,video:1,audio:1,source:1,canvas:1,datalist:1,keygen:1,output:1,progress:1,meter:1,details:1,summary:1,command:1};hljs.LANGUAGES.html={dM:{c:["comment","pi","doctype","vbscript","tag"]},cI:true,m:[{cN:"tag",b:"<style",e:">",l:[hljs.IR],k:{style:1},c:["tag_internal"],starts:"css"},{cN:"tag",b:"<script",e:">",l:[hljs.IR],k:{script:1},c:["tag_internal"],starts:"javascript"},{cN:"css",e:"</style>",rE:true,subLanguage:"css"},{cN:"javascript",e:"<\/script>",rE:true,subLanguage:"javascript"},{cN:"vbscript",b:"<%",e:"%>",subLanguage:"vbscript"},j,k,i,hljs.inherit(g),hljs.inherit(e,{l:[hljs.IR],k:h}),hljs.inherit(b),f,a,c,{cN:"value_container",b:"=",e:hljs.IMR,c:[{cN:"unquoted_value",displayClassName:"value",b:"[^\\s/>]+",e:hljs.IMR}]}]}})();
@@ -0,0 +1,499 @@
1
+ /*!
2
+ * jQuery blockUI plugin
3
+ * Version 2.39 (23-MAY-2011)
4
+ * @requires jQuery v1.2.3 or later
5
+ *
6
+ * Examples at: http://malsup.com/jquery/block/
7
+ * Copyright (c) 2007-2010 M. Alsup
8
+ * Dual licensed under the MIT and GPL licenses:
9
+ * http://www.opensource.org/licenses/mit-license.php
10
+ * http://www.gnu.org/licenses/gpl.html
11
+ *
12
+ * Thanks to Amir-Hossein Sobhi for some excellent contributions!
13
+ */
14
+
15
+ ;(function($) {
16
+
17
+ if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
18
+ alert('blockUI requires jQuery v1.2.3 or later! You are using v' + $.fn.jquery);
19
+ return;
20
+ }
21
+
22
+ $.fn._fadeIn = $.fn.fadeIn;
23
+
24
+ var noOp = function() {};
25
+
26
+ // this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
27
+ // retarded userAgent strings on Vista)
28
+ var mode = document.documentMode || 0;
29
+ var setExpr = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8);
30
+ var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !mode;
31
+
32
+ // global $ methods for blocking/unblocking the entire page
33
+ $.blockUI = function(opts) { install(window, opts); };
34
+ $.unblockUI = function(opts) { remove(window, opts); };
35
+
36
+ // convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
37
+ $.growlUI = function(title, message, timeout, onClose) {
38
+ var $m = $('<div class="growlUI"></div>');
39
+ if (title) $m.append('<h1>'+title+'</h1>');
40
+ if (message) $m.append('<h2>'+message+'</h2>');
41
+ if (timeout == undefined) timeout = 3000;
42
+ $.blockUI({
43
+ message: $m, fadeIn: 700, fadeOut: 1000, centerY: false,
44
+ timeout: timeout, showOverlay: false,
45
+ onUnblock: onClose,
46
+ css: $.blockUI.defaults.growlCSS
47
+ });
48
+ };
49
+
50
+ // plugin method for blocking element content
51
+ $.fn.block = function(opts) {
52
+ return this.unblock({ fadeOut: 0 }).each(function() {
53
+ if ($.css(this,'position') == 'static')
54
+ this.style.position = 'relative';
55
+ if ($.browser.msie)
56
+ this.style.zoom = 1; // force 'hasLayout'
57
+ install(this, opts);
58
+ });
59
+ };
60
+
61
+ // plugin method for unblocking element content
62
+ $.fn.unblock = function(opts) {
63
+ return this.each(function() {
64
+ remove(this, opts);
65
+ });
66
+ };
67
+
68
+ $.blockUI.version = 2.39; // 2nd generation blocking at no extra cost!
69
+
70
+ // override these in your code to change the default behavior and style
71
+ $.blockUI.defaults = {
72
+ // message displayed when blocking (use null for no message)
73
+ message: '<h1>Please wait...</h1>',
74
+
75
+ title: null, // title string; only used when theme == true
76
+ draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded)
77
+
78
+ theme: false, // set to true to use with jQuery UI themes
79
+
80
+ // styles for the message when blocking; if you wish to disable
81
+ // these and use an external stylesheet then do this in your code:
82
+ // $.blockUI.defaults.css = {};
83
+ css: {
84
+ padding: 0,
85
+ margin: 0,
86
+ width: '30%',
87
+ top: '40%',
88
+ left: '35%',
89
+ textAlign: 'center',
90
+ color: '#000',
91
+ border: '3px solid #aaa',
92
+ backgroundColor:'#fff',
93
+ cursor: 'wait'
94
+ },
95
+
96
+ // minimal style set used when themes are used
97
+ themedCSS: {
98
+ width: '30%',
99
+ top: '40%',
100
+ left: '35%'
101
+ },
102
+
103
+ // styles for the overlay
104
+ overlayCSS: {
105
+ backgroundColor: '#000',
106
+ opacity: 0.6,
107
+ cursor: 'wait'
108
+ },
109
+
110
+ // styles applied when using $.growlUI
111
+ growlCSS: {
112
+ width: '350px',
113
+ top: '10px',
114
+ left: '',
115
+ right: '10px',
116
+ border: 'none',
117
+ padding: '5px',
118
+ opacity: 0.6,
119
+ cursor: 'default',
120
+ color: '#fff',
121
+ backgroundColor: '#000',
122
+ '-webkit-border-radius': '10px',
123
+ '-moz-border-radius': '10px',
124
+ 'border-radius': '10px'
125
+ },
126
+
127
+ // IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
128
+ // (hat tip to Jorge H. N. de Vasconcelos)
129
+ iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
130
+
131
+ // force usage of iframe in non-IE browsers (handy for blocking applets)
132
+ forceIframe: false,
133
+
134
+ // z-index for the blocking overlay
135
+ baseZ: 1000,
136
+
137
+ // set these to true to have the message automatically centered
138
+ centerX: true, // <-- only effects element blocking (page block controlled via css above)
139
+ centerY: true,
140
+
141
+ // allow body element to be stetched in ie6; this makes blocking look better
142
+ // on "short" pages. disable if you wish to prevent changes to the body height
143
+ allowBodyStretch: true,
144
+
145
+ // enable if you want key and mouse events to be disabled for content that is blocked
146
+ bindEvents: true,
147
+
148
+ // be default blockUI will supress tab navigation from leaving blocking content
149
+ // (if bindEvents is true)
150
+ constrainTabKey: true,
151
+
152
+ // fadeIn time in millis; set to 0 to disable fadeIn on block
153
+ fadeIn: 200,
154
+
155
+ // fadeOut time in millis; set to 0 to disable fadeOut on unblock
156
+ fadeOut: 400,
157
+
158
+ // time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
159
+ timeout: 0,
160
+
161
+ // disable if you don't want to show the overlay
162
+ showOverlay: true,
163
+
164
+ // if true, focus will be placed in the first available input field when
165
+ // page blocking
166
+ focusInput: true,
167
+
168
+ // suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
169
+ applyPlatformOpacityRules: true,
170
+
171
+ // callback method invoked when fadeIn has completed and blocking message is visible
172
+ onBlock: null,
173
+
174
+ // callback method invoked when unblocking has completed; the callback is
175
+ // passed the element that has been unblocked (which is the window object for page
176
+ // blocks) and the options that were passed to the unblock call:
177
+ // onUnblock(element, options)
178
+ onUnblock: null,
179
+
180
+ // don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
181
+ quirksmodeOffsetHack: 4,
182
+
183
+ // class name of the message block
184
+ blockMsgClass: 'blockMsg'
185
+ };
186
+
187
+ // private data and functions follow...
188
+
189
+ var pageBlock = null;
190
+ var pageBlockEls = [];
191
+
192
+ function install(el, opts) {
193
+ var full = (el == window);
194
+ var msg = opts && opts.message !== undefined ? opts.message : undefined;
195
+ opts = $.extend({}, $.blockUI.defaults, opts || {});
196
+ opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
197
+ var css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
198
+ var themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
199
+ msg = msg === undefined ? opts.message : msg;
200
+
201
+ // remove the current block (if there is one)
202
+ if (full && pageBlock)
203
+ remove(window, {fadeOut:0});
204
+
205
+ // if an existing element is being used as the blocking content then we capture
206
+ // its current place in the DOM (and current display style) so we can restore
207
+ // it when we unblock
208
+ if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
209
+ var node = msg.jquery ? msg[0] : msg;
210
+ var data = {};
211
+ $(el).data('blockUI.history', data);
212
+ data.el = node;
213
+ data.parent = node.parentNode;
214
+ data.display = node.style.display;
215
+ data.position = node.style.position;
216
+ if (data.parent)
217
+ data.parent.removeChild(node);
218
+ }
219
+
220
+ $(el).data('blockUI.onUnblock', opts.onUnblock);
221
+ var z = opts.baseZ;
222
+
223
+ // blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
224
+ // layer1 is the iframe layer which is used to supress bleed through of underlying content
225
+ // layer2 is the overlay layer which has opacity and a wait cursor (by default)
226
+ // layer3 is the message content that is displayed while blocking
227
+
228
+ var lyr1 = ($.browser.msie || opts.forceIframe)
229
+ ? $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>')
230
+ : $('<div class="blockUI" style="display:none"></div>');
231
+
232
+ var lyr2 = opts.theme
233
+ ? $('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+ (z++) +';display:none"></div>')
234
+ : $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
235
+
236
+ var lyr3, s;
237
+ if (opts.theme && full) {
238
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">' +
239
+ '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>' +
240
+ '<div class="ui-widget-content ui-dialog-content"></div>' +
241
+ '</div>';
242
+ }
243
+ else if (opts.theme) {
244
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">' +
245
+ '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>' +
246
+ '<div class="ui-widget-content ui-dialog-content"></div>' +
247
+ '</div>';
248
+ }
249
+ else if (full) {
250
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';
251
+ }
252
+ else {
253
+ s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';
254
+ }
255
+ lyr3 = $(s);
256
+
257
+ // if we have a message, style it
258
+ if (msg) {
259
+ if (opts.theme) {
260
+ lyr3.css(themedCSS);
261
+ lyr3.addClass('ui-widget-content');
262
+ }
263
+ else
264
+ lyr3.css(css);
265
+ }
266
+
267
+ // style the overlay
268
+ if (!opts.theme && (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform))))
269
+ lyr2.css(opts.overlayCSS);
270
+ lyr2.css('position', full ? 'fixed' : 'absolute');
271
+
272
+ // make iframe layer transparent in IE
273
+ if ($.browser.msie || opts.forceIframe)
274
+ lyr1.css('opacity',0.0);
275
+
276
+ //$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
277
+ var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
278
+ $.each(layers, function() {
279
+ this.appendTo($par);
280
+ });
281
+
282
+ if (opts.theme && opts.draggable && $.fn.draggable) {
283
+ lyr3.draggable({
284
+ handle: '.ui-dialog-titlebar',
285
+ cancel: 'li'
286
+ });
287
+ }
288
+
289
+ // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
290
+ var expr = setExpr && (!$.boxModel || $('object,embed', full ? null : el).length > 0);
291
+ if (ie6 || expr) {
292
+ // give body 100% height
293
+ if (full && opts.allowBodyStretch && $.boxModel)
294
+ $('html,body').css('height','100%');
295
+
296
+ // fix ie6 issue when blocked element has a border width
297
+ if ((ie6 || !$.boxModel) && !full) {
298
+ var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
299
+ var fixT = t ? '(0 - '+t+')' : 0;
300
+ var fixL = l ? '(0 - '+l+')' : 0;
301
+ }
302
+
303
+ // simulate fixed position
304
+ $.each([lyr1,lyr2,lyr3], function(i,o) {
305
+ var s = o[0].style;
306
+ s.position = 'absolute';
307
+ if (i < 2) {
308
+ full ? s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"')
309
+ : s.setExpression('height','this.parentNode.offsetHeight + "px"');
310
+ full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')
311
+ : s.setExpression('width','this.parentNode.offsetWidth + "px"');
312
+ if (fixL) s.setExpression('left', fixL);
313
+ if (fixT) s.setExpression('top', fixT);
314
+ }
315
+ else if (opts.centerY) {
316
+ if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
317
+ s.marginTop = 0;
318
+ }
319
+ else if (!opts.centerY && full) {
320
+ var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0;
321
+ var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
322
+ s.setExpression('top',expression);
323
+ }
324
+ });
325
+ }
326
+
327
+ // show the message
328
+ if (msg) {
329
+ if (opts.theme)
330
+ lyr3.find('.ui-widget-content').append(msg);
331
+ else
332
+ lyr3.append(msg);
333
+ if (msg.jquery || msg.nodeType)
334
+ $(msg).show();
335
+ }
336
+
337
+ if (($.browser.msie || opts.forceIframe) && opts.showOverlay)
338
+ lyr1.show(); // opacity is zero
339
+ if (opts.fadeIn) {
340
+ var cb = opts.onBlock ? opts.onBlock : noOp;
341
+ var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
342
+ var cb2 = msg ? cb : noOp;
343
+ if (opts.showOverlay)
344
+ lyr2._fadeIn(opts.fadeIn, cb1);
345
+ if (msg)
346
+ lyr3._fadeIn(opts.fadeIn, cb2);
347
+ }
348
+ else {
349
+ if (opts.showOverlay)
350
+ lyr2.show();
351
+ if (msg)
352
+ lyr3.show();
353
+ if (opts.onBlock)
354
+ opts.onBlock();
355
+ }
356
+
357
+ // bind key and mouse events
358
+ bind(1, el, opts);
359
+
360
+ if (full) {
361
+ pageBlock = lyr3[0];
362
+ pageBlockEls = $(':input:enabled:visible',pageBlock);
363
+ if (opts.focusInput)
364
+ setTimeout(focus, 20);
365
+ }
366
+ else
367
+ center(lyr3[0], opts.centerX, opts.centerY);
368
+
369
+ if (opts.timeout) {
370
+ // auto-unblock
371
+ var to = setTimeout(function() {
372
+ full ? $.unblockUI(opts) : $(el).unblock(opts);
373
+ }, opts.timeout);
374
+ $(el).data('blockUI.timeout', to);
375
+ }
376
+ };
377
+
378
+ // remove the block
379
+ function remove(el, opts) {
380
+ var full = (el == window);
381
+ var $el = $(el);
382
+ var data = $el.data('blockUI.history');
383
+ var to = $el.data('blockUI.timeout');
384
+ if (to) {
385
+ clearTimeout(to);
386
+ $el.removeData('blockUI.timeout');
387
+ }
388
+ opts = $.extend({}, $.blockUI.defaults, opts || {});
389
+ bind(0, el, opts); // unbind events
390
+
391
+ if (opts.onUnblock === null) {
392
+ opts.onUnblock = $el.data('blockUI.onUnblock');
393
+ $el.removeData('blockUI.onUnblock');
394
+ }
395
+
396
+ var els;
397
+ if (full) // crazy selector to handle odd field errors in ie6/7
398
+ els = $('body').children().filter('.blockUI').add('body > .blockUI');
399
+ else
400
+ els = $('.blockUI', el);
401
+
402
+ if (full)
403
+ pageBlock = pageBlockEls = null;
404
+
405
+ if (opts.fadeOut) {
406
+ els.fadeOut(opts.fadeOut);
407
+ setTimeout(function() { reset(els,data,opts,el); }, opts.fadeOut);
408
+ }
409
+ else
410
+ reset(els, data, opts, el);
411
+ };
412
+
413
+ // move blocking element back into the DOM where it started
414
+ function reset(els,data,opts,el) {
415
+ els.each(function(i,o) {
416
+ // remove via DOM calls so we don't lose event handlers
417
+ if (this.parentNode)
418
+ this.parentNode.removeChild(this);
419
+ });
420
+
421
+ if (data && data.el) {
422
+ data.el.style.display = data.display;
423
+ data.el.style.position = data.position;
424
+ if (data.parent)
425
+ data.parent.appendChild(data.el);
426
+ $(el).removeData('blockUI.history');
427
+ }
428
+
429
+ if (typeof opts.onUnblock == 'function')
430
+ opts.onUnblock(el,opts);
431
+ };
432
+
433
+ // bind/unbind the handler
434
+ function bind(b, el, opts) {
435
+ var full = el == window, $el = $(el);
436
+
437
+ // don't bother unbinding if there is nothing to unbind
438
+ if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
439
+ return;
440
+ if (!full)
441
+ $el.data('blockUI.isBlocked', b);
442
+
443
+ // don't bind events when overlay is not in use or if bindEvents is false
444
+ if (!opts.bindEvents || (b && !opts.showOverlay))
445
+ return;
446
+
447
+ // bind anchors and inputs for mouse and key events
448
+ var events = 'mousedown mouseup keydown keypress';
449
+ b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler);
450
+
451
+ // former impl...
452
+ // var $e = $('a,:input');
453
+ // b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
454
+ };
455
+
456
+ // event handler to suppress keyboard/mouse events when blocking
457
+ function handler(e) {
458
+ // allow tab navigation (conditionally)
459
+ if (e.keyCode && e.keyCode == 9) {
460
+ if (pageBlock && e.data.constrainTabKey) {
461
+ var els = pageBlockEls;
462
+ var fwd = !e.shiftKey && e.target === els[els.length-1];
463
+ var back = e.shiftKey && e.target === els[0];
464
+ if (fwd || back) {
465
+ setTimeout(function(){focus(back)},10);
466
+ return false;
467
+ }
468
+ }
469
+ }
470
+ var opts = e.data;
471
+ // allow events within the message content
472
+ if ($(e.target).parents('div.' + opts.blockMsgClass).length > 0)
473
+ return true;
474
+
475
+ // allow events for content that is not being blocked
476
+ return $(e.target).parents().children().filter('div.blockUI').length == 0;
477
+ };
478
+
479
+ function focus(back) {
480
+ if (!pageBlockEls)
481
+ return;
482
+ var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
483
+ if (e)
484
+ e.focus();
485
+ };
486
+
487
+ function center(el, x, y) {
488
+ var p = el.parentNode, s = el.style;
489
+ var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
490
+ var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
491
+ if (x) s.left = l > 0 ? (l+'px') : '0';
492
+ if (y) s.top = t > 0 ? (t+'px') : '0';
493
+ };
494
+
495
+ function sz(el, p) {
496
+ return parseInt($.css(el,p))||0;
497
+ };
498
+
499
+ })(jQuery);