card-mod-tabs 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/tab.js.coffee +11 -5
- data/data/files/mod_tabs_script_asset_output/file.js +1 -1
- data/set/abstract/tabs.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93d5be3c1f6abe76e038831c99dbecb67877f0ec0ec2f4439db2dd5487b424d5
|
4
|
+
data.tar.gz: '0847f8484546aeedafc80fda2b626540ff8c6aee1e44a268bbc97f3d042bfe87'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b822d3cc0c922d82417cbf0525132deb131f76511ae7c63357d5282e27bfb52ea91c485edc91f128ecd03939bbad4443b61ec31004f89f504407550de9457f56
|
7
|
+
data.tar.gz: a945de20c3d03fc23fd2e6037e6d8209e29582b434964ef92c6710fe1ed8ce0bbdd496f290aa71bab5122f1d6d2bdbba3e4137a0add2cb8c88d824374b7ee225
|
data/assets/script/tab.js.coffee
CHANGED
@@ -1,12 +1,18 @@
|
|
1
1
|
$(window).ready ->
|
2
2
|
$('body').on 'show.bs.tab', 'a.load[data-bs-toggle="tab"][data-url]', (e) ->
|
3
|
-
|
4
|
-
|
3
|
+
targ = $(e.target)
|
4
|
+
tab_id = targ.attr "href"
|
5
|
+
url = targ.data "url"
|
5
6
|
tabname = $(this).data "tabName"
|
6
|
-
|
7
|
+
targ.removeClass "load"
|
8
|
+
tab_content = $(tab_id)
|
9
|
+
# tab_content.slotReloading()
|
10
|
+
|
7
11
|
$.ajax
|
8
12
|
url: url
|
9
13
|
success: (html) ->
|
10
|
-
|
14
|
+
tab_content.append(html)
|
11
15
|
window.history.pushState("tab", "", "?tab=" + tabname)
|
12
|
-
decko.contentLoaded
|
16
|
+
decko.contentLoaded tab_content, $(this)
|
17
|
+
# complete: ()->
|
18
|
+
# tab_content.slotLoadingComplete()
|
@@ -1,2 +1,2 @@
|
|
1
1
|
// tab.js.coffee
|
2
|
-
(function(){$(window).ready(function(){return $("body").on("show.bs.tab",'a.load[data-bs-toggle="tab"][data-url]',function(t){var a,e,r;return
|
2
|
+
(function(){$(window).ready(function(){return $("body").on("show.bs.tab",'a.load[data-bs-toggle="tab"][data-url]',function(t){var a,n,o,e,r;return n=(e=$(t.target)).attr("href"),r=e.data("url"),o=$(this).data("tabName"),e.removeClass("load"),a=$(n),$.ajax({url:r,success:function(t){return a.append(t),window.history.pushState("tab","","?tab="+o),decko.contentLoaded(a,$(this))}})})})}).call(this);
|
data/set/abstract/tabs.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-tabs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,28 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.108.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.
|
28
|
+
version: 1.108.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-bootstrap
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.18.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.18.0
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -59,7 +59,7 @@ files:
|
|
59
59
|
- set/all/tabs/tab_panel.haml
|
60
60
|
homepage: https://decko.org
|
61
61
|
licenses:
|
62
|
-
- GPL-3.0
|
62
|
+
- GPL-3.0-or-later
|
63
63
|
metadata:
|
64
64
|
source_code_uri: https://github.com/decko-commons/decko
|
65
65
|
homepage_uri: https://decko.org
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.5.
|
86
|
+
rubygems_version: 3.5.7
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: tabs
|