compass-jquery-plugin 0.3.0.beta.16 → 0.3.0.beta.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +1 -2
- data/lib/jquery/jstree.rb +1 -3
- data/templates/dynatree/manifest.rb +146 -146
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +126 -126
- data/templates/jqgrid/i18n/jqgrid/locale-gl.min.js +7 -7
- data/templates/jqgrid/jquery.jqGrid.js +11565 -11565
- data/templates/jqgrid/jquery.jqGrid.min.js +472 -472
- data/templates/jqgrid/manifest.rb +70 -70
- data/templates/jqical/jquery.jqical.js +7907 -7907
- data/templates/jqical/jquery.jqical.min.js +209 -209
- data/templates/jqical/jquery.ui/jqical.scss +940 -940
- data/templates/jstree/jquery.jstree.js +3664 -3664
- data/templates/jstree/jquery.jstree.min.js +174 -174
- data/templates/jstree/jquery.ui/jstree.aero.scss +209 -209
- data/templates/jstree/jquery.ui/jstree.aqua.scss +214 -214
- data/templates/jstree/jquery.ui/jstree.chrystal.scss +205 -205
- data/templates/jstree/jquery.ui/jstree.classic.scss +148 -148
- data/templates/jstree/jquery.ui/jstree.default-rtl.scss +228 -228
- data/templates/jstree/jquery.ui/jstree.default.scss +189 -189
- data/templates/jstree/manifest.rb +35 -35
- metadata +3 -4
- data/lib/jquery/jstree/jstree.rb +0 -116
@@ -1,189 +1,189 @@
|
|
1
|
-
// Generated by compass-jquery-plugin/gem-tasks/jstree.rake
|
2
|
-
|
3
|
-
/*
|
4
|
-
* jsTree default theme 1.0
|
5
|
-
* Supported features: dots/no-dots, icons/no-icons, focused, loading
|
6
|
-
* Supported plugins: ui (hovered, clicked), checkbox, radio, contextmenu, search
|
7
|
-
*/
|
8
|
-
|
9
|
-
.jstree-default {
|
10
|
-
li, ins {
|
11
|
-
background-image: image_url("jquery.ui/jstree.default/d.png");
|
12
|
-
background-repeat: no-repeat;
|
13
|
-
background-color: transparent; }
|
14
|
-
li {
|
15
|
-
background-position: -108px 0;
|
16
|
-
background-repeat: repeat-y;
|
17
|
-
&.jstree-last {
|
18
|
-
background: transparent; } }
|
19
|
-
.jstree-open > ins {
|
20
|
-
background-position: -72px 0; }
|
21
|
-
.jstree-closed > ins {
|
22
|
-
background-position: -54px 0; }
|
23
|
-
.jstree-leaf > ins {
|
24
|
-
background-position: -36px 0; }
|
25
|
-
.jstree-hovered {
|
26
|
-
background: #e7f4f9;
|
27
|
-
border: 1px solid #d8f0fa;
|
28
|
-
padding: 0 2px 0 1px; }
|
29
|
-
.jstree-clicked {
|
30
|
-
background: #beebff;
|
31
|
-
border: 1px solid #99defd;
|
32
|
-
padding: 0 2px 0 1px; }
|
33
|
-
a {
|
34
|
-
.jstree-icon {
|
35
|
-
background-position: -56px -19px; }
|
36
|
-
&.jstree-loading .jstree-icon {
|
37
|
-
background: image_url("jquery.ui/jstree.default/throbber.gif") center center no-repeat !important; } }
|
38
|
-
&.jstree-focused {
|
39
|
-
background: #ffffee; }
|
40
|
-
.jstree-no-dots {
|
41
|
-
li, .jstree-leaf > ins {
|
42
|
-
background: transparent; }
|
43
|
-
.jstree-open > ins {
|
44
|
-
background-position: -18px 0; }
|
45
|
-
.jstree-closed > ins {
|
46
|
-
background-position: 0 0; } }
|
47
|
-
.jstree-no-icons a .jstree-icon {
|
48
|
-
display: none; }
|
49
|
-
.jstree-search {
|
50
|
-
font-style: italic; }
|
51
|
-
.jstree-no-icons .jstree-checkbox {
|
52
|
-
display: inline-block; }
|
53
|
-
.jstree-no-checkboxes .jstree-checkbox {
|
54
|
-
display: none !important; }
|
55
|
-
.jstree-checked > a > .jstree-checkbox {
|
56
|
-
background-position: -38px -19px; }
|
57
|
-
.jstree-unchecked > a > .jstree-checkbox {
|
58
|
-
background-position: -2px -19px; }
|
59
|
-
.jstree-undetermined > a > .jstree-checkbox {
|
60
|
-
background-position: -20px -19px; }
|
61
|
-
.jstree-checked > a > .jstree-checkbox:hover {
|
62
|
-
background-position: -38px -37px; }
|
63
|
-
.jstree-unchecked > a > .jstree-checkbox:hover {
|
64
|
-
background-position: -2px -37px; }
|
65
|
-
.jstree-undetermined > a > .jstree-checkbox:hover {
|
66
|
-
background-position: -20px -37px; }
|
67
|
-
.jstree-no-icons .jstree-radio {
|
68
|
-
display: inline-block; }
|
69
|
-
.jstree-no-radios .jstree-radio {
|
70
|
-
display: none !important; }
|
71
|
-
.jstree-checked > a > .jstree-radio {
|
72
|
-
background-position: -38px -55px; }
|
73
|
-
.jstree-unchecked > a > .jstree-radio {
|
74
|
-
background-position: -2px -55px; }
|
75
|
-
.jstree-undetermined > a > .jstree-radio {
|
76
|
-
background-position: -20px -55px; }
|
77
|
-
.jstree-checked > a > .jstree-radio:hover {
|
78
|
-
background-position: -38px -73px; }
|
79
|
-
.jstree-unchecked > a > .jstree-radio:hover {
|
80
|
-
background-position: -2px -73px; }
|
81
|
-
.jstree-undetermined > a > .jstree-radio:hover {
|
82
|
-
background-position: -20px -73px; } }
|
83
|
-
|
84
|
-
#vakata-dragged.jstree-default {
|
85
|
-
ins {
|
86
|
-
background: transparent !important; }
|
87
|
-
.jstree-ok {
|
88
|
-
background: image_url("jquery.ui/jstree.default/d.png") -56px -53px no-repeat !important; }
|
89
|
-
.jstree-invalid {
|
90
|
-
background: image_url("jquery.ui/jstree.default/d.png") -72px -53px no-repeat !important; } }
|
91
|
-
|
92
|
-
#jstree-marker.jstree-default {
|
93
|
-
background: image_url("jquery.ui/jstree.default/d.png") -95px -57px no-repeat !important; }
|
94
|
-
|
95
|
-
.jstree-default a.jstree-search {
|
96
|
-
color: default; }
|
97
|
-
|
98
|
-
#vakata-contextmenu.jstree-default-context {
|
99
|
-
background: #f0f0f0;
|
100
|
-
border: 1px solid #979797;
|
101
|
-
-moz-box-shadow: 1px 1px 2px #999;
|
102
|
-
-webkit-box-shadow: 1px 1px 2px #999;
|
103
|
-
box-shadow: 1px 1px 2px #999;
|
104
|
-
li ul {
|
105
|
-
background: #f0f0f0;
|
106
|
-
border: 1px solid #979797;
|
107
|
-
-moz-box-shadow: 1px 1px 2px #999;
|
108
|
-
-webkit-box-shadow: 1px 1px 2px #999;
|
109
|
-
box-shadow: 1px 1px 2px #999; }
|
110
|
-
a {
|
111
|
-
color: black;
|
112
|
-
&:hover {
|
113
|
-
padding: 0 5px;
|
114
|
-
background: #e8eff7;
|
115
|
-
border: 1px solid #aecff7;
|
116
|
-
color: black;
|
117
|
-
-moz-border-radius: 2px;
|
118
|
-
-webkit-border-radius: 2px;
|
119
|
-
border-radius: 2px; } }
|
120
|
-
.vakata-hover > a {
|
121
|
-
padding: 0 5px;
|
122
|
-
background: #e8eff7;
|
123
|
-
border: 1px solid #aecff7;
|
124
|
-
color: black;
|
125
|
-
-moz-border-radius: 2px;
|
126
|
-
-webkit-border-radius: 2px;
|
127
|
-
border-radius: 2px; }
|
128
|
-
li {
|
129
|
-
&.jstree-contextmenu-disabled a {
|
130
|
-
color: silver;
|
131
|
-
background: transparent;
|
132
|
-
border: 0;
|
133
|
-
padding: 1px 4px;
|
134
|
-
&:hover {
|
135
|
-
color: silver;
|
136
|
-
background: transparent;
|
137
|
-
border: 0;
|
138
|
-
padding: 1px 4px; } }
|
139
|
-
&.vakata-separator {
|
140
|
-
background: white;
|
141
|
-
border-top: 1px solid #e0e0e0;
|
142
|
-
margin: 0; }
|
143
|
-
ul {
|
144
|
-
margin-left: -4px; } } }
|
145
|
-
|
146
|
-
/* IE6 BEGIN */
|
147
|
-
|
148
|
-
.jstree-default {
|
149
|
-
li, ins {
|
150
|
-
_background-image: image_url("jquery.ui/jstree.default/d.gif"); } }
|
151
|
-
|
152
|
-
#vakata-dragged.jstree-default {
|
153
|
-
.jstree-invalid, .jstree-ok {
|
154
|
-
_background-image: image_url("jquery.ui/jstree.default/d.gif"); } }
|
155
|
-
|
156
|
-
#jstree-marker.jstree-default {
|
157
|
-
_background-image: image_url("jquery.ui/jstree.default/d.gif"); }
|
158
|
-
|
159
|
-
.jstree-default {
|
160
|
-
.jstree-open ins {
|
161
|
-
_background-position: -72px 0; }
|
162
|
-
.jstree-closed ins {
|
163
|
-
_background-position: -54px 0; }
|
164
|
-
.jstree-leaf ins {
|
165
|
-
_background-position: -36px 0; }
|
166
|
-
a ins.jstree-icon {
|
167
|
-
_background-position: -56px -19px; } }
|
168
|
-
|
169
|
-
#vakata-contextmenu.jstree-default-context {
|
170
|
-
ins {
|
171
|
-
_display: none; }
|
172
|
-
li {
|
173
|
-
_zoom: 1; } }
|
174
|
-
|
175
|
-
.jstree-default {
|
176
|
-
.jstree-undetermined a .jstree-checkbox {
|
177
|
-
_background-position: -20px -19px; }
|
178
|
-
.jstree-checked a .jstree-checkbox {
|
179
|
-
_background-position: -38px -19px; }
|
180
|
-
.jstree-unchecked a .jstree-checkbox {
|
181
|
-
_background-position: -2px -19px; }
|
182
|
-
.jstree-undetermined a .jstree-radio {
|
183
|
-
_background-position: -20px -57px; }
|
184
|
-
.jstree-checked a .jstree-radio {
|
185
|
-
_background-position: -38px -57px; }
|
186
|
-
.jstree-unchecked a .jstree-radio {
|
187
|
-
_background-position: -2px -57px; } }
|
188
|
-
|
189
|
-
/* IE6 END */
|
1
|
+
// Generated by compass-jquery-plugin/gem-tasks/jstree.rake
|
2
|
+
|
3
|
+
/*
|
4
|
+
* jsTree default theme 1.0
|
5
|
+
* Supported features: dots/no-dots, icons/no-icons, focused, loading
|
6
|
+
* Supported plugins: ui (hovered, clicked), checkbox, radio, contextmenu, search
|
7
|
+
*/
|
8
|
+
|
9
|
+
.jstree-default {
|
10
|
+
li, ins {
|
11
|
+
background-image: image_url("jquery.ui/jstree.default/d.png");
|
12
|
+
background-repeat: no-repeat;
|
13
|
+
background-color: transparent; }
|
14
|
+
li {
|
15
|
+
background-position: -108px 0;
|
16
|
+
background-repeat: repeat-y;
|
17
|
+
&.jstree-last {
|
18
|
+
background: transparent; } }
|
19
|
+
.jstree-open > ins {
|
20
|
+
background-position: -72px 0; }
|
21
|
+
.jstree-closed > ins {
|
22
|
+
background-position: -54px 0; }
|
23
|
+
.jstree-leaf > ins {
|
24
|
+
background-position: -36px 0; }
|
25
|
+
.jstree-hovered {
|
26
|
+
background: #e7f4f9;
|
27
|
+
border: 1px solid #d8f0fa;
|
28
|
+
padding: 0 2px 0 1px; }
|
29
|
+
.jstree-clicked {
|
30
|
+
background: #beebff;
|
31
|
+
border: 1px solid #99defd;
|
32
|
+
padding: 0 2px 0 1px; }
|
33
|
+
a {
|
34
|
+
.jstree-icon {
|
35
|
+
background-position: -56px -19px; }
|
36
|
+
&.jstree-loading .jstree-icon {
|
37
|
+
background: image_url("jquery.ui/jstree.default/throbber.gif") center center no-repeat !important; } }
|
38
|
+
&.jstree-focused {
|
39
|
+
background: #ffffee; }
|
40
|
+
.jstree-no-dots {
|
41
|
+
li, .jstree-leaf > ins {
|
42
|
+
background: transparent; }
|
43
|
+
.jstree-open > ins {
|
44
|
+
background-position: -18px 0; }
|
45
|
+
.jstree-closed > ins {
|
46
|
+
background-position: 0 0; } }
|
47
|
+
.jstree-no-icons a .jstree-icon {
|
48
|
+
display: none; }
|
49
|
+
.jstree-search {
|
50
|
+
font-style: italic; }
|
51
|
+
.jstree-no-icons .jstree-checkbox {
|
52
|
+
display: inline-block; }
|
53
|
+
.jstree-no-checkboxes .jstree-checkbox {
|
54
|
+
display: none !important; }
|
55
|
+
.jstree-checked > a > .jstree-checkbox {
|
56
|
+
background-position: -38px -19px; }
|
57
|
+
.jstree-unchecked > a > .jstree-checkbox {
|
58
|
+
background-position: -2px -19px; }
|
59
|
+
.jstree-undetermined > a > .jstree-checkbox {
|
60
|
+
background-position: -20px -19px; }
|
61
|
+
.jstree-checked > a > .jstree-checkbox:hover {
|
62
|
+
background-position: -38px -37px; }
|
63
|
+
.jstree-unchecked > a > .jstree-checkbox:hover {
|
64
|
+
background-position: -2px -37px; }
|
65
|
+
.jstree-undetermined > a > .jstree-checkbox:hover {
|
66
|
+
background-position: -20px -37px; }
|
67
|
+
.jstree-no-icons .jstree-radio {
|
68
|
+
display: inline-block; }
|
69
|
+
.jstree-no-radios .jstree-radio {
|
70
|
+
display: none !important; }
|
71
|
+
.jstree-checked > a > .jstree-radio {
|
72
|
+
background-position: -38px -55px; }
|
73
|
+
.jstree-unchecked > a > .jstree-radio {
|
74
|
+
background-position: -2px -55px; }
|
75
|
+
.jstree-undetermined > a > .jstree-radio {
|
76
|
+
background-position: -20px -55px; }
|
77
|
+
.jstree-checked > a > .jstree-radio:hover {
|
78
|
+
background-position: -38px -73px; }
|
79
|
+
.jstree-unchecked > a > .jstree-radio:hover {
|
80
|
+
background-position: -2px -73px; }
|
81
|
+
.jstree-undetermined > a > .jstree-radio:hover {
|
82
|
+
background-position: -20px -73px; } }
|
83
|
+
|
84
|
+
#vakata-dragged.jstree-default {
|
85
|
+
ins {
|
86
|
+
background: transparent !important; }
|
87
|
+
.jstree-ok {
|
88
|
+
background: image_url("jquery.ui/jstree.default/d.png") -56px -53px no-repeat !important; }
|
89
|
+
.jstree-invalid {
|
90
|
+
background: image_url("jquery.ui/jstree.default/d.png") -72px -53px no-repeat !important; } }
|
91
|
+
|
92
|
+
#jstree-marker.jstree-default {
|
93
|
+
background: image_url("jquery.ui/jstree.default/d.png") -95px -57px no-repeat !important; }
|
94
|
+
|
95
|
+
.jstree-default a.jstree-search {
|
96
|
+
color: default; }
|
97
|
+
|
98
|
+
#vakata-contextmenu.jstree-default-context {
|
99
|
+
background: #f0f0f0;
|
100
|
+
border: 1px solid #979797;
|
101
|
+
-moz-box-shadow: 1px 1px 2px #999;
|
102
|
+
-webkit-box-shadow: 1px 1px 2px #999;
|
103
|
+
box-shadow: 1px 1px 2px #999;
|
104
|
+
li ul {
|
105
|
+
background: #f0f0f0;
|
106
|
+
border: 1px solid #979797;
|
107
|
+
-moz-box-shadow: 1px 1px 2px #999;
|
108
|
+
-webkit-box-shadow: 1px 1px 2px #999;
|
109
|
+
box-shadow: 1px 1px 2px #999; }
|
110
|
+
a {
|
111
|
+
color: black;
|
112
|
+
&:hover {
|
113
|
+
padding: 0 5px;
|
114
|
+
background: #e8eff7;
|
115
|
+
border: 1px solid #aecff7;
|
116
|
+
color: black;
|
117
|
+
-moz-border-radius: 2px;
|
118
|
+
-webkit-border-radius: 2px;
|
119
|
+
border-radius: 2px; } }
|
120
|
+
.vakata-hover > a {
|
121
|
+
padding: 0 5px;
|
122
|
+
background: #e8eff7;
|
123
|
+
border: 1px solid #aecff7;
|
124
|
+
color: black;
|
125
|
+
-moz-border-radius: 2px;
|
126
|
+
-webkit-border-radius: 2px;
|
127
|
+
border-radius: 2px; }
|
128
|
+
li {
|
129
|
+
&.jstree-contextmenu-disabled a {
|
130
|
+
color: silver;
|
131
|
+
background: transparent;
|
132
|
+
border: 0;
|
133
|
+
padding: 1px 4px;
|
134
|
+
&:hover {
|
135
|
+
color: silver;
|
136
|
+
background: transparent;
|
137
|
+
border: 0;
|
138
|
+
padding: 1px 4px; } }
|
139
|
+
&.vakata-separator {
|
140
|
+
background: white;
|
141
|
+
border-top: 1px solid #e0e0e0;
|
142
|
+
margin: 0; }
|
143
|
+
ul {
|
144
|
+
margin-left: -4px; } } }
|
145
|
+
|
146
|
+
/* IE6 BEGIN */
|
147
|
+
|
148
|
+
.jstree-default {
|
149
|
+
li, ins {
|
150
|
+
_background-image: image_url("jquery.ui/jstree.default/d.gif"); } }
|
151
|
+
|
152
|
+
#vakata-dragged.jstree-default {
|
153
|
+
.jstree-invalid, .jstree-ok {
|
154
|
+
_background-image: image_url("jquery.ui/jstree.default/d.gif"); } }
|
155
|
+
|
156
|
+
#jstree-marker.jstree-default {
|
157
|
+
_background-image: image_url("jquery.ui/jstree.default/d.gif"); }
|
158
|
+
|
159
|
+
.jstree-default {
|
160
|
+
.jstree-open ins {
|
161
|
+
_background-position: -72px 0; }
|
162
|
+
.jstree-closed ins {
|
163
|
+
_background-position: -54px 0; }
|
164
|
+
.jstree-leaf ins {
|
165
|
+
_background-position: -36px 0; }
|
166
|
+
a ins.jstree-icon {
|
167
|
+
_background-position: -56px -19px; } }
|
168
|
+
|
169
|
+
#vakata-contextmenu.jstree-default-context {
|
170
|
+
ins {
|
171
|
+
_display: none; }
|
172
|
+
li {
|
173
|
+
_zoom: 1; } }
|
174
|
+
|
175
|
+
.jstree-default {
|
176
|
+
.jstree-undetermined a .jstree-checkbox {
|
177
|
+
_background-position: -20px -19px; }
|
178
|
+
.jstree-checked a .jstree-checkbox {
|
179
|
+
_background-position: -38px -19px; }
|
180
|
+
.jstree-unchecked a .jstree-checkbox {
|
181
|
+
_background-position: -2px -19px; }
|
182
|
+
.jstree-undetermined a .jstree-radio {
|
183
|
+
_background-position: -20px -57px; }
|
184
|
+
.jstree-checked a .jstree-radio {
|
185
|
+
_background-position: -38px -57px; }
|
186
|
+
.jstree-unchecked a .jstree-radio {
|
187
|
+
_background-position: -2px -57px; } }
|
188
|
+
|
189
|
+
/* IE6 END */
|
@@ -1,35 +1,35 @@
|
|
1
|
-
# Generated by compass-jquery-plugin/gem-tasks/jstree.rake
|
2
|
-
# Install with: compass install jquery/jstree
|
3
|
-
|
4
|
-
file 'config/initializers/jstree.rb'
|
5
|
-
javascript 'jquery.jstree.js'
|
6
|
-
javascript 'jquery.jstree.min.js'
|
7
|
-
stylesheet 'jquery.ui/jstree.aero.scss', :media => 'screen, projection'
|
8
|
-
image 'jquery.ui/jstree.aero/clicked.png'
|
9
|
-
image 'jquery.ui/jstree.aero/d.gif'
|
10
|
-
image 'jquery.ui/jstree.aero/d.png'
|
11
|
-
image 'jquery.ui/jstree.aero/hovered.png'
|
12
|
-
image 'jquery.ui/jstree.aero/throbber.gif'
|
13
|
-
stylesheet 'jquery.ui/jstree.aqua.scss', :media => 'screen, projection'
|
14
|
-
image 'jquery.ui/jstree.aqua/clicked.png'
|
15
|
-
image 'jquery.ui/jstree.aqua/d.gif'
|
16
|
-
image 'jquery.ui/jstree.aqua/d.png'
|
17
|
-
image 'jquery.ui/jstree.aqua/hovered.png'
|
18
|
-
image 'jquery.ui/jstree.aqua/throbber.gif'
|
19
|
-
stylesheet 'jquery.ui/jstree.chrystal.scss', :media => 'screen, projection'
|
20
|
-
image 'jquery.ui/jstree.chrystal/d.gif'
|
21
|
-
image 'jquery.ui/jstree.chrystal/d.png'
|
22
|
-
image 'jquery.ui/jstree.chrystal/throbber.gif'
|
23
|
-
stylesheet 'jquery.ui/jstree.classic.scss', :media => 'screen, projection'
|
24
|
-
image 'jquery.ui/jstree.classic/d.png'
|
25
|
-
image 'jquery.ui/jstree.classic/dot_for_ie.gif'
|
26
|
-
image 'jquery.ui/jstree.classic/throbber.gif'
|
27
|
-
stylesheet 'jquery.ui/jstree.default.scss', :media => 'screen, projection'
|
28
|
-
image 'jquery.ui/jstree.default/d.gif'
|
29
|
-
image 'jquery.ui/jstree.default/d.png'
|
30
|
-
image 'jquery.ui/jstree.default/throbber.gif'
|
31
|
-
stylesheet 'jquery.ui/jstree.default-rtl.scss', :media => 'screen, projection'
|
32
|
-
image 'jquery.ui/jstree.default-rtl/d.gif'
|
33
|
-
image 'jquery.ui/jstree.default-rtl/d.png'
|
34
|
-
image 'jquery.ui/jstree.default-rtl/dots.gif'
|
35
|
-
image 'jquery.ui/jstree.default-rtl/throbber.gif'
|
1
|
+
# Generated by compass-jquery-plugin/gem-tasks/jstree.rake
|
2
|
+
# Install with: compass install jquery/jstree
|
3
|
+
|
4
|
+
file 'config/initializers/jstree.rb'
|
5
|
+
javascript 'jquery.jstree.js'
|
6
|
+
javascript 'jquery.jstree.min.js'
|
7
|
+
stylesheet 'jquery.ui/jstree.aero.scss', :media => 'screen, projection'
|
8
|
+
image 'jquery.ui/jstree.aero/clicked.png'
|
9
|
+
image 'jquery.ui/jstree.aero/d.gif'
|
10
|
+
image 'jquery.ui/jstree.aero/d.png'
|
11
|
+
image 'jquery.ui/jstree.aero/hovered.png'
|
12
|
+
image 'jquery.ui/jstree.aero/throbber.gif'
|
13
|
+
stylesheet 'jquery.ui/jstree.aqua.scss', :media => 'screen, projection'
|
14
|
+
image 'jquery.ui/jstree.aqua/clicked.png'
|
15
|
+
image 'jquery.ui/jstree.aqua/d.gif'
|
16
|
+
image 'jquery.ui/jstree.aqua/d.png'
|
17
|
+
image 'jquery.ui/jstree.aqua/hovered.png'
|
18
|
+
image 'jquery.ui/jstree.aqua/throbber.gif'
|
19
|
+
stylesheet 'jquery.ui/jstree.chrystal.scss', :media => 'screen, projection'
|
20
|
+
image 'jquery.ui/jstree.chrystal/d.gif'
|
21
|
+
image 'jquery.ui/jstree.chrystal/d.png'
|
22
|
+
image 'jquery.ui/jstree.chrystal/throbber.gif'
|
23
|
+
stylesheet 'jquery.ui/jstree.classic.scss', :media => 'screen, projection'
|
24
|
+
image 'jquery.ui/jstree.classic/d.png'
|
25
|
+
image 'jquery.ui/jstree.classic/dot_for_ie.gif'
|
26
|
+
image 'jquery.ui/jstree.classic/throbber.gif'
|
27
|
+
stylesheet 'jquery.ui/jstree.default.scss', :media => 'screen, projection'
|
28
|
+
image 'jquery.ui/jstree.default/d.gif'
|
29
|
+
image 'jquery.ui/jstree.default/d.png'
|
30
|
+
image 'jquery.ui/jstree.default/throbber.gif'
|
31
|
+
stylesheet 'jquery.ui/jstree.default-rtl.scss', :media => 'screen, projection'
|
32
|
+
image 'jquery.ui/jstree.default-rtl/d.gif'
|
33
|
+
image 'jquery.ui/jstree.default-rtl/d.png'
|
34
|
+
image 'jquery.ui/jstree.default-rtl/dots.gif'
|
35
|
+
image 'jquery.ui/jstree.default-rtl/throbber.gif'
|
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:
|
4
|
+
hash: 62196401
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.3.0.beta.
|
11
|
+
- 17
|
12
|
+
version: 0.3.0.beta.17
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Kosmas Schuetz
|
@@ -122,7 +122,6 @@ files:
|
|
122
122
|
- lib/jquery/jquery_selector_assertions.rb
|
123
123
|
- lib/jquery/jrails.rb
|
124
124
|
- lib/jquery/jstree.rb
|
125
|
-
- lib/jquery/jstree/jstree.rb
|
126
125
|
- lib/jquery/ribbon.rb
|
127
126
|
- lib/jquery/secret_sauce.rb
|
128
127
|
- lib/jquery/secret_sauce/controller/ui_dialog_controls.rb
|
data/lib/jquery/jstree/jstree.rb
DELETED
@@ -1,116 +0,0 @@
|
|
1
|
-
class JsTree < ActiveRecord::Base
|
2
|
-
def self.get_children(id)
|
3
|
-
result = Array.new
|
4
|
-
if id == "1"
|
5
|
-
node = find_by_title("ROOT")
|
6
|
-
else
|
7
|
-
node = find(id)
|
8
|
-
end
|
9
|
-
children = node.children
|
10
|
-
if id != 0
|
11
|
-
children.each do |child|
|
12
|
-
result << {
|
13
|
-
:attr => {:id => "node_#{child.id.to_s}", :rel => child.ntype},
|
14
|
-
:data => child.title,
|
15
|
-
:state => (child.right - child.left) > 1 ? "closed" : ""
|
16
|
-
}
|
17
|
-
end
|
18
|
-
end
|
19
|
-
return result
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.search(search_str)
|
23
|
-
result = Array.new
|
24
|
-
nodes = find(:all, :conditions => "title LIKE '%#{search_str}%'")
|
25
|
-
if nodes
|
26
|
-
nodes.each do |node|
|
27
|
-
result << "#node_#{node.id.to_s}"
|
28
|
-
end
|
29
|
-
end
|
30
|
-
return result
|
31
|
-
end
|
32
|
-
|
33
|
-
def self.create_node(params)
|
34
|
-
if params[:id].to_i > 0
|
35
|
-
parent = find(params[:id])
|
36
|
-
else
|
37
|
-
parent = find_by_title("ROOT")
|
38
|
-
end
|
39
|
-
node = DemoTree.new()
|
40
|
-
node.parent_id = parent.id
|
41
|
-
node.position = params[:position]
|
42
|
-
node.left = parent[:right]
|
43
|
-
node.right = node.left + 1
|
44
|
-
node.level = parent.level + 1
|
45
|
-
node.title = params[:title]
|
46
|
-
node.ntype = params[:type]
|
47
|
-
if node.save
|
48
|
-
node.ancestors.each do |ancestor|
|
49
|
-
ancestor.right += 2
|
50
|
-
ancestor.save
|
51
|
-
end
|
52
|
-
update_all("left = left + 2, right = right + 2", "left >= #{node.right}")
|
53
|
-
result = { :status => 1, :id => node.id }
|
54
|
-
else
|
55
|
-
result = { :status => 0 }
|
56
|
-
end
|
57
|
-
return result
|
58
|
-
end
|
59
|
-
|
60
|
-
def self.remove_node(id)
|
61
|
-
node = find(id)
|
62
|
-
left = node.left
|
63
|
-
right = node.right
|
64
|
-
dif = right - left + 1
|
65
|
-
pid = node.parent_id
|
66
|
-
pos = node.position
|
67
|
-
|
68
|
-
# deleting node and its children
|
69
|
-
node.delete_branch
|
70
|
-
# shift left indexes of nodes right of the node
|
71
|
-
update_all("left = left - #{dif}", "left > #{right}")
|
72
|
-
# shift right indexes of nodes right of the node and the node's parents
|
73
|
-
update_all("right = right - #{dif}", "right > #{left}")
|
74
|
-
# Update position of siblings below the deleted node
|
75
|
-
update_all("position = position -1", "parent_id = #{pid} AND position > #{pos}")
|
76
|
-
result = { :status => 1 }
|
77
|
-
return result
|
78
|
-
end
|
79
|
-
|
80
|
-
def self.rename_node(params)
|
81
|
-
node = find(params[:id])
|
82
|
-
node.title = params[:title]
|
83
|
-
if node.save
|
84
|
-
return { :status => 1 }
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
def self.copy_children(id, node)
|
89
|
-
node.children.each do |child|
|
90
|
-
result = copy_node(id, child)
|
91
|
-
copy_children(result[:id], child)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
def self.copy_node(id, node)
|
96
|
-
params = {}
|
97
|
-
params[:id] = id
|
98
|
-
params[:position] = node.position
|
99
|
-
params[:title] = node.title
|
100
|
-
params[:type] = node.ntype
|
101
|
-
create_node(params)
|
102
|
-
end
|
103
|
-
|
104
|
-
def self.move_node(params)
|
105
|
-
node_old = find(params[:id])
|
106
|
-
result = copy_node(params[:ref], node_old)
|
107
|
-
copy_children(result[:id], node_old)
|
108
|
-
if params[:copy] == "1"
|
109
|
-
result = { :status => 1, :id => result[:id] }
|
110
|
-
else
|
111
|
-
remove_node(params[:id])
|
112
|
-
result = { :status => 1, :id => "1" }
|
113
|
-
end
|
114
|
-
return result
|
115
|
-
end
|
116
|
-
end
|