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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. data/README.textile +212 -211
  2. data/VERSION.yml +5 -5
  3. data/compass-jquery-plugin.gemspec +25 -2
  4. data/gem_tasks/jqtouch.rake +221 -201
  5. data/gem_tasks/jrails.rake +322 -311
  6. data/lib/compiler.jar +0 -0
  7. data/lib/jquery/flash_messages.rb +45 -45
  8. data/lib/jquery/gridify/grid.rb +147 -147
  9. data/lib/jquery/gridify/grid_column.rb +134 -134
  10. data/lib/jquery/gridify/grid_finder.rb +223 -211
  11. data/lib/jquery/gridify/grid_options.rb +279 -279
  12. data/lib/jquery/gridify/grid_view.rb +435 -436
  13. data/lib/jquery/gridify.rb +42 -42
  14. data/templates/dynatree/jquery.dynatree.min.js +1 -1
  15. data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +6 -15
  16. data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +6 -15
  17. data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +5 -6
  18. data/templates/jqgrid/i18n/jqgrid/locale-cn.min.js +5 -8
  19. data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +6 -8
  20. data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +6 -6
  21. data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +7 -7
  22. data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +7 -13
  23. data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +7 -7
  24. data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +6 -12
  25. data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +7 -7
  26. data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -7
  27. data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +6 -13
  28. data/templates/jqgrid/i18n/jqgrid/locale-hu.min.js +6 -8
  29. data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +6 -7
  30. data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +4 -4
  31. data/templates/jqgrid/i18n/jqgrid/locale-ja.min.js +5 -10
  32. data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +6 -6
  33. data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +6 -7
  34. data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +6 -7
  35. data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +4 -5
  36. data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +7 -8
  37. data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +7 -16
  38. data/templates/jqgrid/i18n/jqgrid/locale-sk.min.js +6 -8
  39. data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +6 -7
  40. data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +6 -7
  41. data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +7 -16
  42. data/templates/jqgrid/jquery.jqGrid.js +11567 -11565
  43. data/templates/jqgrid/jquery.jqGrid.min.js +472 -472
  44. data/templates/jqical/jquery.jqical.js +5 -9
  45. data/templates/jqical/jquery.jqical.min.js +44 -44
  46. data/templates/jqical/jquery.ui/jqical.scss +1 -1
  47. data/templates/jqtouch/config/initializers/jqtouch.rb +5 -4
  48. data/templates/jqtouch/jqtouch/apple/activeButton.png +0 -0
  49. data/templates/jqtouch/jqtouch/default/backButton.png +0 -0
  50. data/templates/jqtouch/jqtouch/default/backButtonActive.png +0 -0
  51. data/templates/jqtouch/jqtouch/default/bigButton.png +0 -0
  52. data/templates/jqtouch/jqtouch/default/bigButtonActive.png +0 -0
  53. data/templates/jqtouch/jqtouch/default/button.png +0 -0
  54. data/templates/jqtouch/jqtouch/default/buttonActive.png +0 -0
  55. data/templates/jqtouch/jqtouch/default/chevron.png +0 -0
  56. data/templates/jqtouch/jqtouch/default/chevronActive.png +0 -0
  57. data/templates/jqtouch/jqtouch/default/chevronCircle.png +0 -0
  58. data/templates/jqtouch/jqtouch/default/chevronCircleActive.png +0 -0
  59. data/templates/jqtouch/jqtouch/default/loading.gif +0 -0
  60. data/templates/jqtouch/jqtouch/default/toggleSwitch.png +0 -0
  61. data/templates/jqtouch/jqtouch/default/toolbarBackground.png +0 -0
  62. data/templates/jqtouch/jqtouch/jqt/back_button_clicked.png +0 -0
  63. data/templates/jqtouch/jqtouch/jqt.apple.scss +24 -11
  64. data/templates/jqtouch/jqtouch/jqt.default.scss +537 -0
  65. data/templates/jqtouch/jqtouch/jqt.jqt.scss +20 -6
  66. data/templates/jqtouch/jqtouch/jqtouch.scss +173 -1
  67. data/templates/jqtouch/jqtouch/photo/btnBack.png +0 -0
  68. data/templates/jqtouch/jqtouch/photo/loading.gif +0 -0
  69. data/templates/jqtouch/jqtouch/photo/navNext.png +0 -0
  70. data/templates/jqtouch/jqtouch/photo/navPause.png +0 -0
  71. data/templates/jqtouch/jqtouch/photo/navPlay.png +0 -0
  72. data/templates/jqtouch/jqtouch/photo/navPrev.png +0 -0
  73. data/templates/jqtouch/jqtouch/photo/toolbar.png +0 -0
  74. data/templates/jqtouch/jquery.jqtouch.js +8219 -632
  75. data/templates/jqtouch/jquery.jqtouch.min.js +60 -1
  76. data/templates/jqtouch/manifest.rb +21 -0
  77. data/templates/jrails/config/initializers/jrails.rb +1 -0
  78. data/templates/jrails/haml.js +2 -2
  79. data/templates/jrails/i18n/jquery.ui/datepicker-ar.min.js +2 -4
  80. data/templates/jrails/i18n/jquery.ui/datepicker-az.min.js +2 -2
  81. data/templates/jrails/i18n/jquery.ui/datepicker-bg.min.js +2 -4
  82. data/templates/jrails/i18n/jquery.ui/datepicker-bs.min.js +2 -2
  83. data/templates/jrails/i18n/jquery.ui/datepicker-cs.min.js +2 -2
  84. data/templates/jrails/i18n/jquery.ui/datepicker-da.min.js +2 -2
  85. data/templates/jrails/i18n/jquery.ui/datepicker-de.min.js +2 -2
  86. data/templates/jrails/i18n/jquery.ui/datepicker-el.min.js +2 -4
  87. data/templates/jrails/i18n/jquery.ui/datepicker-eo.min.js +2 -2
  88. data/templates/jrails/i18n/jquery.ui/datepicker-et.min.js +2 -2
  89. data/templates/jrails/i18n/jquery.ui/datepicker-fa.min.js +2 -3
  90. data/templates/jrails/i18n/jquery.ui/datepicker-fo.min.js +2 -2
  91. data/templates/jrails/i18n/jquery.ui/datepicker-fr-CH.min.js +2 -2
  92. data/templates/jrails/i18n/jquery.ui/datepicker-fr.min.js +2 -2
  93. data/templates/jrails/i18n/jquery.ui/datepicker-he.min.js +2 -3
  94. data/templates/jrails/i18n/jquery.ui/datepicker-hr.min.js +2 -2
  95. data/templates/jrails/i18n/jquery.ui/datepicker-hu.min.js +2 -2
  96. data/templates/jrails/i18n/jquery.ui/datepicker-hy.min.js +2 -4
  97. data/templates/jrails/i18n/jquery.ui/datepicker-ja.min.js +2 -2
  98. data/templates/jrails/i18n/jquery.ui/datepicker-ko.min.js +2 -2
  99. data/templates/jrails/i18n/jquery.ui/datepicker-kz.min.js +2 -4
  100. data/templates/jrails/i18n/jquery.ui/datepicker-lt.min.js +2 -2
  101. data/templates/jrails/i18n/jquery.ui/datepicker-lv.min.js +2 -2
  102. data/templates/jrails/i18n/jquery.ui/datepicker-nl.min.js +2 -2
  103. data/templates/jrails/i18n/jquery.ui/datepicker-no.min.js +2 -2
  104. data/templates/jrails/i18n/jquery.ui/datepicker-pl.min.js +2 -2
  105. data/templates/jrails/i18n/jquery.ui/datepicker-ro.min.js +2 -2
  106. data/templates/jrails/i18n/jquery.ui/datepicker-ru.min.js +2 -4
  107. data/templates/jrails/i18n/jquery.ui/datepicker-sk.min.js +2 -2
  108. data/templates/jrails/i18n/jquery.ui/datepicker-sq.min.js +2 -2
  109. data/templates/jrails/i18n/jquery.ui/datepicker-sr-SR.min.js +2 -2
  110. data/templates/jrails/i18n/jquery.ui/datepicker-sr.min.js +2 -4
  111. data/templates/jrails/i18n/jquery.ui/datepicker-sv.min.js +2 -2
  112. data/templates/jrails/i18n/jquery.ui/datepicker-ta.min.js +2 -4
  113. data/templates/jrails/i18n/jquery.ui/datepicker-th.min.js +2 -4
  114. data/templates/jrails/i18n/jquery.ui/datepicker-tr.min.js +2 -2
  115. data/templates/jrails/i18n/jquery.ui/datepicker-uk.min.js +2 -4
  116. data/templates/jrails/i18n/jquery.ui/datepicker-vi.min.js +2 -2
  117. data/templates/jrails/i18n/jquery.ui/datepicker-zh-CN.min.js +2 -2
  118. data/templates/jrails/i18n/jquery.ui/datepicker-zh-HK.min.js +2 -2
  119. data/templates/jrails/i18n/jquery.ui/datepicker-zh-TW.min.js +2 -2
  120. data/templates/jrails/jquery-1.4.2.min.js +156 -156
  121. data/templates/jrails/jquery-ui-1.8.5.js +23753 -23341
  122. data/templates/jrails/jquery-ui-1.8.5.min.js +823 -808
  123. data/templates/jrails/jquery.contextMenu.min.js +1 -1
  124. data/templates/jrails/jquery.sparkline.js +1050 -0
  125. data/templates/jrails/jquery.sparkline.min.js +31 -0
  126. data/templates/jrails/jquery.ui/_theme.scss +1699 -1634
  127. data/templates/jrails/manifest.rb +13 -11
  128. data/templates/jstree/jquery.jstree.min.js +10 -10
  129. data/templates/ribbon/jquery.ribbon.min.js +6 -6
  130. metadata +27 -4
