compass-jquery-plugin 0.3.2.3 → 0.3.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. data/README.md +54 -37
  2. data/VERSION.yml +1 -1
  3. data/lib/handle_attributes.rb +4 -4
  4. data/lib/handle_js_files.rb +5 -5
  5. data/lib/jqtouch_theme.rb +2 -2
  6. data/lib/jquery/dynatree.rb +2 -2
  7. data/lib/jquery/emulators.rb +1 -1
  8. data/lib/jquery/flash_messages.rb +6 -6
  9. data/lib/jquery/graphics.rb +5 -0
  10. data/lib/jquery/gridify/assertions.rb +1 -1
  11. data/lib/jquery/gridify/grid.rb +76 -59
  12. data/lib/jquery/gridify/grid_column.rb +73 -67
  13. data/lib/jquery/gridify/grid_finder.rb +79 -79
  14. data/lib/jquery/gridify/grid_options.rb +154 -149
  15. data/lib/jquery/gridify/grid_view.rb +143 -143
  16. data/lib/jquery/gridify.rb +25 -25
  17. data/lib/jquery/ical/calendar.rb +2 -2
  18. data/lib/jquery/ical/event.rb +48 -44
  19. data/lib/jquery/ical/helpers/ui_event_helper.rb +3 -3
  20. data/lib/jquery/jqgrid/jqgrid.rb +58 -58
  21. data/lib/jquery/jqgrid.rb +1 -1
  22. data/lib/jquery/jqtouch.rb +1 -1
  23. data/lib/jquery/jquery.rb +117 -117
  24. data/lib/jquery/jquery_auto_complete.rb +9 -9
  25. data/lib/jquery/jquery_json_response.rb +12 -12
  26. data/lib/jquery/jquery_selector_assertions.rb +55 -53
  27. data/lib/jquery/jstree.rb +2 -2
  28. data/lib/jquery/mobile.rb +1 -1
  29. data/lib/jquery/ribbon.rb +2 -2
  30. data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +5 -5
  31. data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +5 -5
  32. data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +1 -1
  33. data/lib/jquery/secret_sauce/helpers/ui_form_helper.rb +39 -39
  34. data/lib/jquery/secret_sauce/helpers/ui_grid_helper.rb +74 -74
  35. data/lib/jquery/secret_sauce/model/find_for_grid.rb +21 -21
  36. data/lib/jquery/secret_sauce.rb +1 -1
  37. data/lib/jquery/tools.rb +1 -1
  38. data/lib/jquery_mobile_theme.rb +2 -2
  39. data/lib/jquery_ui_theme.rb +12 -12
  40. data/templates/dynatree/config/initializers/dynatree.rb +3 -3
  41. data/templates/dynatree/jquery/dynatree/aero.scss +16 -16
  42. data/templates/dynatree/jquery/dynatree/aqua.scss +16 -16
  43. data/templates/dynatree/jquery/dynatree/crystal.scss +16 -16
  44. data/templates/dynatree/jquery/dynatree/xp.scss +17 -17
  45. data/templates/dynatree/jquery.dynatree.js +2926 -2912
  46. data/templates/emulators/config/initializers/emulators.rb +6 -6
  47. data/templates/graphics/config/initializers/graphics.rb +5 -0
  48. data/templates/graphics/jquery/ganttView.scss +89 -0
  49. data/templates/graphics/jquery.ganttView.js +1669 -0
  50. data/templates/graphics/jquery.ganttView.min.js +70 -0
  51. data/templates/{jquery → graphics}/jquery.sparkline.js +466 -438
  52. data/templates/{jquery → graphics}/jquery.sparkline.min.js +0 -0
  53. data/templates/graphics/manifest.rb +9 -0
  54. data/templates/jqgrid/config/initializers/jqgrid.rb +1 -1
  55. data/templates/jqgrid/i18n/jqgrid/locale-ar.js +131 -125
  56. data/templates/jqgrid/i18n/jqgrid/locale-bg.js +135 -131
  57. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +135 -131
  58. data/templates/jqgrid/i18n/jqgrid/locale-cat.js +132 -126
  59. data/templates/jqgrid/i18n/jqgrid/locale-cn.js +137 -131
  60. data/templates/jqgrid/i18n/jqgrid/locale-cs.js +133 -127
  61. data/templates/jqgrid/i18n/jqgrid/locale-da.js +132 -126
  62. data/templates/jqgrid/i18n/jqgrid/locale-de.js +138 -132
  63. data/templates/jqgrid/i18n/jqgrid/locale-el.js +131 -125
  64. data/templates/jqgrid/i18n/jqgrid/locale-en.js +133 -127
  65. data/templates/jqgrid/i18n/jqgrid/locale-es.js +133 -127
  66. data/templates/jqgrid/i18n/jqgrid/locale-fa.js +19 -16
  67. data/templates/jqgrid/i18n/jqgrid/locale-fi.js +132 -126
  68. data/templates/jqgrid/i18n/jqgrid/locale-fr.js +131 -125
  69. data/templates/jqgrid/i18n/jqgrid/locale-gl.js +131 -125
  70. data/templates/jqgrid/i18n/jqgrid/locale-he.js +132 -126
  71. data/templates/jqgrid/i18n/jqgrid/locale-hu.js +133 -127
  72. data/templates/jqgrid/i18n/jqgrid/locale-is.js +131 -125
  73. data/templates/jqgrid/i18n/jqgrid/locale-it.js +8 -1
  74. data/templates/jqgrid/i18n/jqgrid/locale-ja.js +139 -136
  75. data/templates/jqgrid/i18n/jqgrid/locale-nl.js +4 -1
  76. data/templates/jqgrid/i18n/jqgrid/locale-no.js +14 -1
  77. data/templates/jqgrid/i18n/jqgrid/locale-pl.js +132 -126
  78. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +132 -126
  79. data/templates/jqgrid/i18n/jqgrid/locale-pt.js +130 -124
  80. data/templates/jqgrid/i18n/jqgrid/locale-ro.js +144 -138
  81. data/templates/jqgrid/i18n/jqgrid/locale-ru.js +132 -126
  82. data/templates/jqgrid/i18n/jqgrid/locale-sk.js +132 -126
  83. data/templates/jqgrid/i18n/jqgrid/locale-sr.js +133 -127
  84. data/templates/jqgrid/i18n/jqgrid/locale-sv.js +132 -126
  85. data/templates/jqgrid/i18n/jqgrid/locale-tr.js +131 -125
  86. data/templates/jqgrid/i18n/jqgrid/locale-ua.js +132 -126
  87. data/templates/jqgrid/jquery.jqGrid.js +12735 -10444
  88. data/templates/jqgrid/jquery.jqGrid.min.js +477 -469
  89. data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +12 -10
  90. data/templates/jqtouch/config/initializers/jqtouch.rb +3 -3
  91. data/templates/jqtouch/jquery/touch/jqtouch.scss +1 -1
  92. data/templates/jqtouch/jquery.jqtouch.js +10025 -10043
  93. data/templates/jquery/config/initializers/jquery.rb +2 -4
  94. data/templates/jquery/history.adapter.jquery.js +71 -0
  95. data/templates/jquery/history.adapter.jquery.min.js +4 -0
  96. data/templates/jquery/history.html4.js +690 -0
  97. data/templates/jquery/history.html4.min.js +21 -0
  98. data/templates/jquery/history.js +1297 -0
  99. data/templates/jquery/history.min.js +29 -0
  100. data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
  101. data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +19 -19
  102. data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
  103. data/templates/jquery/i18n/jquery.ui/datepicker-az.js +19 -19
  104. data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +8 -8
  105. data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
  106. data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +20 -20
  107. data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
  108. data/templates/jquery/i18n/jquery.ui/datepicker-da.js +14 -14
  109. data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
  110. data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
  111. data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +20 -20
  112. data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
  113. data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +20 -20
  114. data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
  115. data/templates/jquery/i18n/jquery.ui/datepicker-es.js +20 -20
  116. data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
  117. data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
  118. data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +18 -18
  119. data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +15 -15
  120. data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
  121. data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
  122. data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +22 -22
  123. data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +20 -20
  124. data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
  125. data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
  126. data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +20 -20
  127. data/templates/jquery/i18n/jquery.ui/datepicker-hu.min.js +1 -1
  128. data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +20 -20
  129. data/templates/jquery/i18n/jquery.ui/datepicker-id.js +20 -20
  130. data/templates/jquery/i18n/jquery.ui/datepicker-is.js +20 -20
  131. data/templates/jquery/i18n/jquery.ui/datepicker-it.js +20 -20
  132. data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
  133. data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +20 -20
  134. data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +20 -20
  135. data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +20 -20
  136. data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +20 -20
  137. data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
  138. data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +20 -20
  139. data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
  140. data/templates/jquery/i18n/jquery.ui/datepicker-no.js +16 -16
  141. data/templates/jquery/i18n/jquery.ui/datepicker-no.min.js +2 -2
  142. data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +20 -20
  143. data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +20 -20
  144. data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +20 -20
  145. data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +18 -18
  146. data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
  147. data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +20 -20
  148. data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +20 -20
  149. data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +20 -20
  150. data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
  151. data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
  152. data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
  153. data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +14 -14
  154. data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
  155. data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
  156. data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +20 -20
  157. data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +20 -20
  158. data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
  159. data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +20 -20
  160. data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +20 -20
  161. data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
  162. data/templates/jquery/{partials → jquery/ui}/_flash_messages.scss +0 -0
  163. data/templates/jquery/jquery/ui/_theme.scss +14 -13
  164. data/templates/jquery/jquery/ui/contextMenu/configure.png +0 -0
  165. data/templates/jquery/jquery/ui/contextMenu/copy.png +0 -0
  166. data/templates/jquery/jquery/ui/contextMenu/cut.png +0 -0
  167. data/templates/jquery/jquery/ui/contextMenu/delete.png +0 -0
  168. data/templates/jquery/jquery/ui/contextMenu/edit.png +0 -0
  169. data/templates/jquery/jquery/ui/contextMenu/exit.png +0 -0
  170. data/templates/jquery/jquery/ui/contextMenu/new.png +0 -0
  171. data/templates/jquery/jquery/ui/contextMenu/paste.png +0 -0
  172. data/templates/jquery/jquery/ui/contextMenu/rename.png +0 -0
  173. data/templates/jquery/jquery/ui/contextMenu/show.png +0 -0
  174. data/templates/jquery/jquery/ui/contextMenu/trash.png +0 -0
  175. data/templates/jquery/jquery/ui/contextMenu.scss +16 -10
  176. data/templates/jquery/jquery-ui.js +11839 -23066
  177. data/templates/jquery/jquery-ui.min.js +401 -795
  178. data/templates/jquery/jquery.bgiframe.js +27 -25
  179. data/templates/jquery/jquery.contextMenu.js +209 -196
  180. data/templates/jquery/jquery.cookie.js +3 -1
  181. data/templates/jquery/jquery.dotimeout.js +236 -228
  182. data/templates/jquery/jquery.dst.js +154 -151
  183. data/templates/jquery/jquery.farbtastic.js +293 -293
  184. data/templates/jquery/jquery.flashMessages.js +26 -0
  185. data/templates/jquery/jquery.flashMessages.min.js +1 -0
  186. data/templates/jquery/jquery.form.js +803 -786
  187. data/templates/jquery/jquery.haml.js +248 -247
  188. data/templates/jquery/jquery.hotkeys.js +89 -89
  189. data/templates/jquery/jquery.js +8141 -8106
  190. data/templates/jquery/jquery.layout.js +2451 -2415
  191. data/templates/jquery/jquery.min.js +167 -166
  192. data/templates/jquery/jquery.mousewheel.js +62 -54
  193. data/templates/jquery/jquery.offline.js +171 -171
  194. data/templates/jquery/jquery.pngFix.js +76 -76
  195. data/templates/jquery/jquery.replacetext.js +83 -83
  196. data/templates/jquery/jquery.themeswitchertool.js +202 -177
  197. data/templates/jquery/jquery.tmpl.js +478 -473
  198. data/templates/jquery/jquery.tmplPlus.js +82 -81
  199. data/templates/jquery/jrails.js +178 -175
  200. data/templates/jquery/json.js +77 -7
  201. data/templates/jquery/json2.js +480 -0
  202. data/templates/jquery/json2.min.js +7 -0
  203. data/templates/jquery/lib/tasks/haml.rake +2 -2
  204. data/templates/jquery/manifest.rb +21 -17
  205. data/templates/jstree/jquery.jstree.js +5967 -4536
  206. data/templates/mobile/config/initializers/mobile.rb +1 -1
  207. data/templates/mobile/jquery/mobile/_base.scss +944 -927
  208. data/templates/mobile/jquery/mobile/default.scss +61 -48
  209. data/templates/mobile/jquery/mobile/valencia.scss +56 -42
  210. data/templates/mobile/jquery.mobile.js +4461 -4347
  211. data/templates/mobile/jquery.mobile.min.js +11 -2
  212. data/templates/mobile/lib/tasks/jquery.mobile.rake +12 -12
  213. data/templates/ribbon/config/initializers/ribbon.rb +2 -2
  214. data/templates/ribbon/jquery.ribbon.js +50 -29
  215. data/templates/secret_sauce/secret_sauce.js +8 -8
  216. data/templates/tools/flowplayer.js +945 -1
  217. data/templates/tools/jquery.tools.js +4645 -4335
  218. data/templates/tools/jquery.tools.min.js +37 -37
  219. data/templates/tools/lib/tasks/jquery.tools.rake +4 -4
  220. data/templates/tools/swfobject.js +813 -773
  221. metadata +33 -21
  222. data/templates/jquery/haml.js +0 -506
  223. data/templates/jquery/haml.min.js +0 -5
  224. data/templates/jquery/jquery/ui/contextMenu/door.png +0 -0
  225. data/templates/jquery/jquery/ui/contextMenu/page_white_copy.png +0 -0
  226. data/templates/jquery/jquery/ui/contextMenu/page_white_delete.png +0 -0
  227. data/templates/jquery/jquery/ui/contextMenu/page_white_edit.png +0 -0
  228. data/templates/jquery/jquery/ui/contextMenu/page_white_new.png +0 -0
  229. data/templates/jquery/jquery/ui/contextMenu/page_white_paste.png +0 -0
  230. data/templates/jquery/jquery.compat-1.3.js +0 -291
  231. data/templates/jquery/jquery.compat-1.3.min.js +0 -6
  232. data/templates/jquery/jquery.flash_messages.js +0 -5
  233. data/templates/jquery/jquery.flash_messages.min.js +0 -1
  234. data/templates/jquery/jquery.history.js +0 -194
  235. data/templates/jquery/jquery.history.min.js +0 -5
