trusty-cms 1.1.25 → 1.1.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGM5MjA2ZGY3MTAxM2NlMjAzOTRhYTJkZGNhYWMyYTIzN2FiMjQ3MA==
4
+ MDIzZGRiNDdmM2Q2ODUwNTdkMWVlMDllNmJiNjFkYzIwMjYzN2JhYg==
5
5
  data.tar.gz: !binary |-
6
- MTJlNWEzNDY0ODlkMTZjMmQxNzU3YWZlYTlkYjdiYmM5ZmM3MWNkYw==
6
+ NmM1MjI0Y2JhMzcxZWFkZDI3MjcyMDg4MWU1NzUxNmM1OGI0NjQ5MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjM2YmYwODIzYTdiNzViNDgyNzBjYWMxMzFkOGM2ZTcwMGZjNWM4MTk0OWQ0
10
- YmYwMmZiMTE3MWMzMzQ3YmUzZmVjZGE4M2ZiYzI4Zjk3M2M1YjQ5MGYyMjNi
11
- ZmFkZjhiMDU0NDA3NjlhZmZiZTRhMGNjY2NmZThmMDBkYjQ5ZmI=
9
+ MzNmZDFjZDZlYzkxNjI1MDViNTFkMGZjNzZjNzJjMjM0M2Y2MWI3MDQzMmZj
10
+ M2JhYzNjMGFlNzZhODVhNWE4MzhhMWFiYjRhZWUyOTY3ZDc0NjUwNjM1NzA5
11
+ NmE5NTZmOTY4MGEzMWIwZTA1ODc3ZGYwYmIyY2Q3MmIyMDIwZGU=
12
12
  data.tar.gz: !binary |-
13
- ODE3NDM4MzEyNzRlNzEwMjA4MjY5N2YwNmFjM2E1NjQ0MmNlODNjMzI3YTYx
14
- ZGVjOWM2M2YwN2RmNzljNzRjYTQ0ZTAwMGJjMmQzNDAwZDMxZGNhYWYzZGQ0
15
- MDE2MGVmMDFkMjNkMmQzODBjZmRhMzE2YzVkNjgxYWE0M2FhNTU=
13
+ NDk3MjRkMmIzYTg4NzVmODAxNGVlNTg3YTVlYzA0MDc3OTc4NjVkZTBkZjIx
14
+ NmE1MDM1YzY0NWVkZDM0YTdjYWE0YTUxZGEwZjk0NzFiMjlhOTgwYjYzYmE5
15
+ MzkzODFlMjY0MzUzNmU2MzkxN2M1ZWYyMWI3NGY0YmZiODhlYmM=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (1.1.24)
4
+ trusty-cms (1.1.25)
5
5
  RedCloth (~> 4.2)
6
6
  acts_as_tree (~> 0.1.1)
7
7
  bundler (~> 1.7)
@@ -26,19 +26,21 @@
26
26
  }
27
27
 
28
28
  TabControl.selectTab = function(id) {
29
- id = id.replace(/^tab_/, '').replace(/^page_/, '').replace("_", "-");
29
+ id = id.replace(/^tab_/, '').replace(/^page_/, '');
30
+ var underscored_id = id.replace("_", "-");
30
31
  var $pages = $('div#tab_control .pages .page');
31
32
  var $tabs = $('div#tab_control .tabs .tab');
32
33
 
33
34
  $pages.hide();
34
35
  $tabs.removeClass('here');
35
36
 
36
- $pages.filter('#page_' + id).show();
37
+ $pages.filter('#page_' + underscored_id).show();
37
38
  $tabs.filter('#tab_' + id).addClass('here');
38
39
  }
39
40
 
40
41
  TabControl.removeTab = function(id) {
41
- id = id.replace(/^tab_/, '').replace(/^page_/, '').replace("_", "-");
42
+ id = id.replace(/^tab_/, '').replace(/^page_/, '');
43
+ var underscored_id = id.replace("_", "-");
42
44
  if(confirm('Remove the "' + id + '" part?')) {
43
45
  var $pages = $('div#tab_control .pages .page');
44
46
  var $tabs = $('div#tab_control .tabs .tab');
@@ -55,7 +57,7 @@
55
57
  }
56
58
  $tab.remove();
57
59
 
58
- $page = $pages.filter('#page_' + id);
60
+ $page = $pages.filter('#page_' + underscored_id);
59
61
  var idInput = $page.find('.id_input');
60
62
  var deleteInput = $page.find('.delete_input');
61
63
  deleteInput.attr('value', 'true');
data/lib/trusty_cms.rb CHANGED
@@ -5,7 +5,7 @@ unless defined? TrustyCms::Version
5
5
  module Version
6
6
  Major = '1'
7
7
  Minor = '1'
8
- Tiny = '25'
8
+ Tiny = '26'
9
9
  Patch = nil # set to nil for normal release
10
10
 
11
11
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.25
4
+ version: 1.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team