@@ -4,17 +4,6 @@
4
4
  file 'config/initializers/jrails.rb'
5
5
  javascript 'jrails.js'
6
6
  javascript 'jrails.min.js'
7
- stylesheet 'partials/_flash_messages.scss', :media => 'screen, projection'
8
- image 'jquery.ui/flash_messages/flash-check.png'
9
- image 'jquery.ui/flash_messages/flash-error-bg.png'
10
- image 'jquery.ui/flash_messages/flash-error.png'
11
- image 'jquery.ui/flash_messages/flash-notice-bg.png'
12
- image 'jquery.ui/flash_messages/flash-warning-bg.png'
13
- image 'jquery.ui/flash_messages/flash-warning.png'
14
- javascript 'jquery.haml.js'
15
- javascript 'jquery.haml.min.js'
16
- javascript 'haml.js'
17
- javascript 'haml.min.js'
18
7
  javascript 'jquery-1.4.2.js'
19
8
  javascript 'jquery-1.4.2.min.js'
20
9
  javascript 'jquery.compat-1.3.js'
@@ -584,3 +573,16 @@ image 'jquery.ui/vader/ui-icons_c98000_256x240.png'
584
573
  image 'jquery.ui/vader/ui-icons_cccccc_256x240.png'
585
574
  image 'jquery.ui/vader/ui-icons_cd0a0a_256x240.png'
586
575
  image 'jquery.ui/vader/ui-icons_f29a00_256x240.png'
