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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38344324c8aabdca646f3ffb65e2b68aef94581e
4
- data.tar.gz: 93f69f5eced0eb86702cd809e7e2497f03d68d07
3
+ metadata.gz: e862b07dadd6e91003f980ca76f20ec6d86e63ea
4
+ data.tar.gz: f1593003922925741d33c82538bab1a371edd88d
5
5
  SHA512:
6
- metadata.gz: f19ca709e8d5fdb4e6f7d6c1d6d463d2358691ff52493a46095b46e6d06d1139444fd93d1995cb519e1fcff07d03555d4b3ee8c9b0f1185c0ae525b2dd63bb97
7
- data.tar.gz: 5d30e2fffece107a55468342a0285206ebeac02cb21819dc6e77ebd4b0088b522095ac1371372e1f9eda3ddb17f56ae8f2e587499affee97b6b90813020b6c10
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(att in attrs) {
45
- val = att_rep(attrs[att], $(li).attr(attrs[att]));
46
- serialStr += opts.prepend+'['+ul_count+']['+li_count+']['+attrs[att]+']='+val;
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);
@@ -7,7 +7,7 @@
7
7
  cursor: "crosshair"
8
8
  connectWith: ".nested"
9
9
  update: ->
10
- $.post "/refinery/update_menu_positions", $menu.sortable("serialize",
10
+ $.post "/<%= Refinery::Core.backend_route %>/update_menu_positions", $menu.sortable("serialize",
11
11
  key: "menu[]"
12
12
  expression: /plugin_([\w]*)$/
13
13
  )
@@ -31,6 +31,7 @@ WYMeditor.STRINGS['fr'] = {
31
31
  Summary: 'Résumé',
32
32
  Number_Of_Rows: 'Nombre de lignes',
33
33
  Number_Of_Cols: 'Nombre de colonnes',
34
+ Insert: 'Insérer',
34
35
  Submit: 'Envoyer',
35
36
  Cancel: 'Annuler',
36
37
  Choose: 'Choisir',
@@ -23,7 +23,7 @@ module Refinery
23
23
 
24
24
  def backend_route
25
25
  @backend_route ||= if namespacing.underscore != plural_name
26
- %Q{"#\{Refinery::Core.backend_route\}/#{namespacing.underscore}"}
26
+ %Q{"#\{Refinery::Core.backend_route\}/#{namespacing.underscore}"}
27
27
  else
28
28
  "Refinery::Core.backend_route"
29
29
  end
@@ -38,6 +38,11 @@ module Refinery
38
38
  end
39
39
 
40
40
  class << self
41
+ def backend_route
42
+ # prevent / at the start.
43
+ config.backend_route.to_s.gsub(%r{\A/}, '')
44
+ end
45
+
41
46
  def clear_javascripts!
42
47
  self.javascripts = []
43
48
  end
@@ -2,7 +2,7 @@ module Refinery
2
2
  class Version
3
3
  @major = 2
4
4
  @minor = 1
5
- @tiny = 0
5
+ @tiny = 1
6
6
  @build = nil
7
7
 
8
8
  class << self
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.0
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-08-05 00:00:00.000000000 Z
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.3
909
+ rubygems_version: 2.1.0
910
910
  signing_key:
911
911
  specification_version: 4
912
912
  summary: Core extension for Refinery CMS