refinerycms-core 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/refinery/serializelist.js +8 -8
- data/app/assets/javascripts/refinery/{sortable_menu.js.coffee → sortable_menu.js.coffee.erb} +1 -1
- data/app/assets/javascripts/wymeditor/lang/fr.js +1 -0
- data/lib/generators/refinery/engine/engine_generator.rb +1 -1
- data/lib/refinery/core/configuration.rb +5 -0
- data/lib/refinery/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e862b07dadd6e91003f980ca76f20ec6d86e63ea
|
4
|
+
data.tar.gz: f1593003922925741d33c82538bab1a371edd88d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5abe01890f53b995dc6fc3906c08b8a47ff47966f251a84184acc4979f71fe020b9168d9e8a3c37d9726f7ae36a8e5597ec1b47d70064fc1acb3df201f37bea9
|
7
|
+
data.tar.gz: 95526e162c07d7e95fb818b0e8509587781a5b6cec1e478cc6b1c021fafbca7b8ce5a0a4750429851aaa7ee47a61619b82f0f550722455123e9c97c3325eb6df
|
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
var att_rep = function(att, val) {
|
30
30
|
if(!opts.att_regex) { return val; }
|
31
|
-
|
31
|
+
|
32
32
|
for(x in opts.att_regex) {
|
33
33
|
if(opts.att_regex[x].att === att) {
|
34
34
|
return val.replace(opts.att_regex[x].regex, '');
|
@@ -41,15 +41,15 @@
|
|
41
41
|
this.each(function(ul_count, ul) {
|
42
42
|
$(ul).children().each(function(li_count, li) {
|
43
43
|
if(opts.allow_nest || attrs.length > 1) {
|
44
|
-
for(
|
45
|
-
val = att_rep(attrs[
|
46
|
-
serialStr += opts.prepend+'['+ul_count+']['+li_count+']['+attrs[
|
44
|
+
for(var i = 0; i < attrs.length; i++) {
|
45
|
+
val = att_rep(attrs[i], $(li).attr(attrs[i]));
|
46
|
+
serialStr += opts.prepend+'['+ul_count+']['+li_count+']['+attrs[i]+']='+val;
|
47
47
|
}
|
48
48
|
} else {
|
49
49
|
val = att_rep(attrs[0], $(li).attr(attrs[0]));
|
50
50
|
serialStr += opts.prepend+'['+ul_count+']['+li_count+']='+val;
|
51
51
|
}
|
52
|
-
|
52
|
+
|
53
53
|
if(opts.allow_nest) {
|
54
54
|
child_base = opts.prepend+'['+ul_count+']['+li_count+'][children]';
|
55
55
|
$(li).children().each(function() {
|
@@ -58,11 +58,11 @@
|
|
58
58
|
}
|
59
59
|
});
|
60
60
|
}
|
61
|
-
|
61
|
+
|
62
62
|
li_count++;
|
63
63
|
});
|
64
64
|
});
|
65
|
-
|
65
|
+
|
66
66
|
return(serialStr);
|
67
67
|
};
|
68
|
-
})(jQuery);
|
68
|
+
})(jQuery);
|
data/app/assets/javascripts/refinery/{sortable_menu.js.coffee → sortable_menu.js.coffee.erb}
RENAMED
@@ -7,7 +7,7 @@
|
|
7
7
|
cursor: "crosshair"
|
8
8
|
connectWith: ".nested"
|
9
9
|
update: ->
|
10
|
-
$.post "
|
10
|
+
$.post "/<%= Refinery::Core.backend_route %>/update_menu_positions", $menu.sortable("serialize",
|
11
11
|
key: "menu[]"
|
12
12
|
expression: /plugin_([\w]*)$/
|
13
13
|
)
|
@@ -23,7 +23,7 @@ module Refinery
|
|
23
23
|
|
24
24
|
def backend_route
|
25
25
|
@backend_route ||= if namespacing.underscore != plural_name
|
26
|
-
|
26
|
+
%Q{"#\{Refinery::Core.backend_route\}/#{namespacing.underscore}"}
|
27
27
|
else
|
28
28
|
"Refinery::Core.backend_route"
|
29
29
|
end
|
data/lib/refinery/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: refinerycms-i18n
|
@@ -554,7 +554,7 @@ files:
|
|
554
554
|
- app/assets/javascripts/refinery/serializelist.js
|
555
555
|
- app/assets/javascripts/refinery/site_bar.js
|
556
556
|
- app/assets/javascripts/refinery/sortable_list.js
|
557
|
-
- app/assets/javascripts/refinery/sortable_menu.js.coffee
|
557
|
+
- app/assets/javascripts/refinery/sortable_menu.js.coffee.erb
|
558
558
|
- app/assets/javascripts/refinery/submenu.js.erb
|
559
559
|
- app/assets/javascripts/refinery/submit_continue.js.coffee.erb
|
560
560
|
- app/assets/javascripts/refinery/tree.js
|
@@ -906,7 +906,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
906
906
|
version: '0'
|
907
907
|
requirements: []
|
908
908
|
rubyforge_project: refinerycms
|
909
|
-
rubygems_version: 2.0
|
909
|
+
rubygems_version: 2.1.0
|
910
910
|
signing_key:
|
911
911
|
specification_version: 4
|
912
912
|
summary: Core extension for Refinery CMS
|