576
+ javascript 'jquery.sparkline.js'
577
+ javascript 'jquery.sparkline.min.js'
578
+ javascript 'jquery.haml.js'
579
+ javascript 'jquery.haml.min.js'
580
+ javascript 'haml.js'
581
+ javascript 'haml.min.js'
582
+ stylesheet 'partials/_flash_messages.scss', :media => 'screen, projection'
583
+ image 'jquery.ui/flash_messages/flash-check.png'
584
+ image 'jquery.ui/flash_messages/flash-error-bg.png'
585
+ image 'jquery.ui/flash_messages/flash-error.png'
586
+ image 'jquery.ui/flash_messages/flash-notice-bg.png'
587
+ image 'jquery.ui/flash_messages/flash-warning-bg.png'
588
+ image 'jquery.ui/flash_messages/flash-warning.png'
@@ -1,4 +1,4 @@
1
- (function(b){b.vakata={};b.vakata.css={get_css:function(a,d,e){a=a.toLowerCase();var f=e.cssRules||e.rules,i=0;do{if(f.length&&i>f.length+5)return false;if(f[i].selectorText&&f[i].selectorText.toLowerCase()==a)if(d===true){e.removeRule&&e.removeRule(i);e.deleteRule&&e.deleteRule(i);return true}else return f[i]}while(f[++i]);return false},add_css:function(a,d){if(b.jstree.css.get_css(a,false,d))return false;d.insertRule?d.insertRule(a+" { }",0):d.addRule(a,null,0);return b.vakata.css.get_css(a)},remove_css:function(a,
1
+ (function(b){b.vakata={};b.vakata.css={get_css:function(a,d,e){a=a.toLowerCase();var f=e.cssRules||e.rules,i=0;do{if(f.length&&i>f.length+5)break;if(f[i].selectorText&&f[i].selectorText.toLowerCase()==a)if(d===true){e.removeRule&&e.removeRule(i);e.deleteRule&&e.deleteRule(i);return true}else return f[i]}while(f[++i]);return false},add_css:function(a,d){if(b.jstree.css.get_css(a,false,d))return false;d.insertRule?d.insertRule(a+" { }",0):d.addRule(a,null,0);return b.vakata.css.get_css(a)},remove_css:function(a,
2
2
  d){return b.vakata.css.get_css(a,true,d)},add_sheet:function(a){var d;if(a.str){d=document.createElement("style");d.setAttribute("type","text/css");if(d.styleSheet){document.getElementsByTagName("head")[0].appendChild(d);d.styleSheet.cssText=a.str}else{d.appendChild(document.createTextNode(a.str));document.getElementsByTagName("head")[0].appendChild(d)}return d.sheet||d.styleSheet}if(a.url)if(document.createStyleSheet)try{document.createStyleSheet(a.url)}catch(e){}else{d=document.createElement("link");
3
3
  d.rel="stylesheet";d.type="text/css";d.media="all";d.href=a.url;document.getElementsByTagName("head")[0].appendChild(d);return d.styleSheet}}}})(jQuery);
4
4
  (function(b){var a=[],d=-1,e={},f={},i=false;b.fn.jstree=function(c){var g=typeof c=="string",h=Array.prototype.slice.call(arguments,1),j=this;!g&&b.meta&&h.push(b.metadata.get(this).jstree);c=!g&&h.length?b.extend.apply(null,[true,c].concat(h)):c;if(g&&c.substring(0,1)=="_")return j;g?this.each(function(){var l=a[b.data(this,"jstree-instance-id")];l=l&&b.isFunction(l[c])?l[c].apply(l,h):l;if(typeof l!=="undefined"&&(c.indexOf("is_"===0)||l!==true&&l!==false)){j=l;return false}}):this.each(function(){var l=
@@ -25,11 +25,11 @@ c?this._get_node(c):this.get_container();if(!c||c===-1)c=this.get_container();if
25
25
  get_rollback:function(){this.__callback();return{i:this.get_index(),h:this.get_container().children("ul").clone(true),d:this.data}},set_rollback:function(c,g){this.get_container().empty().append(c);this.data=g;this.__callback()},load_node:function(c){this.__callback({obj:c})},_is_loaded:function(){return true},create_node:function(c,g,h,j,l){c=this._get_node(c);g=typeof g==="undefined"?"last":g;var k=b("<li>"),m=this._get_settings().core,n;if(c!==-1&&!c.length)return false;if(!l&&!this._is_loaded(c)){this.load_node(c,
26
26
  function(){this.create_node(c,g,h,j,true)});return false}this.__rollback();if(typeof h==="string")h={data:h};h||(h={});h.attr&&k.attr(h.attr);h.state&&k.addClass("jstree-"+h.state);if(!h.data)h.data=m.strings.new_node;if(!b.isArray(h.data)){n=h.data;h.data=[];h.data.push(n)}b.each(h.data,function(p,o){n=b("<a>");if(b.isFunction(o))o=o.call(this,h);if(typeof o=="string")n.attr("href","#")[m.html_titles?"html":"text"](o);else{if(!o.attr)o.attr={};if(!o.attr.href)o.attr.href="#";n.attr(o.attr)[m.html_titles?
27
27
  "html":"text"](o.title);o.language&&n.addClass(o.language)}n.prepend("<ins class='jstree-icon'>&#160;</ins>");if(o.icon)o.icon.indexOf("/")===-1?n.children("ins").addClass(o.icon):n.children("ins").css("background","url('"+o.icon+"') center center no-repeat");k.append(n)});k.prepend("<ins class='jstree-icon'>&#160;</ins>");if(c===-1){c=this.get_container();if(g==="before")g="first";if(g==="after")g="last"}switch(g){case "before":c.before(k);n=this._get_parent(c);break;case "after":c.after(k);n=this._get_parent(c);
28
- break;case "inside":case "first":c.children("ul").length||c.append("<ul>");c.children("ul").prepend(k);n=c;break;case "last":c.children("ul").length||c.append("<ul>");c.children("ul").append(k);n=c;break;default:c.children("ul").length||c.append("<ul>");g||(g=0);n=c.children("ul").children("li").eq(g);n.length?n.before(k):c.children("ul").append(k);n=c;break}if(n===-1||n.get(0)===this.get_container().get(0))n=-1;this.clean_node(n);this.__callback({obj:k,parent:n});j&&j.call(this,k);return k},get_text:function(c){c=
28
+ break;case "inside":case "first":c.children("ul").length||c.append("<ul>");c.children("ul").prepend(k);n=c;break;case "last":c.children("ul").length||c.append("<ul>");c.children("ul").append(k);n=c;break;default:c.children("ul").length||c.append("<ul>");g||(g=0);n=c.children("ul").children("li").eq(g);n.length?n.before(k):c.children("ul").append(k);n=c}if(n===-1||n.get(0)===this.get_container().get(0))n=-1;this.clean_node(n);this.__callback({obj:k,parent:n});j&&j.call(this,k);return k},get_text:function(c){c=
29
29
  this._get_node(c);if(!c.length)return false;var g=this._get_settings().core.html_titles;c=c.children("a:eq(0)");if(g){c=c.clone();c.children("INS").remove();return c.html()}else{c=c.contents().filter(function(){return this.nodeType==3})[0];return c.nodeValue}},set_text:function(c,g){c=this._get_node(c);if(!c.length)return false;c=c.children("a:eq(0)");if(this._get_settings().core.html_titles){var h=c.children("INS").clone();c.html(g).prepend(h);this.__callback({obj:c,name:g});return true}else{c=c.contents().filter(function(){return this.nodeType==
30
30
  3})[0];this.__callback({obj:c,name:g});return c.nodeValue=g}},rename_node:function(c,g){c=this._get_node(c);this.__rollback();c&&c.length&&this.set_text.apply(this,Array.prototype.slice.call(arguments))&&this.__callback({obj:c,name:g})},delete_node:function(c){c=this._get_node(c);if(!c.length)return false;this.__rollback();var g=this._get_parent(c),h=this._get_prev(c);c=c.remove();g!==-1&&g.find("> ul > li").length===0&&g.removeClass("jstree-open jstree-closed").addClass("jstree-leaf");this.clean_node(g);
31
31
  this.__callback({obj:c,prev:h});return c},prepare_move:function(c,g,h,j,l){var k={};k.ot=b.jstree._reference(k.o)||this;k.o=k.ot._get_node(c);k.r=g===-1?-1:this._get_node(g);k.p=typeof k==="undefined"?"last":h;if(!(!l&&f.o&&f.o[0]===k.o[0]&&f.r[0]===k.r[0]&&f.p===k.p)){k.ot=b.jstree._reference(k.o)||this;k.rt=g===-1?k.ot:b.jstree._reference(k.r)||this;if(k.r===-1){k.cr=-1;switch(k.p){case "first":case "before":case "inside":k.cp=0;break;case "after":case "last":k.cp=k.rt.get_container().find(" > ul > li").length;
32
- break;default:k.cp=k.p;break}}else{if(!/^(before|after)$/.test(k.p)&&!this._is_loaded(k.r))return this.load_node(k.r,function(){this.prepare_move(c,g,h,j,true)});switch(k.p){case "before":k.cp=k.r.index();k.cr=k.rt._get_parent(k.r);break;case "after":k.cp=k.r.index()+1;k.cr=k.rt._get_parent(k.r);break;case "inside":case "first":k.cp=0;k.cr=k.r;break;case "last":k.cp=k.r.find(" > ul > li").length;k.cr=k.r;break;default:k.cp=k.p;k.cr=k.r;break}}k.np=k.cr==-1?k.rt.get_container():k.cr;k.op=k.ot._get_parent(k.o);
32
+ break;default:k.cp=k.p}}else{if(!/^(before|after)$/.test(k.p)&&!this._is_loaded(k.r))return this.load_node(k.r,function(){this.prepare_move(c,g,h,j,true)});switch(k.p){case "before":k.cp=k.r.index();k.cr=k.rt._get_parent(k.r);break;case "after":k.cp=k.r.index()+1;k.cr=k.rt._get_parent(k.r);break;case "inside":case "first":k.cp=0;k.cr=k.r;break;case "last":k.cp=k.r.find(" > ul > li").length;k.cr=k.r;break;default:k.cp=k.p;k.cr=k.r}}k.np=k.cr==-1?k.rt.get_container():k.cr;k.op=k.ot._get_parent(k.o);
33
33
  k.or=k.np.find(" > ul > li:nth-child("+(k.cp+1)+")");f=k}this.__callback(f);j&&j.call(this,f)},check_move:function(){var c=f,g=true;if(c.or[0]===c.o[0])return false;c.o.each(function(){if(c.r.parentsUntil(".jstree").andSelf().filter("li").index(this)!==-1)return g=false});return g},move_node:function(c,g,h,j,l,k){if(!l)return this.prepare_move(c,g,h,function(n){this.move_node(n,false,false,j,true,k)});if(!k&&!this.check_move())return false;this.__rollback();g=false;if(j){g=c.o.clone();g.find("*[id]").andSelf().each(function(){if(this.id)this.id=
34
34
  "copy_"+this.id})}else g=c.o;if(c.or.length)c.or.before(g);else{c.np.children("ul").length||b("<ul>").appendTo(c.np);c.np.children("ul:eq(0)").append(g)}try{c.ot.clean_node(c.op);c.rt.clean_node(c.np);c.op.find("> ul > li").length||c.op.removeClass("jstree-open jstree-closed").addClass("jstree-leaf").children("ul").remove()}catch(m){}if(j){f.cy=true;f.oc=g}this.__callback(f);return f},_get_move:function(){return f}}})})(jQuery);
35
35
  (function(b){b.jstree.plugin("ui",{__init:function(){this.data.ui.selected=b();this.data.ui.last_selected=false;this.data.ui.hovered=null;this.data.ui.to_select=this.get_settings().ui.initially_select;this.get_container().delegate("a","click.jstree",b.proxy(function(a){a.preventDefault();this.select_node(a.currentTarget,true,a)},this)).delegate("a","mouseenter.jstree",b.proxy(function(a){this.hover_node(a.target)},this)).delegate("a","mouseleave.jstree",b.proxy(function(a){this.dehover_node(a.target)},
@@ -39,7 +39,7 @@ selected_parent_close:"select_parent",select_prev_on_delete:true,disable_selecti
39
39
  this.id.toString().replace(/^#/,"").replace("\\/","/").replace("/","\\/"))});this.__callback(this.data.ui.to_select)},reselect:function(){var a=this,d=this.data.ui.to_select;d=b.map(b.makeArray(d),function(e){return"#"+e.toString().replace(/^#/,"").replace("\\/","/").replace("/","\\/")});this.deselect_all();b.each(d,function(e,f){f&&f!=="#"&&a.select_node(f)});this.__callback()},refresh:function(){this.save_selected();return this.__call_old()},hover_node:function(a){a=this._get_node(a);if(!a.length)return false;
40
40
  a.hasClass("jstree-hovered")||this.dehover_node();this.data.ui.hovered=a.children("a").addClass("jstree-hovered").parent();this.__callback({obj:a})},dehover_node:function(){var a=this.data.ui.hovered;if(!a||!a.length)return false;if(this.data.ui.hovered[0]===a.children("a").removeClass("jstree-hovered").parent()[0])this.data.ui.hovered=null;this.__callback({obj:a})},select_node:function(a,d,e){a=this._get_node(a);if(a==-1||!a||!a.length)return false;var f=this._get_settings().ui;e=f.select_multiple_modifier==
41
41
  "on"||f.select_multiple_modifier!==false&&e&&e[f.select_multiple_modifier+"Key"];var i=this.is_selected(a),c=true;if(d){if(f.disable_selecting_children&&e&&a.parents("li",this.get_container()).children(".jstree-clicked").length)return false;c=false;switch(true){case i&&!e:this.deselect_all();i=false;c=true;break;case !i&&!e:if(f.select_limit==-1||f.select_limit>0){this.deselect_all();c=true}break;case i&&e:this.deselect_node(a);break;case !i&&e:if(f.select_limit==-1||this.data.ui.selected.length+
42
- 1<=f.select_limit)c=true;break}}if(c&&!i){a.children("a").addClass("jstree-clicked");this.data.ui.selected=this.data.ui.selected.add(a);this.data.ui.last_selected=a;this.__callback({obj:a})}},deselect_node:function(a){a=this._get_node(a);if(!a.length)return false;if(this.is_selected(a)){a.children("a").removeClass("jstree-clicked");this.data.ui.selected=this.data.ui.selected.not(a);if(this.data.ui.last_selected.get(0)===a.get(0))this.data.ui.last_selected=this.data.ui.selected.eq(0);this.__callback({obj:a})}},
42
+ 1<=f.select_limit)c=true}}if(c&&!i){a.children("a").addClass("jstree-clicked");this.data.ui.selected=this.data.ui.selected.add(a);this.data.ui.last_selected=a;this.__callback({obj:a})}},deselect_node:function(a){a=this._get_node(a);if(!a.length)return false;if(this.is_selected(a)){a.children("a").removeClass("jstree-clicked");this.data.ui.selected=this.data.ui.selected.not(a);if(this.data.ui.last_selected.get(0)===a.get(0))this.data.ui.last_selected=this.data.ui.selected.eq(0);this.__callback({obj:a})}},
43
43
  toggle_select:function(a){a=this._get_node(a);if(!a.length)return false;this.is_selected(a)?this.deselect_node(a):this.select_node(a)},is_selected:function(a){return this.data.ui.selected.index(this._get_node(a))>=0},get_selected:function(a){return a?b(a).find(".jstree-clicked").parent():this.data.ui.selected},deselect_all:function(a){a?b(a).find(".jstree-clicked").removeClass("jstree-clicked"):this.get_container().find(".jstree-clicked").removeClass("jstree-clicked");this.data.ui.selected=b([]);
44
44
  this.data.ui.last_selected=false;this.__callback()}}});b.jstree.defaults.plugins.push("ui")})(jQuery);
