compass-jquery-plugin 0.3.0.beta.14 → 0.3.0.beta.16
Sign up to get free protection for your applications and to get access to all the features.
- data/.loadpath +5 -5
- data/.project +18 -18
- data/README.textile +19 -1
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +42 -7
- data/gem_tasks/jrails.rake +1 -1
- data/gem_tasks/jstree.rake +96 -0
- data/gem_tasks/rubygems.rake +1 -1
- data/lib/jquery/flash_messages.rb +45 -45
- data/lib/jquery/jstree/jstree.rb +116 -0
- data/lib/jquery/jstree.rb +7 -0
- data/templates/dynatree/jquery.ui/dynatree.aero/ltWait.gif +0 -0
- data/templates/dynatree/manifest.rb +146 -147
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +126 -0
- data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +11565 -11572
- data/templates/jqgrid/jquery.jqGrid.min.js +472 -473
- data/templates/jqgrid/manifest.rb +70 -72
- data/templates/jqical/jquery.jqical.js +7907 -7321
- data/templates/jqical/jquery.jqical.min.js +209 -185
- data/templates/jqical/jquery.ui/jqical.scss +940 -941
- data/templates/jrails/config/initializers/jrails.rb +1 -0
- data/templates/jrails/jquery.hotkeys.js +99 -0
- data/templates/jrails/jquery.hotkeys.min.js +3 -0
- data/templates/jrails/manifest.rb +2 -0
- data/templates/jstree/config/initializers/jstree.rb +8 -0
- data/templates/jstree/jquery.jstree.js +3664 -0
- data/templates/jstree/jquery.jstree.min.js +174 -0
- data/templates/jstree/jquery.ui/jstree.aero/clicked.png +0 -0
- data/templates/jstree/jquery.ui/jstree.aero/d.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.aero/d.png +0 -0
- data/templates/jstree/jquery.ui/jstree.aero/hovered.png +0 -0
- data/templates/jstree/jquery.ui/jstree.aero/throbber.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.aero.scss +209 -0
- data/templates/jstree/jquery.ui/jstree.aqua/clicked.png +0 -0
- data/templates/jstree/jquery.ui/jstree.aqua/d.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.aqua/d.png +0 -0
- data/templates/jstree/jquery.ui/jstree.aqua/hovered.png +0 -0
- data/templates/jstree/jquery.ui/jstree.aqua/throbber.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.aqua.scss +214 -0
- data/templates/jstree/jquery.ui/jstree.chrystal/d.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.chrystal/d.png +0 -0
- data/templates/jstree/jquery.ui/jstree.chrystal/throbber.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.chrystal.scss +205 -0
- data/templates/jstree/jquery.ui/jstree.classic/d.png +0 -0
- data/templates/jstree/jquery.ui/jstree.classic/dot_for_ie.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.classic/throbber.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.classic.scss +148 -0
- data/templates/jstree/jquery.ui/jstree.default/d.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.default/d.png +0 -0
- data/templates/jstree/jquery.ui/jstree.default/throbber.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.default-rtl/d.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.default-rtl/d.png +0 -0
- data/templates/jstree/jquery.ui/jstree.default-rtl/dots.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.default-rtl/throbber.gif +0 -0
- data/templates/jstree/jquery.ui/jstree.default-rtl.scss +228 -0
- data/templates/jstree/jquery.ui/jstree.default.scss +189 -0
- data/templates/jstree/manifest.rb +35 -0
- metadata +44 -9
- data/templates/dynatree/jquery.ui/dynatree.aero/ltWait.ani +0 -0
- data/templates/jqgrid/i18n/jqgrid/locale-dk.js +0 -128
- data/templates/jqgrid/i18n/jqgrid/locale-dk.min.js +0 -6
- data/templates/jqgrid/i18n/jqgrid/locale-sp.js +0 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sp.min.js +0 -7
@@ -24,6 +24,7 @@ ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :contextMenu =
|
|
24
24
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :contextMenu => ['jquery.contextMenu.min']
|
25
25
|
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :farbtastic => ['compiled/jquery.ui/farbtastic.css']
|
26
26
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :farbtastic => ['jquery.farbtastic.min']
|
27
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :hotkeys => ['jquery.hotkeys.min']
|
27
28
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :pngFix => ['jquery.pngFix.min']
|
28
29
|
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :themeSwitcher => ['jquery.themeswitchertool.min']
|
29
30
|
|
@@ -0,0 +1,99 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery Hotkeys Plugin
|
3
|
+
* Copyright 2010, John Resig
|
4
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
5
|
+
*
|
6
|
+
* Based upon the plugin by Tzury Bar Yochay:
|
7
|
+
* http://github.com/tzuryby/hotkeys
|
8
|
+
*
|
9
|
+
* Original idea by:
|
10
|
+
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
|
11
|
+
*/
|
12
|
+
|
13
|
+
(function(jQuery){
|
14
|
+
|
15
|
+
jQuery.hotkeys = {
|
16
|
+
version: "0.8",
|
17
|
+
|
18
|
+
specialKeys: {
|
19
|
+
8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
|
20
|
+
20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
|
21
|
+
37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del",
|
22
|
+
96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",
|
23
|
+
104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/",
|
24
|
+
112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8",
|
25
|
+
120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 191: "/", 224: "meta"
|
26
|
+
},
|
27
|
+
|
28
|
+
shiftNums: {
|
29
|
+
"`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&",
|
30
|
+
"8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<",
|
31
|
+
".": ">", "/": "?", "\\": "|"
|
32
|
+
}
|
33
|
+
};
|
34
|
+
|
35
|
+
function keyHandler( handleObj ) {
|
36
|
+
// Only care when a possible input has been specified
|
37
|
+
if ( typeof handleObj.data !== "string" ) {
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
|
41
|
+
var origHandler = handleObj.handler,
|
42
|
+
keys = handleObj.data.toLowerCase().split(" ");
|
43
|
+
|
44
|
+
handleObj.handler = function( event ) {
|
45
|
+
// Don't fire in text-accepting inputs that we didn't directly bind to
|
46
|
+
if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||
|
47
|
+
event.target.type === "text") ) {
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Keypress represents characters, not special keys
|
52
|
+
var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ],
|
53
|
+
character = String.fromCharCode( event.which ).toLowerCase(),
|
54
|
+
key, modif = "", possible = {};
|
55
|
+
|
56
|
+
// check combinations (alt|ctrl|shift+anything)
|
57
|
+
if ( event.altKey && special !== "alt" ) {
|
58
|
+
modif += "alt+";
|
59
|
+
}
|
60
|
+
|
61
|
+
if ( event.ctrlKey && special !== "ctrl" ) {
|
62
|
+
modif += "ctrl+";
|
63
|
+
}
|
64
|
+
|
65
|
+
// TODO: Need to make sure this works consistently across platforms
|
66
|
+
if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {
|
67
|
+
modif += "meta+";
|
68
|
+
}
|
69
|
+
|
70
|
+
if ( event.shiftKey && special !== "shift" ) {
|
71
|
+
modif += "shift+";
|
72
|
+
}
|
73
|
+
|
74
|
+
if ( special ) {
|
75
|
+
possible[ modif + special ] = true;
|
76
|
+
|
77
|
+
} else {
|
78
|
+
possible[ modif + character ] = true;
|
79
|
+
possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;
|
80
|
+
|
81
|
+
// "$" can be triggered as "Shift+4" or "Shift+$" or just "$"
|
82
|
+
if ( modif === "shift+" ) {
|
83
|
+
possible[ jQuery.hotkeys.shiftNums[ character ] ] = true;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
for ( var i = 0, l = keys.length; i < l; i++ ) {
|
88
|
+
if ( possible[ keys[i] ] ) {
|
89
|
+
return origHandler.apply( this, arguments );
|
90
|
+
}
|
91
|
+
}
|
92
|
+
};
|
93
|
+
}
|
94
|
+
|
95
|
+
jQuery.each([ "keydown", "keyup", "keypress" ], function() {
|
96
|
+
jQuery.event.special[ this ] = { add: keyHandler };
|
97
|
+
});
|
98
|
+
|
99
|
+
})( jQuery );
|
@@ -0,0 +1,3 @@
|
|
1
|
+
(function(d){function i(g){if(typeof g.data==="string"){var j=g.handler,h=g.data.toLowerCase().split(" ");g.handler=function(a){if(!(this!==a.target&&(/textarea|select/i.test(a.target.nodeName)||a.target.type==="text"))){var b=a.type!=="keypress"&&d.hotkeys.specialKeys[a.which],e=String.fromCharCode(a.which).toLowerCase(),c="",f={};if(a.altKey&&b!=="alt")c+="alt+";if(a.ctrlKey&&b!=="ctrl")c+="ctrl+";if(a.metaKey&&!a.ctrlKey&&b!=="meta")c+="meta+";if(a.shiftKey&&b!=="shift")c+="shift+";if(b)f[c+b]=
|
2
|
+
true;else{f[c+e]=true;f[c+d.hotkeys.shiftNums[e]]=true;if(c==="shift+")f[d.hotkeys.shiftNums[e]]=true}b=0;for(e=h.length;b<e;b++)if(f[h[b]])return j.apply(this,arguments)}}}}d.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",
|
3
|
+
106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};d.each(["keydown","keyup","keypress"],function(){d.event.special[this]={add:i}})})(jQuery);
|
@@ -25,6 +25,8 @@ javascript 'jquery.contextMenu.min.js'
|
|
25
25
|
stylesheet 'jquery.ui/farbtastic.scss', :media => 'screen, projection'
|
26
26
|
javascript 'jquery.farbtastic.js'
|
27
27
|
javascript 'jquery.farbtastic.min.js'
|
28
|
+
javascript 'jquery.hotkeys.js'
|
29
|
+
javascript 'jquery.hotkeys.min.js'
|
28
30
|
javascript 'jquery.metadata.js'
|
29
31
|
javascript 'jquery.metadata.min.js'
|
30
32
|
javascript 'jquery.pngFix.js'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'jquery/jstree'
|
2
|
+
|
3
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_apple => ['compiled/jquery.ui/jstree.apple.css']
|
4
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_classic => ['compiled/jquery.ui/jstree.classic.css']
|
5
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_default => ['compiled/jquery.ui/jstree.default.css']
|
6
|
+
ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :jstree_default_rtl => ['compiled/jquery.ui/jstree.default-rtl.css']
|
7
|
+
|
8
|
+
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jstree => ['jquery.jstree.min', 'jquery.hotkeys.min']
|