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 +8 -8
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/admin/tabcontrol.js.erb +6 -4
- data/lib/trusty_cms.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDIzZGRiNDdmM2Q2ODUwNTdkMWVlMDllNmJiNjFkYzIwMjYzN2JhYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmM1MjI0Y2JhMzcxZWFkZDI3MjcyMDg4MWU1NzUxNmM1OGI0NjQ5MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzNmZDFjZDZlYzkxNjI1MDViNTFkMGZjNzZjNzJjMjM0M2Y2MWI3MDQzMmZj
|
10
|
+
M2JhYzNjMGFlNzZhODVhNWE4MzhhMWFiYjRhZWUyOTY3ZDc0NjUwNjM1NzA5
|
11
|
+
NmE5NTZmOTY4MGEzMWIwZTA1ODc3ZGYwYmIyY2Q3MmIyMDIwZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDk3MjRkMmIzYTg4NzVmODAxNGVlNTg3YTVlYzA0MDc3OTc4NjVkZTBkZjIx
|
14
|
+
NmE1MDM1YzY0NWVkZDM0YTdjYWE0YTUxZGEwZjk0NzFiMjlhOTgwYjYzYmE5
|
15
|
+
MzkzODFlMjY0MzUzNmU2MzkxN2M1ZWYyMWI3NGY0YmZiODhlYmM=
|
data/Gemfile.lock
CHANGED
@@ -26,19 +26,21 @@
|
|
26
26
|
}
|
27
27
|
|
28
28
|
TabControl.selectTab = function(id) {
|
29
|
-
id = id.replace(/^tab_/, '').replace(/^page_/, '')
|
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_' +
|
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_/, '')
|
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_' +
|
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