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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e0ba4101ff36653b27ccc35f14cecdfc566bb2e
4
- data.tar.gz: 4e0fda79a798862720e79553b9dac627b825cd66
3
+ metadata.gz: 4a2923afb10f0d24311ee5cdc442dfae2d0de821
4
+ data.tar.gz: e2f2606b0859cc5cf07406586289194957f5a00e
5
5
  SHA512:
6
- metadata.gz: 7be59d53189290e91b065fed45039634beedd3ea4b53e63a6572dea20030ad48841a7e4fa1d288e64d434b5c23cdbcdd23cff58043a26038a6409e906812db25
7
- data.tar.gz: 0674d0cfe58cb8f0e474adc21d56b18b130e9d285fb3ee0d9ea6ac869143328a97bc84a281e5462a8aa15b960d31d73f725074f4b7865bf386b97fdf607bc9fb
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', $activeTitle);
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( $body )
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($body).size() );
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,
@@ -268,7 +268,7 @@
268
268
  padding-right: 3.25em !important;
269
269
  }
270
270
  .ui.labeled.icon.input:not(.left) > .icon {
271
- margin-right: 0.75em;
271
+ margin-right: 1.25em;
272
272
  }
273
273
 
274
274
 
@@ -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
  }
@@ -207,7 +207,8 @@
207
207
  display: block;
208
208
  visibility: hidden;
209
209
  }
210
- .ui.active.popup {
210
+
211
+ .ui.visible.popup {
211
212
  display: block;
212
213
  }
213
214
 
@@ -1,7 +1,7 @@
1
1
  module Semantic
2
2
  module Ui
3
3
  module Rails
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.2"
5
5
  end
6
6
  end
7
7
  end
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.0
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-06 00:00:00.000000000 Z
11
+ date: 2013-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: less-rails