45
45
  (function(b){b.jstree.plugin("crrm",{__init:function(){this.get_container().bind("move_node.jstree",b.proxy(function(a,d){if(this._get_settings().crrm.move.open_onmove){var e=this;d.rslt.np.parentsUntil(".jstree").andSelf().filter(".jstree-closed").each(function(){e.open_node(this,false,true)})}},this))},defaults:{input_width_limit:200,move:{always_copy:false,open_onmove:true,default_position:"last",check_move:function(){return true}}},_fn:{_show_input:function(a,d){a=this._get_node(a);var e=this._get_settings().core.rtl,
@@ -63,7 +63,7 @@ b.removeData(a,"jstree-children")}this.clean_node(a);return true}return a==-1||!
63
63
  (!a||a===-1):if(!a||a==-1)if(i=this._parse_json(f.data)){this.get_container().children("ul").empty().append(i.children());this.clean_node()}else f.correct_state&&this.get_container().children("ul").empty();d&&d.call(this);break;case !f.data&&!!f.ajax||!!f.data&&!!f.ajax&&a&&a!==-1:c=function(g,h,j){var l=this.get_settings().json_data.ajax.error;l&&l.call(this,g,h,j);if(a!=-1&&a.length){a.children(".jstree-loading").removeClass("jstree-loading");a.data("jstree-is-loading",false);h==="success"&&f.correct_state&&
64
64
  a.removeClass("jstree-open jstree-closed").addClass("jstree-leaf")}else h==="success"&&f.correct_state&&this.get_container().children("ul").empty();e&&e.call(this)};i=function(g,h,j){var l=this.get_settings().json_data.ajax.success;if(l)g=l.call(this,g,h,j)||g;if(g===""||!b.isArray(g)&&!b.isPlainObject(g))return c.call(this,j,h,"");if(g=this._parse_json(g)){if(a===-1||!a)this.get_container().children("ul").empty().append(g.children());else{a.append(g).children(".jstree-loading").removeClass("jstree-loading");
65
65
  a.data("jstree-is-loading",false)}this.clean_node(a);d&&d.call(this)}else if(a===-1||!a){if(f.correct_state){this.get_container().children("ul").empty();d&&d.call(this)}}else{a.children(".jstree-loading").removeClass("jstree-loading");a.data("jstree-is-loading",false);if(f.correct_state){a.removeClass("jstree-open jstree-closed").addClass("jstree-leaf");d&&d.call(this)}}};f.ajax.context=this;f.ajax.error=c;f.ajax.success=i;if(!f.ajax.dataType)f.ajax.dataType="json";if(b.isFunction(f.ajax.url))f.ajax.url=
66
- f.ajax.url.call(this,a);if(b.isFunction(f.ajax.data))f.ajax.data=f.ajax.data.call(this,a);b.ajax(f.ajax);break}},_parse_json:function(a,d){var e=false,f=this._get_settings(),i=f.json_data,c=f.core.html_titles,g;if(!a)return e;if(b.isFunction(a))a=a.call(this);if(b.isArray(a)){e=b();if(!a.length)return false;f=0;for(i=a.length;f<i;f++){g=this._parse_json(a[f],true);if(g.length)e=e.add(g)}}else{if(typeof a=="string")a={data:a};if(!a.data&&a.data!=="")return e;e=b("<li>");a.attr&&e.attr(a.attr);a.metadata&&
66
+ f.ajax.url.call(this,a);if(b.isFunction(f.ajax.data))f.ajax.data=f.ajax.data.call(this,a);b.ajax(f.ajax)}},_parse_json:function(a,d){var e=false,f=this._get_settings(),i=f.json_data,c=f.core.html_titles,g;if(!a)return e;if(b.isFunction(a))a=a.call(this);if(b.isArray(a)){e=b();if(!a.length)return false;f=0;for(i=a.length;f<i;f++){g=this._parse_json(a[f],true);if(g.length)e=e.add(g)}}else{if(typeof a=="string")a={data:a};if(!a.data&&a.data!=="")return e;e=b("<li>");a.attr&&e.attr(a.attr);a.metadata&&
67
67
  e.data("jstree",a.metadata);a.state&&e.addClass("jstree-"+a.state);if(!b.isArray(a.data)){g=a.data;a.data=[];a.data.push(g)}b.each(a.data,function(h,j){g=b("<a>");if(b.isFunction(j))j=j.call(this,a);if(typeof j=="string")g.attr("href","#")[c?"html":"text"](j);else{if(!j.attr)j.attr={};if(!j.attr.href)j.attr.href="#";g.attr(j.attr)[c?"html":"text"](j.title);j.language&&g.addClass(j.language)}g.prepend("<ins class='jstree-icon'>&#160;</ins>");if(!j.icon&&a.icon)j.icon=a.icon;if(j.icon)j.icon.indexOf("/")===
68
68
  -1?g.children("ins").addClass(j.icon):g.children("ins").css("background","url('"+j.icon+"') center center no-repeat");e.append(g)});e.prepend("<ins class='jstree-icon'>&#160;</ins>");if(a.children)if(i.progressive_render&&a.state!=="open")e.addClass("jstree-closed").data("jstree-children",a.children);else{if(b.isFunction(a.children))a.children=a.children.call(this,a);if(b.isArray(a.children)&&a.children.length){g=this._parse_json(a.children,true);if(g.length){f=b("<ul>");f.append(g);e.append(f)}}}}if(!d){f=
69
69
  b("<ul>");f.append(e);e=f}return e},get_json:function(a,d,e,f){var i=[],c=this._get_settings(),g=this,h,j,l,k,m,n;a=this._get_node(a);if(!a||a===-1)a=this.get_container().find("> ul > li");d=b.isArray(d)?d:["id","class"];!f&&this.data.types&&d.push(c.types.type_attr);e=b.isArray(e)?e:[];a.each(function(){l=b(this);h={data:[]};if(d.length)h.attr={};b.each(d,function(p,o){if((j=l.attr(o))&&j.length&&j.replace(/jstree[^ ]*|$/ig,"").length)h.attr[o]=j.replace(/jstree[^ ]*|$/ig,"")});if(l.hasClass("jstree-open"))h.state=
@@ -77,7 +77,7 @@ a.html(d).prepend(f);this.__callback({obj:a,name:d,lang:e});return true}else{a=a
77
77
  " } "}this.data.languages.language_css=b.vakata.css.add_sheet({str:d})}},create_node:function(a,d,e,f){return this.__call_old(true,a,d,e,function(i){var c=this._get_settings().languages,g=i.children("a"),h;if(b.isArray(c)&&c.length){for(h=0;h<c.length;h++)g.is("."+c[h])||i.append(g.eq(0).clone().removeClass(c.join(" ")).addClass(c[h]));g.not("."+c.join(", .")).remove()}f&&f.call(this,i)})}}})})(jQuery);
