radiant-drag_order-extension 0.4.2 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/public/images/admin/extensions/drag_order/handle.png +0 -0
- data/public/javascripts/admin/extensions/drag_order/drag_order.js +5 -3
- data/public/stylesheets/sass/admin/extensions/drag_order/drag_order.sass +10 -4
- data/public/stylesheets/sass/admin/partials/_index.sass +67 -55
- data/radiant-drag_order-extension.gemspec +1 -3
- metadata +3 -5
- data/public/images/admin/extensions/drag_order/circle.png +0 -0
- data/public/images/admin/extensions/drag_order/copy.png +0 -0
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.4
|
Binary file
|
@@ -28,7 +28,7 @@ var DragOrderIndex = Class.create({
|
|
28
28
|
}
|
29
29
|
},
|
30
30
|
onDrop: function(drag, drop, event){
|
31
|
-
this.
|
31
|
+
this.assignIndentation(drag.element);
|
32
32
|
this.assignExpanders(drag.element);
|
33
33
|
|
34
34
|
new Ajax.Request('/admin/pages/sort.js', {
|
@@ -74,17 +74,19 @@ var DragOrderIndex = Class.create({
|
|
74
74
|
});
|
75
75
|
},
|
76
76
|
|
77
|
-
|
77
|
+
assignIndentation: function(page) {
|
78
78
|
var level = parseInt(page.up('.page').getAttribute('data-level'))
|
79
79
|
|
80
80
|
level += 1;
|
81
|
-
page.setAttribute('data-level', level)
|
81
|
+
page.setAttribute('data-level', level);
|
82
|
+
page.addClassName('level_' + level);
|
82
83
|
page.down('.attributes').setStyle({ paddingLeft: ((level * 23) + 31) + 'px' });
|
83
84
|
|
84
85
|
page.select('.children').each(function(container) {
|
85
86
|
level += 1;
|
86
87
|
container.select('.page').each(function(page) {
|
87
88
|
page.setAttribute('data-level', level);
|
89
|
+
page.addClassName('level_' + level);
|
88
90
|
page.down('.attributes').setStyle({ paddingLeft: ((level * 23) + 31) + 'px' });
|
89
91
|
});
|
90
92
|
});
|
@@ -3,18 +3,24 @@
|
|
3
3
|
.page
|
4
4
|
|
5
5
|
&.drop_hover
|
6
|
-
|
7
|
-
|
6
|
+
.attributes
|
7
|
+
border-bottom-color: #e0e3ec
|
8
8
|
|
9
9
|
li
|
10
10
|
border-color: transparent
|
11
11
|
|
12
12
|
&.drop_insert
|
13
|
-
|
14
|
-
|
13
|
+
|
14
|
+
.attributes
|
15
|
+
background-color: #f6f8ff
|
16
|
+
border-color: transparent
|
15
17
|
|
16
18
|
li
|
17
19
|
border-color: transparent
|
20
|
+
|
21
|
+
.attributes
|
22
|
+
background-color: #ffffff
|
23
|
+
|
18
24
|
|
19
25
|
&.drag_move
|
20
26
|
.children
|
@@ -1,5 +1,6 @@
|
|
1
1
|
=status-badge($background: transparent, $color: black, $width: 5em)
|
2
|
-
|
2
|
+
position: absolute
|
3
|
+
right: 235px
|
3
4
|
height: 14px
|
4
5
|
line-height: 14px
|
5
6
|
font-size: 10px
|
@@ -7,8 +8,6 @@
|
|
7
8
|
background: $background
|
8
9
|
display: block
|
9
10
|
padding: 0 6px
|
10
|
-
position: absolute
|
11
|
-
right: 215px
|
12
11
|
top: 14px
|
13
12
|
width: $width
|
14
13
|
text-align: center
|
@@ -18,61 +17,50 @@
|
|
18
17
|
// Support floated elements, avoid horizontal scrollbar
|
19
18
|
overflow: hidden
|
20
19
|
|
20
|
+
ol.index
|
21
|
+
border-top: 8px solid #9e9e9e
|
22
|
+
|
21
23
|
.index
|
22
24
|
font-size: 90%
|
23
25
|
margin-bottom: 2emasset
|
24
26
|
width: 100%
|
25
|
-
|
27
|
+
th
|
28
|
+
text-align: left
|
29
|
+
background-color: #9e9e9e
|
30
|
+
color: white
|
31
|
+
font-size: 90%
|
32
|
+
font-weight: normal
|
33
|
+
padding: 2px 9px
|
34
|
+
&.actions
|
35
|
+
padding-left: 15px
|
36
|
+
min-width: 18em
|
37
|
+
&.name
|
38
|
+
width: 100%
|
39
|
+
&.status
|
40
|
+
min-width: 8em
|
26
41
|
li
|
27
42
|
position: relative
|
28
43
|
text-align: left
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
padding-right: 5px
|
50
|
-
.actions
|
51
|
-
float: right
|
52
|
-
margin-top: -2px
|
53
|
-
a.action, span.action.disabled
|
54
|
-
padding: 6px
|
55
|
-
margin: 0 25px 0 1px
|
56
|
-
font-size: 10px
|
57
|
-
img
|
58
|
-
vertical-align: -10%
|
59
|
-
a.action
|
60
|
-
color: black
|
61
|
-
text-decoration: none
|
62
|
-
&:hover
|
63
|
-
background: #eee image_url('admin/buttons_background.png') repeat-x
|
64
|
-
border: 1px solid #a5c9df
|
65
|
-
margin: 0 24px 0 0
|
66
|
-
+border-radius
|
67
|
-
&.selected
|
68
|
-
background: #c5e0f5
|
69
|
-
+linear-gradient(color_stops(#e5f5ff, #c5e0ff))
|
70
|
-
border: 1px solid #a5c9df
|
71
|
-
margin: 0 24px 0 0
|
72
|
-
+border-top-radius
|
73
|
-
+border-bottom-radius(0)
|
74
|
-
span.action.disabled
|
75
|
-
color: #ccc
|
44
|
+
li .attributes, tbody tr
|
45
|
+
.hover, &:hover
|
46
|
+
border-top: 1px solid #d5f0ff
|
47
|
+
border-bottom: 1px solid #c5dff5
|
48
|
+
background: #c5dff5 image_url('admin/row_highlight.png') repeat-x center top
|
49
|
+
+linear-gradient(color_stops(#e5f5ff, #c5dff5))
|
50
|
+
li .attributes, td
|
51
|
+
width: auto
|
52
|
+
height: 31px
|
53
|
+
line-height: 31px
|
54
|
+
padding: 4px 0 4px 10px
|
55
|
+
overflow: hidden
|
56
|
+
text-decoration: none
|
57
|
+
padding-left: 5px
|
58
|
+
border-top: 1px solid transparent
|
59
|
+
border-bottom: 1px solid #F4F4F4
|
60
|
+
.attribute
|
61
|
+
display: block
|
62
|
+
float: left
|
63
|
+
padding-right: 5px
|
76
64
|
&.empty
|
77
65
|
color: silver
|
78
66
|
font-size: 85%
|
@@ -90,10 +78,34 @@
|
|
90
78
|
&:hover
|
91
79
|
color: #0066cc
|
92
80
|
text-decoration: underline
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
81
|
+
li .attributes .actions
|
82
|
+
float: right
|
83
|
+
td.actions
|
84
|
+
width: 225px
|
85
|
+
li .attributes .actions, td.actions
|
86
|
+
a.action, span.action.disabled
|
87
|
+
padding: 6px
|
88
|
+
margin: 0 25px 0 1px
|
89
|
+
font-size: 10px
|
90
|
+
img
|
91
|
+
vertical-align: -10%
|
92
|
+
a.action
|
93
|
+
color: black
|
94
|
+
text-decoration: none
|
95
|
+
&:hover
|
96
|
+
background: #eee image_url('admin/buttons_background.png') repeat-x
|
97
|
+
border: 1px solid #a5c9df
|
98
|
+
margin: 0 24px 0 0
|
99
|
+
+border-radius
|
100
|
+
&.selected
|
101
|
+
background: #c5e0f5
|
102
|
+
+linear-gradient(color_stops(#e5f5ff, #c5e0ff))
|
103
|
+
border: 1px solid #a5c9df
|
104
|
+
margin: 0 24px 0 0
|
105
|
+
+border-top-radius
|
106
|
+
+border-bottom-radius(0)
|
107
|
+
span.action.disabled
|
108
|
+
color: #ccc
|
97
109
|
|
98
110
|
.index#pages
|
99
111
|
.page
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-drag_order-extension}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dirk Kelly"]
|
@@ -33,8 +33,6 @@ Gem::Specification.new do |s|
|
|
33
33
|
"lib/radiant-drag_order-extension.rb",
|
34
34
|
"lib/tasks/drag_order_extension_tasks.rake",
|
35
35
|
"pkg/radiant-drag_order-extension-0.3.9.gem",
|
36
|
-
"public/images/admin/extensions/drag_order/circle.png",
|
37
|
-
"public/images/admin/extensions/drag_order/copy.png",
|
38
36
|
"public/images/admin/extensions/drag_order/handle.png",
|
39
37
|
"public/javascripts/admin/extensions/drag_order/drag_order.js",
|
40
38
|
"public/javascripts/admin/sitemap.js",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-drag_order-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dirk Kelly
|
@@ -60,8 +60,6 @@ files:
|
|
60
60
|
- lib/radiant-drag_order-extension.rb
|
61
61
|
- lib/tasks/drag_order_extension_tasks.rake
|
62
62
|
- pkg/radiant-drag_order-extension-0.3.9.gem
|
63
|
-
- public/images/admin/extensions/drag_order/circle.png
|
64
|
-
- public/images/admin/extensions/drag_order/copy.png
|
65
63
|
- public/images/admin/extensions/drag_order/handle.png
|
66
64
|
- public/javascripts/admin/extensions/drag_order/drag_order.js
|
67
65
|
- public/javascripts/admin/sitemap.js
|
Binary file
|
Binary file
|