@@ -1,5 +0,0 @@
1
- (function(e){function l(a,b){if(a===undefined)return b==="undefined";if(a===null)return b==="null";return a.constructor.toString().match(RegExp(b,"i"))!==null}function q(a,b){if(a&&a[b]){var g=a[b];delete a[b];return g}}function u(a){if(typeof a!=="string"||a.length<2)return false;a=a.charAt(0);if(!(a==="."||a==="#"||a==="%"))return false;return true}function r(a,b){function g(h,c){if(!(c===undefined||c===null))if(c.nodeType||c.jquery)h.append(c);else if(l(c,"String")&&c.length>0){if(c[0]==="\\")c=
2
- c.substr(1);h.append(document.createTextNode(c))}else if(l(c,"Number"))h.append(document.createTextNode(c));else l(c,"Array")&&c.length>0&&r(h,c)}var i,k,d,f,m,n,j;d=Array.prototype.slice.call(b,0);if(d.length&&d.length>0){if(u(d[0])){f=d.shift();m=f.match(/\.[^\.#]+/g);n=f.match(/#[^\.#]+/g);f=(f=f.match(/^%([^\.#]+)/g))?f[0].substr(1):"div";j=e(document.createElement(f));if(d.length>0&&l(d[0],"Object")&&!d[0].nodeType&&!d[0].jquery){f=d.shift();i=q(f,"css");k=q(f,"$");j.attr(f)}n&&e.each(n,function(){var h,
3
- c;h=this.substr(1);(c=j.attr("id"))?j.attr("id",c+" "+h):j.attr("id",h)});m&&e.each(m,function(){j.addClass(this.substr(1))});i&&j.css(i);a.append(j);a=j;k&&e.each(k,function(h){o.push({node:a,method:h,params:this})})}e.each(d,function(){g(a,this)})}else g(a,d)}function s(){e.each(o,function(){if(this.method==="$")this.params.apply(this.node,[]);else{if(!l(this.params,"Array"))this.params=[this.params];this.node[this.method].apply(this.node,this.params)}});o=[]}function t(a){var b;b=e(document.createElement("div"));
4
- r(b,a);this.append(b.contents());this.closest("body").length>0&&s();return b.contents()}var o=[],p={};e.fn.insertHaml=function(){return t.call(this,Array.prototype.slice.call(arguments,0))};e.fn.haml=function(){t.call(this,Array.prototype.slice.call(arguments,0));return this};e.haml={placeholder:function(a){function b(){var i=e(document.createElement("div"));i.haml(a.apply(this,arguments));return g=i.contents()}var g;return{inject:b,update:function(){var i=arguments;e.each(g,function(k,d){k===0?e(d).replaceWith(b.apply(this,
5
- i)):e(d).remove()});s()}}},onDemand:function(a,b){var g;b=["%div",{style:"text-align: center; cursor: wait"},b||"Loading..."];return function(i){var k=Array.prototype.slice.call(arguments,1);return g=e.haml.placeholder(function(){var d=Util.stringify(k);if(p[d]!==undefined)return i(p[d]);else{a.apply(this,[function(f){p[d]=f;g.update()}].concat(k));return b}})}}}})(jQuery);
@@ -1,291 +0,0 @@
1
- /*
2
- * Compatibility Plugin for jQuery 1.3 (on top of jQuery 1.4)
3
- * All code copied from jQuery 1.4
4
- * By John Resig
5
- * Dual licensed under MIT and GPL.
6
- */
7
-
8
- (function(jQuery) {
9
-
10
- // .add() is no longer equivalent to .concat()
11
- // Results are now returned in document order
12
- jQuery.fn.add = function( selector, context ) {
13
- var set = typeof selector === "string" ?
14
- jQuery( selector, context || this.context ) :
15
- jQuery.makeArray( selector );
16
-
17
- return this.pushStack( jQuery.merge( this.get(), set ) );
18
- };
19
-
20
- // clone( true ) now copies over all data in addition to
21
- // the events
22
- jQuery.fn.clone = function( events ) {
23
- // Do the clone
24
- var ret = this.map(function() {
25
- if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
26
- // IE copies events bound via attachEvent when
27
- // using cloneNode. Calling detachEvent on the
28
- // clone will also remove the events from the orignal
29
- // In order to get around this, we use innerHTML.
30
- // Unfortunately, this means some modifications to
31
- // attributes in IE that are actually only stored
32
- // as properties will not be copied (such as the
33
- // the name attribute on an input).
34
- var html = this.outerHTML, ownerDocument = this.ownerDocument;
35
- if ( !html ) {
36
- var div = ownerDocument.createElement("div");
37
- div.appendChild( this.cloneNode(true) );
38
- html = div.innerHTML;
39
- }
40
-
41
- return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "")
42
- .replace(/^\s+/, "")], ownerDocument)[0];
43
- } else {
44
- return this.cloneNode(true);
45
- }
46
- });
47
-
48
- // Copy the events from the original to the clone
49
- if ( events === true ) {
50
- cloneCopyEvent( this, ret );
51
- cloneCopyEvent( this.find("*"), ret.find("*") );
52
- }
53
-
54
- // Return the cloned set
55
- return ret;
56
- };
57
-
58
- function cloneCopyEvent(orig, ret) {
59
- var i = 0;
60
-
61
- ret.each(function() {
62
- if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
63
- return;
64
- }
65
-
66
- var oldData = jQuery.data( orig[i++] ), events = oldData && oldData.events;
67
-
68
- if ( events ) {
69
- for ( var type in events ) {
70
- for ( var handler in events[ type ] ) {
71
- jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
72
- }
73
- }
74
- }
75
- });
76
- }
77
-
78
- // jQuery.data(elem) no longer returns an ID,
79
- // returns the data object instead.
80
- var windowData = {}, uuid = 0;
81
-
82
- jQuery.data = function( elem, name, data ) {
83
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
84
- return;
85
- }
86
-
87
- elem = elem == window ?
88
- windowData :
89
- elem;
90
-
91
- var id = elem[ jQuery.expando ], cache = jQuery.cache, thisCache;
92
-
93
- // Handle the case where there's no name immediately
94
- if ( !name && !id ) {
95
- return null;
96
- }
97
-
98
- // Compute a unique ID for the element
99
- if ( !id ) {
100
- id = ++uuid;
101
- }
102
-
103
- // Avoid generating a new cache unless none exists and we
104
- // want to manipulate it.
105
- if ( typeof name === "object" ) {
106
- elem[ jQuery.expando ] = id;
107
- thisCache = cache[ id ] = jQuery.extend(true, {}, name);
108
- } else if ( cache[ id ] ) {
109
- thisCache = cache[ id ];
110
- } else if ( typeof data === "undefined" ) {
111
- thisCache = {};
112
- } else {
113
- thisCache = cache[ id ] = {};
114
- }
115
-
116
- // Prevent overriding the named cache with undefined values
117
- if ( data !== undefined ) {
118
- elem[ jQuery.expando ] = id;
119
- thisCache[ name ] = data;
120
- }
121
-
122
- return typeof name === "string" ? thisCache[ name ] : id;
123
- };
124
-
125
- // jQuery() now returns an empty jQuery set, not jQuery(document)
126
-
127
- var oldinit = jQuery.fn.init;
128
-
129
- jQuery.fn.init = function( selector ) {
130
- if ( selector === undefined ) {
131
- return jQuery( document );
132
- }
133
-
134
- return oldinit.apply( this, arguments );
135
- };
136
-
137
- jQuery.fn.init.prototype = oldinit.prototype;
138
-
139
- // .val("...") on radio and checkbox elements was amgiuous,
140
- // it only selects on value now (which is much less ambiguous)
141
- var oldval = jQuery.fn.val;
142
-
143
- jQuery.fn.val = function( value ) {
144
- if ( value !== undefined ) {
145
- var isFunction = jQuery.isFunction(value);
146
-
147
- return this.each(function(i) {
148
- var self = jQuery(this), val = value;
149
-
150
- if ( this.nodeType !== 1 ) {
151
- return;
152
- }
153
-
154
- if ( isFunction ) {
155
- val = value.call(this, i, self.val());
156
- }
157
-
158
- // Typecast each time if the value is a Function and the appended
159
- // value is therefore different each time.
160
- if ( typeof val === "number" ) {
161
- val += "";
162
- }
163
-
164
- if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
165
- this.checked = jQuery.inArray( self.val(), val ) >= 0 ||
166
- jQuery.inArray(this.name, value) >= 0;
167
-
168
- } else if ( jQuery.nodeName( this, "select" ) ) {
169
- var values = jQuery.makeArray(val);
170
-
171
- jQuery( "option", this ).each(function() {
172
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0 ||
173
- jQuery.inArray( this.text, values ) >= 0;
174
- });
175
-
176
- if ( !values.length ) {
177
- this.selectedIndex = -1;
178
- }
179
-
180
- } else {
181
- this.value = val;
182
- }
183
- });
184
- }
185
-
186
- return oldval.apply( this, arguments );
187
- };
188
-
189
- // jQuery.browser.version now exclusively matches based upon the rendering engine
190
- jQuery.browser.version = (navigator.userAgent.toLowerCase().match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1];
191
-
192
- // jQuery.ajax() is now strict about JSON input (must follow the spec)
193
- // Also, it auto-executes scripts that have no dataType and have a content-type of "text/javascript"
194
- jQuery.httpData = function( xhr, type, s ) {
195
- var ct = xhr.getResponseHeader("content-type") || "",
196
- xml = type === "xml" || !type && ct.indexOf("xml") >= 0,
197
- data = xml ? xhr.responseXML : xhr.responseText;
198
-
199
- if ( xml && data.documentElement.nodeName === "parsererror" ) {
200
- throw "parsererror";
201
- }
202
-
203
- // Allow a pre-filtering function to sanitize the response
204
- // s is checked to keep backwards compatibility
205
- if ( s && s.dataFilter ) {
206
- data = s.dataFilter( data, type );
207
- }
208
-
209
- // The filter can actually parse the response
210
- if ( typeof data === "string" ) {
211
- // Get the JavaScript object, if JSON is used.
212
- if ( type === "json" || !type && ct.indexOf("json") >= 0 ) {
213
- data = (new Function("return " + data))();
214
- }
215
- }
216
-
217
- return data;
218
- };
219
-
220
- // Ajax data is now serialized in the PHP/Rails style be default
221
- jQuery.ajaxSettings.traditional = true;
222
-
223
- // The internal jQuery.className structure has been removed in
224
- // favor of the traditional jQuery methods
225
- jQuery.className = {
226
- add: function ( elem, classNames ) {
227
- jQuery( elem ).addClass( classNames );
228
- },
229
- remove: function( elem, classNames ) {
230
- jQuery( elem ).removeClass( classNames );
231
- },
232
- has: function( elem, className ) {
233
- jQuery( elem ).hasClass( className );
234
- }
235
- };
236
-
237
- // jQuery.extend( true, ... ) only works on plain objects and arrays now
238
- jQuery.extend = jQuery.fn.extend = function() {
239
- // copy reference to target object
240
- var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy;
241
-
242
- // Handle a deep copy situation
243
- if ( typeof target === "boolean" ) {
244
- deep = target;
245
- target = arguments[1] || {};
246
- // skip the boolean and the target
247
- i = 2;
248
- }
249
-
250
- // Handle case when target is a string or something (possible in deep copy)
251
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
252
- target = {};
253
- }
254
-
255
- // extend jQuery itself if only one argument is passed
256
- if ( length === i ) {
257
- target = this;
258
- --i;
259
- }
260
-
261
- for ( ; i < length; i++ ) {
262
- // Only deal with non-null/undefined values
263
- if ( (options = arguments[ i ]) != null ) {
264
- // Extend the base object
265
- for ( name in options ) {
266
- src = target[ name ];
267
- copy = options[ name ];
268
-
269
- // Prevent never-ending loop
270
- if ( target === copy ) {
271
- continue;
272
- }
273
-
274
- // Recurse if we're merging object literal values or arrays
275
- if ( deep && copy && typeof copy === "object" && !copy.nodeType ) {
276
- target[ name ] = jQuery.extend( deep,
277
- // Never move original objects, clone them
278
- src || ( copy.length != null ? [ ] : { } ), copy );
279
-
280
- // Don't bring in undefined values
281
- } else if ( copy !== undefined ) {
282
- target[ name ] = copy;
283
- }
284
- }
285
- }
286
- }
287
-
288
- // Return the modified object
289
- return target;
290
- };
291
- })(jQuery);
@@ -1,6 +0,0 @@
1
- (function(b){function i(a,c){var f=0;c.each(function(){if(this.nodeName===(a[f]&&a[f].nodeName)){var d=b.data(a[f++]);if(d=d&&d.events)for(var e in d)for(var g in d[e])b.event.add(this,e,d[e][g],d[e][g].data)}})}b.fn.add=function(a,c){var f=typeof a==="string"?b(a,c||this.context):b.makeArray(a);return this.pushStack(b.merge(this.get(),f))};b.fn.clone=function(a){var c=this.map(function(){if(!b.support.noCloneEvent&&!b.isXMLDoc(this)){var f=this.outerHTML,d=this.ownerDocument;if(!f){f=d.createElement("div");
2
- f.appendChild(this.cloneNode(true));f=f.innerHTML}return b.clean([f.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s+/,"")],d)[0]}else return this.cloneNode(true)});if(a===true){i(this,c);i(this.find("*"),c.find("*"))}return c};var l={},m=0;b.data=function(a,c,f){if(!(a.nodeName&&b.noData[a.nodeName.toLowerCase()])){a=a==window?l:a;var d=a[b.expando],e=b.cache;if(!c&&!d)return null;d||(d=++m);if(typeof c==="object"){a[b.expando]=d;e=e[d]=b.extend(true,{},c)}else e=e[d]?e[d]:typeof f==="undefined"?
3
- {}:e[d]={};if(f!==undefined){a[b.expando]=d;e[c]=f}return typeof c==="string"?e[c]:d}};var j=b.fn.init;b.fn.init=function(a){if(a===undefined)return b(document);return j.apply(this,arguments)};b.fn.init.prototype=j.prototype;var n=b.fn.val;b.fn.val=function(a){if(a!==undefined){var c=b.isFunction(a);return this.each(function(f){var d=b(this),e=a;if(this.nodeType===1){if(c)e=a.call(this,f,d.val());if(typeof e==="number")e+="";if(b.isArray(e)&&rradiocheck.test(this.type))this.checked=b.inArray(d.val(),
4
- e)>=0||b.inArray(this.name,a)>=0;else if(b.nodeName(this,"select")){var g=b.makeArray(e);b("option",this).each(function(){this.selected=b.inArray(b(this).val(),g)>=0||b.inArray(this.text,g)>=0});if(!g.length)this.selectedIndex=-1}else this.value=e}})}return n.apply(this,arguments)};b.browser.version=(navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1];b.httpData=function(a,c,f){var d=a.getResponseHeader("content-type")||"",e=c==="xml"||!c&&d.indexOf("xml")>=0;a=
5
- e?a.responseXML:a.responseText;if(e&&a.documentElement.nodeName==="parsererror")throw"parsererror";if(f&&f.dataFilter)a=f.dataFilter(a,c);if(typeof a==="string")if(c==="json"||!c&&d.indexOf("json")>=0)a=(new Function("return "+a))();return a};b.ajaxSettings.traditional=true;b.className={add:function(a,c){b(a).addClass(c)},remove:function(a,c){b(a).removeClass(c)},has:function(a,c){b(a).hasClass(c)}};b.extend=b.fn.extend=function(){var a=arguments[0]||{},c=1,f=arguments.length,d=false,e,g,k,h;if(typeof a===
6
- "boolean"){d=a;a=arguments[1]||{};c=2}if(typeof a!=="object"&&!b.isFunction(a))a={};if(f===c){a=this;--c}for(;c<f;c++)if((e=arguments[c])!=null)for(g in e){k=a[g];h=e[g];if(a!==h)if(d&&h&&typeof h==="object"&&!h.nodeType)a[g]=b.extend(d,k||(h.length!=null?[]:{}),h);else if(h!==undefined)a[g]=h}return a}})(jQuery);
@@ -1,5 +0,0 @@
1
- // definition
2
- jQuery.namespace( 'jQuery.flashMessages' );
3
- jQuery.flashMessages.hideFlashes = function() {
4
- $('p.success, p.notice, p.warning, p.error').fadeOut(1500);
5
- };
@@ -1 +0,0 @@
1
- jQuery.namespace("jQuery.flashMessages");jQuery.flashMessages.hideFlashes=function(){$("p.success, p.notice, p.warning, p.error").fadeOut(1500)};
@@ -1,194 +0,0 @@
1
- /*
2
- * jQuery history plugin
3
- *
4
- * The MIT License
5
- *
6
- * Copyright (c) 2006-2009 Taku Sano (Mikage Sawatari)
7
- * Copyright (c) 2010 Takayuki Miwa
8
- *
9
- * Permission is hereby granted, free of charge, to any person obtaining a copy
10
- * of this software and associated documentation files (the "Software"), to deal
11
- * in the Software without restriction, including without limitation the rights
12
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- * copies of the Software, and to permit persons to whom the Software is
14
- * furnished to do so, subject to the following conditions:
15
- *
16
- * The above copyright notice and this permission notice shall be included in
17
- * all copies or substantial portions of the Software.
18
- *
19
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
- * THE SOFTWARE.
26
- */
27
-
28
- (function($) {
29
- var locationWrapper = {
30
- put: function(hash, win) {
31
- (win || window).location.hash = this.encoder(hash);
32
- },
33
- get: function(win) {
34
- var hash = ((win || window).location.hash).replace(/^#/, '');
35
- try {
36
- return $.browser.mozilla ? hash : decodeURIComponent(hash);
37
- }
38
- catch (error) {
39
- return hash;
40
- }
41
- },
42
- encoder: encodeURIComponent
43
- };
44
-
45
- var iframeWrapper = {
46
- id: "__jQuery_history",
47
- init: function() {
48
- var html = '<iframe id="'+ this.id +'" style="display:none" src="javascript:false;" />';
49
- $("body").prepend(html);
50
- return this;
51
- },
52
- _document: function() {
53
- return $("#"+ this.id)[0].contentWindow.document;
54
- },
55
- put: function(hash) {
56
- var doc = this._document();
57
- doc.open();
58
- doc.close();
59
- locationWrapper.put(hash, doc);
60
- },
61
- get: function() {
62
- return locationWrapper.get(this._document());
63
- }
64
- };
65
-
66
- function initObjects(options) {
67
- options = $.extend({
68
- unescape: false
69
- }, options || {});
70
-
71
- locationWrapper.encoder = encoder(options.unescape);
72
-
73
- function encoder(unescape_) {
74
- if(unescape_ === true) {
75
- return function(hash){ return hash; };
76
- }
77
- if(typeof unescape_ == "string" &&
78
- (unescape_ = partialDecoder(unescape_.split("")))
79
- || typeof unescape_ == "function") {
80
- return function(hash) { return unescape_(encodeURIComponent(hash)); };
81
- }
82
- return encodeURIComponent;
83
- }
84
-
85
- function partialDecoder(chars) {
86
- var re = new RegExp($.map(chars, encodeURIComponent).join("|"), "ig");
87
- return function(enc) { return enc.replace(re, decodeURIComponent); };
88
- }
89
- }
90
-
91
- var implementations = {};
92
-
93
- implementations.base = {
94
- callback: undefined,
95
- type: undefined,
96
-
97
- check: function() {},
98
- load: function(hash) {},
99
- init: function(callback, options) {
100
- initObjects(options);
101
- self.callback = callback;
102
- self._options = options;
103
- self._init();
104
- },
105
-
106
- _init: function() {},
107
- _options: {}
108
- };
109
-
110
- implementations.timer = {
111
- _appState: undefined,
112
- _init: function() {
113
- var current_hash = locationWrapper.get();
114
- self._appState = current_hash;
115
- self.callback(current_hash);
116
- setInterval(self.check, 100);
117
- },
118
- check: function() {
119
- var current_hash = locationWrapper.get();
120
- if(current_hash != self._appState) {
121
- self._appState = current_hash;
122
- self.callback(current_hash);
123
- }
124
- },
125
- load: function(hash) {
126
- if(hash != self._appState) {
127
- locationWrapper.put(hash);
128
- self._appState = hash;
129
- self.callback(hash);
130
- }
131
- }
132
- };
133
-
134
- implementations.iframeTimer = {
135
- _appState: undefined,
136
- _init: function() {
137
- var current_hash = locationWrapper.get();
138
- self._appState = current_hash;
139
- iframeWrapper.init().put(current_hash);
140
- self.callback(current_hash);
141
- setInterval(self.check, 100);
142
- },
143
- check: function() {
144
- var iframe_hash = iframeWrapper.get(),
145
- location_hash = locationWrapper.get();
146
-
147
- if (location_hash != iframe_hash) {
148
- if (location_hash == self._appState) { // user used Back or Forward button
149
- self._appState = iframe_hash;
150
- locationWrapper.put(iframe_hash);
151
- self.callback(iframe_hash);
152
- } else { // user loaded new bookmark
153
- self._appState = location_hash;
154
- iframeWrapper.put(location_hash);
155
- self.callback(location_hash);
156
- }
157
- }
158
- },
159
- load: function(hash) {
160
- if(hash != self._appState) {
161
- locationWrapper.put(hash);
162
- iframeWrapper.put(hash);
163
- self._appState = hash;
164
- self.callback(hash);
165
- }
166
- }
167
- };
168
-
169
- implementations.hashchangeEvent = {
170
- _init: function() {
171
- self.callback(locationWrapper.get());
172
- $(window).bind('hashchange', self.check);
173
- },
174
- check: function() {
175
- self.callback(locationWrapper.get());
176
- },
177
- load: function(hash) {
178
- locationWrapper.put(hash);
179
- }
180
- };
181
-
182
- var self = $.extend({}, implementations.base);
183
-
184
- if($.browser.msie && ($.browser.version < 8 || document.documentMode < 8)) {
185
- self.type = 'iframeTimer';
186
- } else if("onhashchange" in window) {
187
- self.type = 'hashchangeEvent';
188
- } else {
189
- self.type = 'timer';
190
- }
191
-
192
- $.extend(self, implementations[self.type]);
193
- $.history = self;
194
- })(jQuery);