78
78
  (function(b){b.jstree.plugin("cookies",{__init:function(){if(typeof b.cookie==="undefined")throw"jsTree cookie: jQuery cookie plugin not included.";var a=this._get_settings().cookies,d;if(a.save_opened)if((d=b.cookie(a.save_opened))&&d.length)this.data.core.to_open=d.split(",");if(a.save_selected)if((d=b.cookie(a.save_selected))&&d.length&&this.data.ui)this.data.ui.to_select=d.split(",");this.get_container().one((this.data.ui?"reselect":"reopen")+".jstree",b.proxy(function(){this.get_container().bind("open_node.jstree close_node.jstree select_node.jstree deselect_node.jstree",
79
79
  b.proxy(function(e){this._get_settings().cookies.auto_save&&this.save_cookie((e.handleObj.namespace+e.handleObj.type).replace("jstree",""))},this))},this))},defaults:{save_opened:"jstree_open",save_selected:"jstree_select",auto_save:true,cookie_options:{}},_fn:{save_cookie:function(a){if(!this.data.core.refreshing){var d=this._get_settings().cookies;if(a)switch(a){case "open_node":case "close_node":if(d.save_opened){this.save_opened();b.cookie(d.save_opened,this.data.core.to_open.join(","),d.cookie_options)}break;
80
- case "select_node":case "deselect_node":if(d.save_selected&&this.data.ui){this.save_selected();b.cookie(d.save_selected,this.data.ui.to_select.join(","),d.cookie_options)}break}else{if(d.save_opened){this.save_opened();b.cookie(d.save_opened,this.data.core.to_open.join(","),d.cookie_options)}if(d.save_selected&&this.data.ui){this.save_selected();b.cookie(d.save_selected,this.data.ui.to_select.join(","),d.cookie_options)}}}}}});b.jstree.defaults.plugins.push("cookies")})(jQuery);
80
+ case "select_node":case "deselect_node":if(d.save_selected&&this.data.ui){this.save_selected();b.cookie(d.save_selected,this.data.ui.to_select.join(","),d.cookie_options)}}else{if(d.save_opened){this.save_opened();b.cookie(d.save_opened,this.data.core.to_open.join(","),d.cookie_options)}if(d.save_selected&&this.data.ui){this.save_selected();b.cookie(d.save_selected,this.data.ui.to_select.join(","),d.cookie_options)}}}}}});b.jstree.defaults.plugins.push("cookies")})(jQuery);
81
81
  (function(b){b.jstree.plugin("sort",{__init:function(){this.get_container().bind("load_node.jstree",b.proxy(function(a,d){var e=this._get_node(d.rslt.obj);e=e===-1?this.get_container().children("ul"):e.children("ul");this.sort(e)},this)).bind("rename_node.jstree",b.proxy(function(a,d){this.sort(d.rslt.obj.parent())},this)).bind("move_node.jstree",b.proxy(function(a,d){this.sort((d.rslt.np==-1?this.get_container():d.rslt.np).children("ul"))},this))},defaults:function(a,d){return this.get_text(a)>this.get_text(d)?
82
82
  1:-1},_fn:{sort:function(a){var d=this._get_settings().sort,e=this;a.append(b.makeArray(a.children("li")).sort(b.proxy(d,e)));a.find("> li > ul").each(function(){e.sort(b(this))});this.clean_node(a)}}})})(jQuery);
83
83
  (function(b){var a=false,d=false,e=false,f=false,i=false,c=false,g=false;b.vakata.dnd={is_down:false,is_drag:false,helper:false,scroll_spd:10,init_x:0,init_y:0,threshold:5,user_data:{},drag_start:function(h,j,l){b.vakata.dnd.is_drag&&b.vakata.drag_stop({});try{h.currentTarget.unselectable="on";h.currentTarget.onselectstart=function(){return false};if(h.currentTarget.style)h.currentTarget.style.MozUserSelect="none"}catch(k){}b.vakata.dnd.init_x=h.pageX;b.vakata.dnd.init_y=h.pageY;b.vakata.dnd.user_data=
@@ -98,7 +98,7 @@ b.vakata.dnd.helper.children("ins").attr("class","jstree-invalid")},this)).deleg
98
98
  before:false,inside:true}}},_fn:{dnd_prepare:function(){if(d&&d.length){this.data.dnd.off=d.offset();if(this._get_settings().core.rtl)this.data.dnd.off.right=this.data.dnd.off.left+d.width();if(this.data.dnd.foreign){var h=this._get_settings().dnd.drag_check.call(this,{o:a,r:d});this.data.dnd.after=h.after;this.data.dnd.before=h.before;this.data.dnd.inside=h.inside;this.data.dnd.prepared=true;return this.dnd_show()}this.prepare_move(a,d,"before");this.data.dnd.before=this.check_move();this.prepare_move(a,
99
99
  d,"after");this.data.dnd.after=this.check_move();if(this._is_loaded(d)){this.prepare_move(a,d,"inside");this.data.dnd.inside=this.check_move()}else this.data.dnd.inside=false;this.data.dnd.prepared=true;return this.dnd_show()}},dnd_show:function(){if(this.data.dnd.prepared){var h=["before","inside","after"],j=false,l=this._get_settings().core.rtl;h=this.data.dnd.w<this.data.core.li_height/3?["before","inside","after"]:this.data.dnd.w<=this.data.core.li_height*2/3?this.data.dnd.w<this.data.core.li_height/
100
100
  2?["inside","before","after"]:["inside","after","before"]:["after","inside","before"];b.each(h,b.proxy(function(k,m){if(this.data.dnd[m]){b.vakata.dnd.helper.children("ins").attr("class","jstree-ok");j=m;return false}},this));j===false&&b.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");h=l?this.data.dnd.off.right-18:this.data.dnd.off.left+10;switch(j){case "before":e.css({left:h+"px",top:this.data.dnd.off.top-6+"px"}).show();break;case "after":e.css({left:h+"px",top:this.data.dnd.off.top+
101
- this.data.core.li_height-7+"px"}).show();break;case "inside":e.css({left:h+(l?-4:4)+"px",top:this.data.dnd.off.top+this.data.core.li_height/2-5+"px"}).show();break;default:e.hide();break}return j}},dnd_open:function(){this.data.dnd.to2=false;this.open_node(d,b.proxy(this.dnd_prepare,this),true)},dnd_finish:function(h){if(this.data.dnd.foreign){if(this.data.dnd.after||this.data.dnd.before||this.data.dnd.inside)this._get_settings().dnd.drag_finish.call(this,{o:a,r:d})}else{this.dnd_prepare();this.move_node(a,
101
+ this.data.core.li_height-7+"px"}).show();break;case "inside":e.css({left:h+(l?-4:4)+"px",top:this.data.dnd.off.top+this.data.core.li_height/2-5+"px"}).show();break;default:e.hide()}return j}},dnd_open:function(){this.data.dnd.to2=false;this.open_node(d,b.proxy(this.dnd_prepare,this),true)},dnd_finish:function(h){if(this.data.dnd.foreign){if(this.data.dnd.after||this.data.dnd.before||this.data.dnd.inside)this._get_settings().dnd.drag_finish.call(this,{o:a,r:d})}else{this.dnd_prepare();this.move_node(a,
102
102
  d,this.dnd_show(),h[this._get_settings().dnd.copy_modifier+"Key"])}d=a=false;e.hide()},dnd_enter:function(h){var j=this._get_settings().dnd;this.data.dnd.prepared=false;d=this._get_node(h);if(j.check_timeout){this.data.dnd.to1&&clearTimeout(this.data.dnd.to1);this.data.dnd.to1=setTimeout(b.proxy(this.dnd_prepare,this),j.check_timeout)}else this.dnd_prepare();if(j.open_timeout){this.data.dnd.to2&&clearTimeout(this.data.dnd.to2);if(d&&d.length&&d.hasClass("jstree-closed"))this.data.dnd.to2=setTimeout(b.proxy(this.dnd_open,
103
103
  this),j.open_timeout)}else d&&d.length&&d.hasClass("jstree-closed")&&this.dnd_open()},start_drag:function(h,j){a=this._get_node(h);if(this.data.ui&&this.is_selected(a))a=this._get_node(null,true);b.vakata.dnd.drag_start(j,{jstree:true,obj:a},"<ins class='jstree-icon'></ins>"+(a.length>1?"Multiple selection":this.get_text(a)));if(this.data.themes){e.attr("class","jstree-"+this.data.themes.theme);b.vakata.dnd.helper.attr("class","jstree-dnd-helper jstree-"+this.data.themes.theme)}var l=this.get_container();
104
104
  this.data.dnd.cof=l.children("ul").offset();this.data.dnd.cw=parseInt(l.width(),10);this.data.dnd.ch=parseInt(l.height(),10);this.data.dnd.active=true}}});b(function(){b.vakata.css.add_sheet({str:"#vakata-dragged ins { display:block; text-decoration:none; width:16px; height:16px; margin:0 0 0 0; padding:0; position:absolute; top:4px; left:4px; } #vakata-dragged .jstree-ok { background:green; } #vakata-dragged .jstree-invalid { background:red; } #jstree-marker { padding:0; margin:0; line-height:12px; font-size:1px; overflow:hidden; height:12px; width:8px; position:absolute; top:-30px; z-index:10000; background-repeat:no-repeat; display:none; background-color:silver; } "});
@@ -119,8 +119,8 @@ b.jstree.plugin("xml_data",{defaults:{data:false,ajax:false,xsl:"flat",clean_nod
119
119
  if((d=this._get_node(d))&&d!==-1)if(d.data("jstree-is-loading"))return;else d.data("jstree-is-loading",true);switch(true){case !i.data&&!i.ajax:throw"Neither data nor ajax settings supplied.";case !!i.data&&!i.ajax||!!i.data&&!!i.ajax&&(!d||d===-1):if(!d||d==-1)this.parse_xml(i.data,b.proxy(function(h){if(h){h=h.replace(/ ?xmlns="[^"]*"/ig,"");if(h.length>10){h=b(h);this.get_container().children("ul").empty().append(h.children());i.clean_node&&this.clean_node(d);e&&e.call(this)}}else if(i.correct_state){this.get_container().children("ul").empty();
120
120
  e&&e.call(this)}},this));break;case !i.data&&!!i.ajax||!!i.data&&!!i.ajax&&d&&d!==-1:c=function(h,j,l){var k=this.get_settings().xml_data.ajax.error;k&&k.call(this,h,j,l);if(d!==-1&&d.length){d.children(".jstree-loading").removeClass("jstree-loading");d.data("jstree-is-loading",false);j==="success"&&i.correct_state&&d.removeClass("jstree-open jstree-closed").addClass("jstree-leaf")}else j==="success"&&i.correct_state&&this.get_container().children("ul").empty();f&&f.call(this)};g=function(h,j,l){h=
121
121
  l.responseText;var k=this.get_settings().xml_data.ajax.success;if(k)h=k.call(this,h,j,l)||h;if(h=="")return c.call(this,l,j,"");this.parse_xml(h,b.proxy(function(m){if(m){m=m.replace(/ ?xmlns="[^"]*"/ig,"");if(m.length>10){m=b(m);if(d===-1||!d)this.get_container().children("ul").empty().append(m.children());else{d.children(".jstree-loading").removeClass("jstree-loading");d.append(m);d.data("jstree-is-loading",false)}i.clean_node&&this.clean_node(d);e&&e.call(this)}else if(d&&d!==-1){d.children(".jstree-loading").removeClass("jstree-loading");
122
- d.data("jstree-is-loading",false);if(i.correct_state){d.removeClass("jstree-open jstree-closed").addClass("jstree-leaf");e&&e.call(this)}}else if(i.correct_state){this.get_container().children("ul").empty();e&&e.call(this)}}},this))};i.ajax.context=this;i.ajax.error=c;i.ajax.success=g;if(!i.ajax.dataType)i.ajax.dataType="xml";if(b.isFunction(i.ajax.url))i.ajax.url=i.ajax.url.call(this,d);if(b.isFunction(i.ajax.data))i.ajax.data=i.ajax.data.call(this,d);b.ajax(i.ajax);break}},parse_xml:function(d,
123
- e){var f=this._get_settings().xml_data;b.vakata.xslt(d,a[f.xsl],e)},get_xml:function(d,e,f,i,c){var g="",h=this._get_settings(),j=this,l,k,m,n,p;d||(d="flat");c||(c=0);e=this._get_node(e);if(!e||e===-1)e=this.get_container().find("> ul > li");f=b.isArray(f)?f:["id","class"];!c&&this.data.types&&b.inArray(h.types.type_attr,f)===-1&&f.push(h.types.type_attr);i=b.isArray(i)?i:[];c||(g+="<root>");e.each(function(){g+="<item";m=b(this);b.each(f,function(o,q){g+=" "+q+'="'+(m.attr(q)||"").replace(/jstree[^ ]*|$/ig,
122
+ d.data("jstree-is-loading",false);if(i.correct_state){d.removeClass("jstree-open jstree-closed").addClass("jstree-leaf");e&&e.call(this)}}else if(i.correct_state){this.get_container().children("ul").empty();e&&e.call(this)}}},this))};i.ajax.context=this;i.ajax.error=c;i.ajax.success=g;if(!i.ajax.dataType)i.ajax.dataType="xml";if(b.isFunction(i.ajax.url))i.ajax.url=i.ajax.url.call(this,d);if(b.isFunction(i.ajax.data))i.ajax.data=i.ajax.data.call(this,d);b.ajax(i.ajax)}},parse_xml:function(d,e){var f=
123
+ this._get_settings().xml_data;b.vakata.xslt(d,a[f.xsl],e)},get_xml:function(d,e,f,i,c){var g="",h=this._get_settings(),j=this,l,k,m,n,p;d||(d="flat");c||(c=0);e=this._get_node(e);if(!e||e===-1)e=this.get_container().find("> ul > li");f=b.isArray(f)?f:["id","class"];!c&&this.data.types&&b.inArray(h.types.type_attr,f)===-1&&f.push(h.types.type_attr);i=b.isArray(i)?i:[];c||(g+="<root>");e.each(function(){g+="<item";m=b(this);b.each(f,function(o,q){g+=" "+q+'="'+(m.attr(q)||"").replace(/jstree[^ ]*|$/ig,
124
124
  "").replace(/^\s+$/ig,"")+'"'});if(m.hasClass("jstree-open"))g+=' state="open"';if(m.hasClass("jstree-closed"))g+=' state="closed"';if(d==="flat")g+=' parent_id="'+c+'"';g+=">";g+="<content>";n=m.children("a");n.each(function(){l=b(this);p=false;g+="<name";b.inArray("languages",h.plugins)!==-1&&b.each(h.languages,function(o,q){if(l.hasClass(q)){g+=' lang="'+q+'"';p=q;return false}});i.length&&b.each(i,function(o,q){g+=" "+q+'="'+(l.attr(q)||"").replace(/jstree[^ ]*|$/ig,"")+'"'});if(l.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,
125
125
  "").replace(/^\s+$/ig,"").length)g+=' icon="'+l.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,"").replace(/^\s+$/ig,"")+'"';if(l.children("ins").get(0).style.backgroundImage.length)g+=' icon="'+l.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","")+'"';g+=">";g+="<![CDATA["+j.get_text(l,p)+"]]\>";g+="</name>"});g+="</content>";k=m[0].id;m=m.find("> ul > li");k=m.length?j.get_xml(d,m,f,i,k):"";if(d=="nest")g+=k;g+="</item>";if(d=="flat")g+=k});c||(g+="</root>");
126
126
  return g}}})})(jQuery);
