semantic-ui-rails 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/semantic-ui/modules/accordion.js +2 -2
- data/app/assets/javascripts/semantic-ui/modules/popup.js +8 -3
- data/app/assets/stylesheets/semantic-ui/elements/input.less +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/accordion.less +4 -2
- data/app/assets/stylesheets/semantic-ui/modules/popup.less +2 -1
- data/lib/semantic/ui/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a2923afb10f0d24311ee5cdc442dfae2d0de821
|
4
|
+
data.tar.gz: e2f2606b0859cc5cf07406586289194957f5a00e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9ae0ddf38275a3857f69706be6b7a2107afc97040c55e223fcce8257c20a37bad1dbba88ede12f4121c40de74f10419e8eec39467afcdb88a6d12aaff944e0
|
7
|
+
data.tar.gz: 42c0682a1d826d41d29a900119383afe54b10133c0c64fac6161cf6805a1e4ab12fdb7777bf31382981935203227456f2cf658eb424d2d61abafe932e0cf5cce
|
@@ -121,7 +121,7 @@ $.fn.accordion = function(parameters) {
|
|
121
121
|
var
|
122
122
|
$activeTitle = $title.eq(index),
|
123
123
|
$activeContent = $activeTitle.next($content),
|
124
|
-
$previousTitle = $title.filter('.' + className.active),
|
124
|
+
$previousTitle = $activeTitle.siblings(selector.title).filter('.' + className.active),
|
125
125
|
$previousContent = $previousTitle.next($title),
|
126
126
|
contentIsOpen = ($previousTitle.size() > 0)
|
127
127
|
;
|
@@ -177,7 +177,7 @@ $.fn.accordion = function(parameters) {
|
|
177
177
|
$activeTitle = $title.eq(index),
|
178
178
|
$activeContent = $activeTitle.next($content)
|
179
179
|
;
|
180
|
-
module.debug('Closing accordion content', $
|
180
|
+
module.debug('Closing accordion content', $activeContent);
|
181
181
|
$activeTitle
|
182
182
|
.removeClass(className.active)
|
183
183
|
;
|
@@ -15,7 +15,6 @@ $.fn.popup = function(parameters) {
|
|
15
15
|
var
|
16
16
|
$allModules = $(this),
|
17
17
|
$document = $(document),
|
18
|
-
$body = $('body'),
|
19
18
|
|
20
19
|
moduleSelector = $allModules.selector || '',
|
21
20
|
|
@@ -45,6 +44,7 @@ $.fn.popup = function(parameters) {
|
|
45
44
|
moduleNamespace = 'module-' + namespace,
|
46
45
|
|
47
46
|
$module = $(this),
|
47
|
+
$context = $(settings.context),
|
48
48
|
$target = (settings.target)
|
49
49
|
? $(settings.target)
|
50
50
|
: $module,
|
@@ -173,7 +173,7 @@ $.fn.popup = function(parameters) {
|
|
173
173
|
else {
|
174
174
|
module.verbose('Appending popup element to body', $popup);
|
175
175
|
$popup
|
176
|
-
.appendTo( $
|
176
|
+
.appendTo( $context )
|
177
177
|
;
|
178
178
|
}
|
179
179
|
$.proxy(settings.onCreate, $popup)();
|
@@ -239,7 +239,7 @@ $.fn.popup = function(parameters) {
|
|
239
239
|
return ( $popup.size() !== 0 );
|
240
240
|
}
|
241
241
|
else {
|
242
|
-
return ( $popup.parent($
|
242
|
+
return ( $popup.parent($context).size() );
|
243
243
|
}
|
244
244
|
},
|
245
245
|
|
@@ -492,6 +492,7 @@ $.fn.popup = function(parameters) {
|
|
492
492
|
.css(positioning)
|
493
493
|
.removeClass(className.position)
|
494
494
|
.addClass(position)
|
495
|
+
.addClass(className.loading)
|
495
496
|
;
|
496
497
|
// check if is offstage
|
497
498
|
offstagePosition = module.get.offstagePosition();
|
@@ -508,6 +509,7 @@ $.fn.popup = function(parameters) {
|
|
508
509
|
else {
|
509
510
|
module.error(error.recursion);
|
510
511
|
searchDepth = 0;
|
512
|
+
module.reset();
|
511
513
|
return false;
|
512
514
|
}
|
513
515
|
}
|
@@ -516,6 +518,8 @@ $.fn.popup = function(parameters) {
|
|
516
518
|
searchDepth = 0;
|
517
519
|
return true;
|
518
520
|
}
|
521
|
+
|
522
|
+
$module.removeClass(className.loading);
|
519
523
|
}
|
520
524
|
|
521
525
|
},
|
@@ -757,6 +761,7 @@ $.fn.popup.settings = {
|
|
757
761
|
target : false,
|
758
762
|
closable : true,
|
759
763
|
|
764
|
+
context : 'body',
|
760
765
|
position : 'top center',
|
761
766
|
delay : 150,
|
762
767
|
inline : false,
|
@@ -13,7 +13,8 @@
|
|
13
13
|
Accordion
|
14
14
|
*******************************/
|
15
15
|
|
16
|
-
.ui.accordion
|
16
|
+
.ui.accordion,
|
17
|
+
.ui.accordion .accordion {
|
17
18
|
width: 600px;
|
18
19
|
max-width: 100%;
|
19
20
|
overflow: hidden;
|
@@ -193,6 +194,7 @@
|
|
193
194
|
Fluid
|
194
195
|
---------------*/
|
195
196
|
|
196
|
-
.ui.fluid.accordion
|
197
|
+
.ui.fluid.accordion,
|
198
|
+
.ui.fluid.accordion .accordion {
|
197
199
|
width: 100%;
|
198
200
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic-ui-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nd0ut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails
|