@@ -155,7 +155,7 @@ a!==-1?this._get_parent(a):this._get_node(a),h=this._get_settings().types,j=this
155
155
  this.clean_node()}d&&d.call(this);break;case !i.data&&!!i.ajax||!!i.data&&!!i.ajax&&a&&a!==-1:a=this._get_node(a);c=function(g,h,j){var l=this.get_settings().html_data.ajax.error;l&&l.call(this,g,h,j);if(a!=-1&&a.length){a.children(".jstree-loading").removeClass("jstree-loading");a.data("jstree-is-loading",false);h==="success"&&i.correct_state&&a.removeClass("jstree-open jstree-closed").addClass("jstree-leaf")}else h==="success"&&i.correct_state&&this.get_container().children("ul").empty();e&&e.call(this)};
156
156
  f=function(g,h,j){var l=this.get_settings().html_data.ajax.success;if(l)g=l.call(this,g,h,j)||g;if(g=="")return c.call(this,j,h,"");if(g){g=b(g);g.is("ul")||(g=b("<ul>").append(g));if(a==-1||!a)this.get_container().children("ul").empty().append(g.children()).find("li, a").filter(function(){return this.firstChild.tagName!=="INS"}).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon");else{a.children(".jstree-loading").removeClass("jstree-loading");
157
157
  a.append(g).find("li, a").filter(function(){return this.firstChild.tagName!=="INS"}).prepend("<ins class='jstree-icon'>&#160;</ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon");a.data("jstree-is-loading",false)}this.clean_node(a);d&&d.call(this)}else if(a&&a!==-1){a.children(".jstree-loading").removeClass("jstree-loading");a.data("jstree-is-loading",false);if(i.correct_state){a.removeClass("jstree-open jstree-closed").addClass("jstree-leaf");d&&d.call(this)}}else if(i.correct_state){this.get_container().children("ul").empty();
158
- d&&d.call(this)}};i.ajax.context=this;i.ajax.error=c;i.ajax.success=f;if(!i.ajax.dataType)i.ajax.dataType="html";if(b.isFunction(i.ajax.url))i.ajax.url=i.ajax.url.call(this,a);if(b.isFunction(i.ajax.data))i.ajax.data=i.ajax.data.call(this,a);b.ajax(i.ajax);break}}}});b.jstree.defaults.plugins.push("html_data")})(jQuery);
158
+ d&&d.call(this)}};i.ajax.context=this;i.ajax.error=c;i.ajax.success=f;if(!i.ajax.dataType)i.ajax.dataType="html";if(b.isFunction(i.ajax.url))i.ajax.url=i.ajax.url.call(this,a);if(b.isFunction(i.ajax.data))i.ajax.data=i.ajax.data.call(this,a);b.ajax(i.ajax)}}}});b.jstree.defaults.plugins.push("html_data")})(jQuery);
159
159
  (function(b){b.jstree.plugin("themeroller",{__init:function(){var a=this._get_settings().themeroller;this.get_container().addClass("ui-widget-content").delegate("a","mouseenter.jstree",function(){b(this).addClass(a.item_h)}).delegate("a","mouseleave.jstree",function(){b(this).removeClass(a.item_h)}).bind("open_node.jstree create_node.jstree",b.proxy(function(d,e){this._themeroller(e.rslt.obj)},this)).bind("loaded.jstree refresh.jstree",b.proxy(function(){this._themeroller()},this)).bind("close_node.jstree",
160
160
  b.proxy(function(d,e){e.rslt.obj.children("ins").removeClass(a.opened).addClass(a.closed)},this)).bind("select_node.jstree",b.proxy(function(d,e){e.rslt.obj.children("a").addClass(a.item_a)},this)).bind("deselect_node.jstree deselect_all.jstree",b.proxy(function(){this.get_container().find("."+a.item_a).removeClass(a.item_a).end().find(".jstree-clicked").addClass(a.item_a)},this)).bind("move_node.jstree",b.proxy(function(d,e){this._themeroller(e.rslt.o)},this))},__destroy:function(){var a=this._get_settings().themeroller,
161
161
  d=["ui-icon"];b.each(a,function(e,f){f=f.split(" ");if(f.length)d=d.concat(f)});this.get_container().removeClass("ui-widget-content").find("."+d.join(", .")).removeClass(d.join(" "))},_fn:{_themeroller:function(a){var d=this._get_settings().themeroller;a=!a||a==-1?this.get_container():this._get_node(a).parent();a.find("li.jstree-closed > ins.jstree-icon").removeClass(d.opened).addClass("ui-icon "+d.closed).end().find("li.jstree-open > ins.jstree-icon").removeClass(d.closed).addClass("ui-icon "+d.opened).end().find("a").addClass(d.item).children("ins.jstree-icon").addClass("ui-icon "+
@@ -1,13 +1,13 @@
1
- (function(a){var f,h;a.fn.Ribbon=function(j){function k(b){a(".menu li a:first").addClass("active");a(".menu li ul").hide();a(".menu li a:first").parent().children("ul:first").show();a(".menu li a:first").parent().children("ul:first").addClass("submenu");a(".menu li > a").click(function(){a(".orb ul").fadeOut("fast");a(this).next().css("display");a(".menu li a").removeClass("active");a(".menu ul").removeClass("submenu");a(".menu li ul").hide();a(this).addClass("active");a(this).parent().children("ul:first").addClass("submenu");
2
- a(this).parent().children("ul:first").show();a("body").css("padding-top","120px");h=false});a(".orbButton").click(function(){if(b.backStage){a("ul.ribbon-backstage .ribbon-backstage-firstLevel .ribbon-backstage-subMenu").height(a(window).height()*0.9);a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnWide").height(a(window).height()*0.9).width(a(window).width());a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnSmall").parent().children("ul").width(a(window).width()).addClass("ribbon-backstage-leftColumnWide");
3
- a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnSmall").height(a(window).height()*0.9).width("200px");a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnSmall").css("left",a(window).width()-200).css("line-height","17px");a(".orb ul").animate({opacity:"toggle"},"fast");i(a(".orb li li a:first"),true)}else a(".orb ul").animate({opacity:"toggle"},"fast")});a(".orb ul").hide();a(".orb ul ul").hide();a(".orb li ul li ul").show();a(".orb li li ul").each(function(){a(this).prepend('<div style="background-color: #EBF2F7; height: 25px; line-height: 25px; width: 292px; padding-left: 9px; border-bottom: 1px solid #CFDBEB;">'+
1
+ (function(a){var f;a.fn.Ribbon=function(i){function j(b){a(".menu li a:first").addClass("active");a(".menu li ul").hide();a(".menu li a:first").parent().children("ul:first").show();a(".menu li a:first").parent().children("ul:first").addClass("submenu");a(".menu li > a").click(function(){a(".orb ul").fadeOut("fast");a(this).next().css("display");a(".menu li a").removeClass("active");a(".menu ul").removeClass("submenu");a(".menu li ul").hide();a(this).addClass("active");a(this).parent().children("ul:first").addClass("submenu");
2
+ a(this).parent().children("ul:first").show();a("body").css("padding-top","120px")});a(".orbButton").click(function(){if(b.backStage){a("ul.ribbon-backstage .ribbon-backstage-firstLevel .ribbon-backstage-subMenu").height(a(window).height()*0.9);a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnWide").height(a(window).height()*0.9).width(a(window).width());a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnSmall").parent().children("ul").width(a(window).width()).addClass("ribbon-backstage-leftColumnWide");
3
+ a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnSmall").height(a(window).height()*0.9).width("200px");a("ul.ribbon-backstage .ribbon-backstage-firstLevel div.ribbon-backstage-rightColumnSmall").css("left",a(window).width()-200).css("line-height","17px");a(".orb ul").animate({opacity:"toggle"},"fast");h(a(".orb li li a:first"),true)}else a(".orb ul").animate({opacity:"toggle"},"fast")});a(".orb ul").hide();a(".orb ul ul").hide();a(".orb li ul li ul").show();a(".orb li li ul").each(function(){a(this).prepend('<div style="background-color: #EBF2F7; height: 25px; line-height: 25px; width: 292px; padding-left: 9px; border-bottom: 1px solid #CFDBEB;">'+
4
4
  a(this).parent().children("a:first").text()+"</div>")});a(".orb li li a").each(function(){a(this).parent().children("ul").length>0&&a(this).addClass("arrow")});a(".orb .ribbon-backstage a").live("click",function(){a(".orb ul").fadeOut("fast")});a(".ribbon-list div").click(function(c){var e=a(this).parent().width(),g=c.pageX>a(this).offset().left&&c.pageX<a(this).offset().left+a(this).width();c=c.pageY>a(this).offset().top&&c.pageY<a(this).offset().top+a(this).height();a(".ribbon-list div ul").fadeOut("fast");
5
5
  if(g&&c){a(this).attr("style","background-image: "+a(this).css("background-image"));a(this).parent().width(e);a(this).children("ul").width(e-4);a(this).children("ul").fadeIn("fast")}});a(".ribbon-list div").parents().click(function(c){a(".ribbon-list div ul:visible").each(function(){var e=c.pageX<a(".ribbon-list div ul:visible").parent().offset().left||c.pageX>a(".ribbon-list div ul:visible").parent().offset().left+a(".ribbon-list div ul:visible").parent().width(),g=c.pageY<a(".ribbon-list div ul:visible").parent().offset().top||
6
- c.pageY>a(".ribbon-list div ul:visible").parent().offset().top+a(".ribbon-list div ul:visible").parent().height();if(e||g){a(".ribbon-list div ul:visible").each(function(){a(this).fadeOut("fast")});a(".ribbon-list div").css("background-image","")}})});a(".orb li li a").mouseover(function(){i(this)});a(".menu li > a").dblclick(function(){a("ul .submenu").animate({height:"hide"});a("body").animate({paddingTop:a(this).parent().parent().parent().parent().height()});h=true})}function i(b,c){if(!d.backStage)if((a(b).parent().children("ul").css("display")==
6
+ c.pageY>a(".ribbon-list div ul:visible").parent().offset().top+a(".ribbon-list div ul:visible").parent().height();if(e||g){a(".ribbon-list div ul:visible").each(function(){a(this).fadeOut("fast")});a(".ribbon-list div").css("background-image","")}})});a(".orb li li a").mouseover(function(){h(this)});a(".menu li > a").dblclick(function(){a("ul .submenu").animate({height:"hide"});a("body").animate({paddingTop:a(this).parent().parent().parent().parent().height()})})}function h(b,c){if(!d.backStage)if((a(b).parent().children("ul").css("display")==
7
7
  "none"||a(b).parent().children("ul").length==0)&&a(b).parent().parent().parent().parent().hasClass("orb")){a(".orb li li ul").fadeOut("fast");a(b).parent().children("ul").length>0&&a(b).parent().children("ul").fadeIn("fast")}if(d.backStage){if(a(b).parent().children("ul").length==0&&a("ul.ribbon-backstage .ribbon-backstage-firstLevel .ribbon-backstage-subMenu:first:hidden").length>0&&a(b).parent().parent().parent().parent().hasClass("orb")){a(".orb li li ul").fadeOut("fast");a(".orb li li > div").fadeOut("fast");
8
8
  a("ul.ribbon-backstage .ribbon-backstage-firstLevel:first .ribbon-backstage-subMenu:first").fadeIn("fast");a("ul.ribbon-backstage .ribbon-backstage-firstLevel:first div").fadeIn("fast")}if(a(b).parent().children("ul").css("display")=="none"&&a(b).parent().children("ul").length>0&&a(b).parent().parent().parent().parent().hasClass("orb")){a(".orb li li ul").fadeOut("fast");a(".orb li li > div").fadeOut("fast");a(b).parent().children("ul").fadeIn("fast");a(b).parent().children("div").fadeIn("fast")}if(c){a(".orb li li ul").hide();
9
- a(".orb li li > div").hide();a(b).parent().children("ul").fadeIn("fast");a(b).parent().children("div").fadeIn("fast")}}}function l(b){b.altKey&&a('div[rel="accesskeyhelper"]').each(function(){a(this).css("top",a(this).parent().offset().top).css("left",a(this).parent().offset().left-20+a(this).parent().width());a(this).show()})}var d=a.extend({theme:"windows7",backStage:false},j||{});a(".ribbon a").each(function(){a(this).attr("accesskey")&&a(this).append('<div rel="accesskeyhelper" style="display: none; position: absolute; background-image: url(images/accessbg.png); background-repeat: none; width: 16px; padding: 0px; text-align: center; height: 17px; line-height: 17px; top: '+
10
- a(this).offset().top+"px; left: "+(a(this).offset().left+a(this).width()-15)+'px;">'+a(this).attr("accesskey")+"</div>")});a("head").append('<link href="/stylesheets/compiled/jquery.ui/ribbon.'+d.theme+'.css" rel="stylesheet" type="text/css" />" />');f||k(d);a(document).keydown(function(b){l(b)});a(document).keyup(function(){a('div[rel="accesskeyhelper"]').hide()});a(".ribbon").parents().click(function(b){var c=b.pageX<a(".orb ul:first").offset().left||b.pageX>a(".orb ul:first").offset().left+a(".orb ul:first").width();
9
+ a(".orb li li > div").hide();a(b).parent().children("ul").fadeIn("fast");a(b).parent().children("div").fadeIn("fast")}}}function k(b){b.altKey&&a('div[rel="accesskeyhelper"]').each(function(){a(this).css("top",a(this).parent().offset().top).css("left",a(this).parent().offset().left-20+a(this).parent().width());a(this).show()})}var d=a.extend({theme:"windows7",backStage:false},i||{});a(".ribbon a").each(function(){a(this).attr("accesskey")&&a(this).append('<div rel="accesskeyhelper" style="display: none; position: absolute; background-image: url(images/accessbg.png); background-repeat: none; width: 16px; padding: 0px; text-align: center; height: 17px; line-height: 17px; top: '+
10
+ a(this).offset().top+"px; left: "+(a(this).offset().left+a(this).width()-15)+'px;">'+a(this).attr("accesskey")+"</div>")});a("head").append('<link href="/stylesheets/compiled/jquery.ui/ribbon.'+d.theme+'.css" rel="stylesheet" type="text/css" />" />');f||j(d);a(document).keydown(function(b){k(b)});a(document).keyup(function(){a('div[rel="accesskeyhelper"]').hide()});a(".ribbon").parents().click(function(b){var c=b.pageX<a(".orb ul:first").offset().left||b.pageX>a(".orb ul:first").offset().left+a(".orb ul:first").width();
11
11
  b=b.pageY<a(".orb ul:first img:first").offset().top||b.pageY>a(".orb ul:first").offset().top+a(".orb ul:first").height();if((c||b)&&!d.backStage)a(".orb ul").fadeOut("fast")});if(f){a(".orb li:first ul:first img:first").remove();a(".orb li:first ul:first img:last").remove();a('.ribbon-list div img[src*="/arrow_down.png"]').remove()}if(!d.backStage){a(".orb li:first ul:first").append('<img src="/images/jquery.ui/ribbon.'+d.theme+'/menu_bottom.png" style="margin-left: -10px; margin-bottom: -22px;" />');
12
12
  a(".orb li:first ul:first").prepend('<img src="/images/jquery.ui/ribbon.'+d.theme+'/menu_top.png" style="margin-left: -10px; margin-top: -22px;" />')}a(".ribbon-list div").each(function(){a(this).children("ul").length>0&&a(this).append('<img src="/images/jquery.ui/ribbon.'+d.theme+'/arrow_down.png" style="float: right; margin-top: 5px;" />')});if(navigator.appVersion.indexOf("MSIE 6.0")>-1||navigator.appVersion.indexOf("MSIE 7.0")>-1){a("ul.menu li li div").css("width","90px");a("ul.menu").css("width",
13
13
  "500px");a("ul.menu").css("float","left");a("ul.menu .submenu li div.ribbon-list").css("width","100px");a("ul.menu .submenu li div.ribbon-list div").css("width","100px")}a("a[href="+window.location.hash+"]").click();if(d.backStage){a("ul.ribbon .orb > li > ul").addClass("ribbon-backstage");a("ul.ribbon-backstage").width("3000px");a("ul.ribbon-backstage").height(a(document).height());a("ul.ribbon-backstage > li").width("130px");a("ul.ribbon-backstage > li > a").width("125px");a("ul.ribbon-backstage > li").addClass("ribbon-backstage-firstLevel");
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-jquery-plugin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196409
4
+ hash: 62196415
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 0
10
10
  - beta
11
- - 21
12
- version: 0.3.0.beta.21
11
+ - 22
12
+ version: 0.3.0.beta.22
13
13
  platform: ruby
14
14
  authors:
15
15
  - Kosmas Schuetz
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-09-21 00:00:00 +02:00
20
+ date: 2010-10-09 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -375,6 +375,19 @@ files:
375
375
  - templates/jqtouch/jqtouch/apple/toolButton.png
376
376
  - templates/jqtouch/jqtouch/apple/toolbar.png
377
377
  - templates/jqtouch/jqtouch/apple/whiteButton.png
378
+ - templates/jqtouch/jqtouch/default/backButton.png
379
+ - templates/jqtouch/jqtouch/default/backButtonActive.png
380
+ - templates/jqtouch/jqtouch/default/bigButton.png
381
+ - templates/jqtouch/jqtouch/default/bigButtonActive.png
382
+ - templates/jqtouch/jqtouch/default/button.png
383
+ - templates/jqtouch/jqtouch/default/buttonActive.png
384
+ - templates/jqtouch/jqtouch/default/chevron.png
385
+ - templates/jqtouch/jqtouch/default/chevronActive.png
386
+ - templates/jqtouch/jqtouch/default/chevronCircle.png
387
+ - templates/jqtouch/jqtouch/default/chevronCircleActive.png
388
+ - templates/jqtouch/jqtouch/default/loading.gif
389
+ - templates/jqtouch/jqtouch/default/toggleSwitch.png
390
+ - templates/jqtouch/jqtouch/default/toolbarBackground.png
378
391
  - templates/jqtouch/jqtouch/glyphish/Read me first - license.txt
379
392
  - templates/jqtouch/jqtouch/glyphish/icons/01-refresh.png
380
393
  - templates/jqtouch/jqtouch/glyphish/icons/02-redo.png
@@ -649,6 +662,7 @@ files:
649
662
  - templates/jqtouch/jqtouch/iphone-emulator.scss
650
663
  - templates/jqtouch/jqtouch/iphone_fullsize.png
651
664
  - templates/jqtouch/jqtouch/jqt.apple.scss
665
+ - templates/jqtouch/jqtouch/jqt.default.scss
652
666
  - templates/jqtouch/jqtouch/jqt.jqt.scss
653
667
  - templates/jqtouch/jqtouch/jqt/activeButton.png
654
668
  - templates/jqtouch/jqtouch/jqt/back_button.png
@@ -671,6 +685,13 @@ files:
671
685
  - templates/jqtouch/jqtouch/jqt_startup.png
672
686
  - templates/jqtouch/jqtouch/jqtouch.png
673
687
  - templates/jqtouch/jqtouch/jqtouch.scss
688
+ - templates/jqtouch/jqtouch/photo/btnBack.png
689
+ - templates/jqtouch/jqtouch/photo/loading.gif
690
+ - templates/jqtouch/jqtouch/photo/navNext.png
691
+ - templates/jqtouch/jqtouch/photo/navPause.png
692
+ - templates/jqtouch/jqtouch/photo/navPlay.png
693
+ - templates/jqtouch/jqtouch/photo/navPrev.png
694
+ - templates/jqtouch/jqtouch/photo/toolbar.png
674
695
  - templates/jqtouch/jqtouch/sw/alpha.png
675
696
  - templates/jqtouch/jqtouch/sw/button-cancel.png
676
697
  - templates/jqtouch/jqtouch/sw/button-done.png
@@ -808,6 +829,8 @@ files:
808
829
  - templates/jrails/jquery.metadata.min.js
809
830
  - templates/jrails/jquery.pngFix.js
810
831
  - templates/jrails/jquery.pngFix.min.js
832
+ - templates/jrails/jquery.sparkline.js
833
+ - templates/jrails/jquery.sparkline.min.js
811
834
  - templates/jrails/jquery.themeswitchertool.js
812
835
  - templates/jrails/jquery.themeswitchertool.min.js
813
836
  - templates/jrails/jquery.ui/_theme.scss