less-rails-semantic_ui 1.10.0.0 → 1.10.4.0

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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/semantic_ui/definitions/behaviors/api.js +18 -10
  3. data/assets/javascripts/semantic_ui/definitions/behaviors/colorize.js +3 -3
  4. data/assets/javascripts/semantic_ui/definitions/behaviors/form.js +5 -3
  5. data/assets/javascripts/semantic_ui/definitions/behaviors/state.js +5 -3
  6. data/assets/javascripts/semantic_ui/definitions/behaviors/visibility.js +113 -65
  7. data/assets/javascripts/semantic_ui/definitions/behaviors/visit.js +5 -3
  8. data/assets/javascripts/semantic_ui/definitions/globals/site.js +3 -3
  9. data/assets/javascripts/semantic_ui/definitions/modules/accordion.js +3 -3
  10. data/assets/javascripts/semantic_ui/definitions/modules/checkbox.js +3 -3
  11. data/assets/javascripts/semantic_ui/definitions/modules/dimmer.js +5 -3
  12. data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +3 -3
  13. data/assets/javascripts/semantic_ui/definitions/modules/modal.js +3 -3
  14. data/assets/javascripts/semantic_ui/definitions/modules/nag.js +3 -3
  15. data/assets/javascripts/semantic_ui/definitions/modules/popup.js +3 -3
  16. data/assets/javascripts/semantic_ui/definitions/modules/progress.js +3 -3
  17. data/assets/javascripts/semantic_ui/definitions/modules/rating.js +3 -3
  18. data/assets/javascripts/semantic_ui/definitions/modules/search.js +4 -4
  19. data/assets/javascripts/semantic_ui/definitions/modules/shape.js +3 -3
  20. data/assets/javascripts/semantic_ui/definitions/modules/sidebar.js +3 -3
  21. data/assets/javascripts/semantic_ui/definitions/modules/sticky.js +23 -24
  22. data/assets/javascripts/semantic_ui/definitions/modules/tab.js +3 -3
  23. data/assets/javascripts/semantic_ui/definitions/modules/transition.js +3 -4
  24. data/assets/javascripts/semantic_ui/definitions/modules/video.js +3 -3
  25. data/assets/stylesheets/semantic_ui/definitions/collections/breadcrumb.less +3 -3
  26. data/assets/stylesheets/semantic_ui/definitions/collections/form.less +3 -3
  27. data/assets/stylesheets/semantic_ui/definitions/collections/grid.less +3 -3
  28. data/assets/stylesheets/semantic_ui/definitions/collections/menu.less +8 -3
  29. data/assets/stylesheets/semantic_ui/definitions/collections/message.less +3 -3
  30. data/assets/stylesheets/semantic_ui/definitions/collections/table.less +3 -3
  31. data/assets/stylesheets/semantic_ui/definitions/elements/button.less +4 -3
  32. data/assets/stylesheets/semantic_ui/definitions/elements/divider.less +3 -3
  33. data/assets/stylesheets/semantic_ui/definitions/elements/flag.less +3 -3
  34. data/assets/stylesheets/semantic_ui/definitions/elements/header.less +3 -3
  35. data/assets/stylesheets/semantic_ui/definitions/elements/icon.less +3 -3
  36. data/assets/stylesheets/semantic_ui/definitions/elements/image.less +3 -3
  37. data/assets/stylesheets/semantic_ui/definitions/elements/input.less +3 -3
  38. data/assets/stylesheets/semantic_ui/definitions/elements/label.less +3 -3
  39. data/assets/stylesheets/semantic_ui/definitions/elements/list.less +3 -3
  40. data/assets/stylesheets/semantic_ui/definitions/elements/loader.less +10 -3
  41. data/assets/stylesheets/semantic_ui/definitions/elements/rail.less +3 -3
  42. data/assets/stylesheets/semantic_ui/definitions/elements/reveal.less +3 -3
  43. data/assets/stylesheets/semantic_ui/definitions/elements/segment.less +3 -3
  44. data/assets/stylesheets/semantic_ui/definitions/elements/step.less +3 -3
  45. data/assets/stylesheets/semantic_ui/definitions/globals/reset.less +3 -3
  46. data/assets/stylesheets/semantic_ui/definitions/globals/site.less +3 -3
  47. data/assets/stylesheets/semantic_ui/definitions/modules/accordion.less +4 -3
  48. data/assets/stylesheets/semantic_ui/definitions/modules/checkbox.less +3 -3
  49. data/assets/stylesheets/semantic_ui/definitions/modules/dimmer.less +3 -3
  50. data/assets/stylesheets/semantic_ui/definitions/modules/dropdown.less +3 -3
  51. data/assets/stylesheets/semantic_ui/definitions/modules/modal.less +3 -3
  52. data/assets/stylesheets/semantic_ui/definitions/modules/nag.less +3 -3
  53. data/assets/stylesheets/semantic_ui/definitions/modules/popup.less +3 -3
  54. data/assets/stylesheets/semantic_ui/definitions/modules/progress.less +3 -3
  55. data/assets/stylesheets/semantic_ui/definitions/modules/rating.less +3 -3
  56. data/assets/stylesheets/semantic_ui/definitions/modules/search.less +3 -3
  57. data/assets/stylesheets/semantic_ui/definitions/modules/shape.less +3 -3
  58. data/assets/stylesheets/semantic_ui/definitions/modules/sidebar.less +3 -3
  59. data/assets/stylesheets/semantic_ui/definitions/modules/sticky.less +3 -3
  60. data/assets/stylesheets/semantic_ui/definitions/modules/tab.less +3 -3
  61. data/assets/stylesheets/semantic_ui/definitions/modules/transition.less +3 -3
  62. data/assets/stylesheets/semantic_ui/definitions/modules/video.less +3 -3
  63. data/assets/stylesheets/semantic_ui/definitions/views/ad.less +2 -2
  64. data/assets/stylesheets/semantic_ui/definitions/views/card.less +3 -3
  65. data/assets/stylesheets/semantic_ui/definitions/views/comment.less +3 -3
  66. data/assets/stylesheets/semantic_ui/definitions/views/feed.less +3 -3
  67. data/assets/stylesheets/semantic_ui/definitions/views/item.less +3 -3
  68. data/assets/stylesheets/semantic_ui/definitions/views/statistic.less +3 -3
  69. data/assets/stylesheets/semantic_ui/themes/default/collections/menu.variables +1 -0
  70. data/assets/stylesheets/semantic_ui/themes/default/elements/icon.overrides +3 -3
  71. data/lib/less/rails/semantic_ui/version.rb +1 -1
  72. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a18cfb699e451035985f4460eb332d1be65b8720
4
- data.tar.gz: b822c2ad0f3a5234362f1a791cf6050a63be95d7
3
+ metadata.gz: 60b13a016a97fd828e6f64cc1845ea4851fa5d98
4
+ data.tar.gz: ed24a7ae707268326590899f382f76d5859e3fc9
5
5
  SHA512:
6
- metadata.gz: d6453c8c71dd2d68f5192988423564989c1f012eafae84357cad23a3b3999f29a44fd612f30ceacb63b3bfa3ba836377eaf38e6db3d09bd5c7030dc3096d557b
7
- data.tar.gz: 54fbe7ecd54a6985c97561920a119bfddb4344d222b99fb03b7b30f8a3102690d025f56ec36c6bd49a89ee43c1fd46510e934ab4e9728275a401a893f1935aab
6
+ metadata.gz: 412872a9190beb0932453ef7659f682df2b8ec9fd570aee8371545cfae2498d50615c6352659e501e4b2de9d316b589d655dd5104e88e0f5f5bfdf3adc1dc5b3
7
+ data.tar.gz: 368ba82259e96e24b59189f1c168dc5c85180d3ee07f56a8941613212a173289280eee68b7299283089e6f7ef887d81bcf66e11634c9f81ce57950580365aa3c
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - API
1
+ /*!
2
+ * # Semantic UI - API
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -11,6 +11,8 @@
11
11
 
12
12
  ;(function ( $, window, document, undefined ) {
13
13
 
14
+ "use strict";
15
+
14
16
  $.api = $.fn.api = function(parameters) {
15
17
 
16
18
  var
@@ -160,9 +162,9 @@ $.api = $.fn.api = function(parameters) {
160
162
 
161
163
  // exit conditions reached, missing url parameters
162
164
  if( !url ) {
163
- if($module.is('form')) {
164
- module.debug('No url or action specified, defaulting to form action');
165
- url = $module.attr('action');
165
+ if( module.is.form() ) {
166
+ url = $module.attr('action') || '';
167
+ module.debug('No url or action specified, defaulting to form action', url);
166
168
  }
167
169
  else {
168
170
  module.error(error.missingURL, settings.action);
@@ -210,6 +212,12 @@ $.api = $.fn.api = function(parameters) {
210
212
  disabled: function() {
211
213
  return ($module.filter(settings.filter).length > 0);
212
214
  },
215
+ form: function() {
216
+ return $module.is('form');
217
+ },
218
+ input: function() {
219
+ return $module.is('input');
220
+ },
213
221
  loading: function() {
214
222
  return (module.request && module.request.state() == 'pending');
215
223
  }
@@ -506,10 +514,10 @@ $.api = $.fn.api = function(parameters) {
506
514
  data = {}
507
515
  ;
508
516
  if( !$.isWindow(element) ) {
509
- if( $module.is('input') ) {
517
+ if( module.is.input() ) {
510
518
  data.value = $module.val();
511
519
  }
512
- else if( $module.is('form') ) {
520
+ else if( !module.is.form() ) {
513
521
 
514
522
  }
515
523
  else {
@@ -547,7 +555,7 @@ $.api = $.fn.api = function(parameters) {
547
555
  var
548
556
  formData
549
557
  ;
550
- if($(this).serializeObject() !== undefined) {
558
+ if($module.serializeObject !== undefined) {
551
559
  formData = $form.serializeObject();
552
560
  }
553
561
  else {
@@ -568,7 +576,7 @@ $.api = $.fn.api = function(parameters) {
568
576
  url = settings.api[action];
569
577
  module.debug('Found template url', url);
570
578
  }
571
- else {
579
+ else if( !module.is.form() ) {
572
580
  module.error(error.missingAction, settings.action, settings.api);
573
581
  }
574
582
  }
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Colorize
1
+ /*!
2
+ * # Semantic UI - Colorize
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Form Validation
1
+ /*!
2
+ * # Semantic UI - Form Validation
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -11,6 +11,8 @@
11
11
 
12
12
  ;(function ( $, window, document, undefined ) {
13
13
 
14
+ "use strict";
15
+
14
16
  $.fn.form = function(fields, parameters) {
15
17
  var
16
18
  $allModules = $(this),
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - State
1
+ /*!
2
+ * # Semantic UI - State
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -11,6 +11,8 @@
11
11
 
12
12
  ;(function ( $, window, document, undefined ) {
13
13
 
14
+ "use strict";
15
+
14
16
  $.fn.state = function(parameters) {
15
17
  var
16
18
  $allModules = $(this),
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Visibility
1
+ /*!
2
+ * # Semantic UI - Visibility
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -11,6 +11,8 @@
11
11
 
12
12
  ;(function ( $, window, document, undefined ) {
13
13
 
14
+ "use strict";
15
+
14
16
  $.fn.visibility = function(parameters) {
15
17
  var
16
18
  $allModules = $(this),
@@ -52,6 +54,7 @@ $.fn.visibility = function(parameters) {
52
54
  || function(callback) { setTimeout(callback, 0); },
53
55
 
54
56
  element = this,
57
+ observer,
55
58
  module
56
59
  ;
57
60
 
@@ -72,7 +75,12 @@ $.fn.visibility = function(parameters) {
72
75
  module.setup.fixed();
73
76
  }
74
77
  }
75
- module.checkVisibility();
78
+ if(settings.initialCheck) {
79
+ module.checkVisibility();
80
+ }
81
+ if(settings.observeChanges) {
82
+ module.observeChanges();
83
+ }
76
84
  module.instantiate();
77
85
  },
78
86
 
@@ -92,6 +100,23 @@ $.fn.visibility = function(parameters) {
92
100
  ;
93
101
  },
94
102
 
103
+ observeChanges: function() {
104
+ var
105
+ context = $context[0]
106
+ ;
107
+ if('MutationObserver' in window) {
108
+ observer = new MutationObserver(function(mutations) {
109
+ module.verbose('DOM tree modified, updating visibility calculations');
110
+ module.refresh();
111
+ });
112
+ observer.observe(element, {
113
+ childList : true,
114
+ subtree : true
115
+ });
116
+ module.debug('Setting up mutation observer', observer);
117
+ }
118
+ },
119
+
95
120
  bindEvents: function() {
96
121
  module.verbose('Binding visibility events to scroll and resize');
97
122
  $window
@@ -174,6 +199,7 @@ $.fn.visibility = function(parameters) {
174
199
  module.verbose('Lazy loading image', src);
175
200
  // show when top visible
176
201
  module.topVisible(function() {
202
+ module.debug('Image top visible', element);
177
203
  module.precache(src, function() {
178
204
  module.set.image(src);
179
205
  settings.onTopVisible = false;
@@ -195,8 +221,10 @@ $.fn.visibility = function(parameters) {
195
221
  top: settings.offset + 'px'
196
222
  })
197
223
  ;
198
- if(settings.animation && $.fn.transition !== undefined) {
199
- $module.transition(settings.transition, settings.duration);
224
+ if(settings.transition) {
225
+ if($.fn.transition !== undefined) {
226
+ $module.transition(settings.transition, settings.duration);
227
+ }
200
228
  }
201
229
  },
202
230
  onTopPassedReverse: function() {
@@ -226,16 +254,30 @@ $.fn.visibility = function(parameters) {
226
254
  $module.show();
227
255
  }
228
256
  else {
229
- if(settings.transition && $.fn.transition !== undefined) {
230
- $module.transition(settings.transition, settings.duration);
257
+ if(settings.transition) {
258
+ if( $.fn.transition !== undefined ) {
259
+ $module.transition(settings.transition, settings.duration);
260
+ }
261
+ else {
262
+ $module.fadeIn(settings.duration);
263
+ }
231
264
  }
232
265
  else {
233
- $module.fadeIn(settings.duration);
266
+ $module.show();
234
267
  }
235
268
  }
236
269
  }
237
270
  },
238
271
 
272
+ is: {
273
+ visible: function() {
274
+ if(module.cache && module.cache.element) {
275
+ return (module.cache.element.height > 0 && module.cache.element.width > 0);
276
+ }
277
+ return false;
278
+ }
279
+ },
280
+
239
281
  refresh: function() {
240
282
  module.debug('Refreshing constants (element width/height)');
241
283
  module.reset();
@@ -256,22 +298,24 @@ $.fn.visibility = function(parameters) {
256
298
  module.verbose('Checking visibility of element', module.cache.element);
257
299
  module.save.calculations();
258
300
 
259
- // percentage
260
- module.passed();
301
+ if( module.is.visible() ) {
302
+ // percentage
303
+ module.passed();
261
304
 
262
- // reverse (must be first)
263
- module.passingReverse();
264
- module.topVisibleReverse();
265
- module.bottomVisibleReverse();
266
- module.topPassedReverse();
267
- module.bottomPassedReverse();
305
+ // reverse (must be first)
306
+ module.passingReverse();
307
+ module.topVisibleReverse();
308
+ module.bottomVisibleReverse();
309
+ module.topPassedReverse();
310
+ module.bottomPassedReverse();
268
311
 
269
- // one time
270
- module.passing();
271
- module.topVisible();
272
- module.bottomVisible();
273
- module.topPassed();
274
- module.bottomPassed();
312
+ // one time
313
+ module.passing();
314
+ module.topVisible();
315
+ module.bottomVisible();
316
+ module.topPassed();
317
+ module.bottomPassed();
318
+ }
275
319
  },
276
320
 
277
321
  passed: function(amount, newCallback) {
@@ -525,7 +569,7 @@ $.fn.visibility = function(parameters) {
525
569
  calculations = module.get.elementCalculations(),
526
570
  screen = module.get.screenCalculations()
527
571
  ;
528
- callback = callback || false;
572
+ callback = callback || false;
529
573
  if(callback) {
530
574
  if(settings.continuous) {
531
575
  module.debug('Callback being called continuously', callbackName, calculations);
@@ -592,59 +636,58 @@ $.fn.visibility = function(parameters) {
592
636
  },
593
637
  elementPosition: function() {
594
638
  var
595
- screen = module.get.screenSize()
639
+ element = module.cache.element,
640
+ screen = module.get.screenSize()
596
641
  ;
597
642
  module.verbose('Saving element position');
598
- $.extend(module.cache.element, {
599
- margin : {
600
- top : parseInt($module.css('margin-top'), 10),
601
- bottom : parseInt($module.css('margin-bottom'), 10)
602
- },
603
- fits : (element.height < screen.height),
604
- offset : $module.offset(),
605
- width : $module.outerWidth(),
606
- height : $module.outerHeight()
607
- });
608
- return module.cache.element;
643
+ // (quicker than $.extend)
644
+ element.margin = {};
645
+ element.margin.top = parseInt($module.css('margin-top'), 10);
646
+ element.margin.bottom = parseInt($module.css('margin-bottom'), 10);
647
+ element.fits = (element.height < screen.height);
648
+ element.offset = $module.offset();
649
+ element.width = $module.outerWidth();
650
+ element.height = $module.outerHeight();
651
+ // store
652
+ module.cache.element = element;
653
+ return element;
609
654
  },
610
655
  elementCalculations: function() {
611
656
  var
612
- screen = module.get.screenCalculations(),
613
- element = module.get.elementPosition()
657
+ screen = module.get.screenCalculations(),
658
+ element = module.get.elementPosition()
614
659
  ;
615
660
  // offset
616
661
  if(settings.includeMargin) {
617
- $.extend(module.cache.element, {
618
- top : element.offset.top - element.margin.top,
619
- bottom : element.offset.top + element.height + element.margin.bottom
620
- });
662
+ element.top = element.offset.top - element.margin.top;
663
+ element.bottom = element.offset.top + element.height + element.margin.bottom;
621
664
  }
622
665
  else {
623
- $.extend(module.cache.element, {
624
- top : element.offset.top,
625
- bottom : element.offset.top + element.height
626
- });
666
+ element.top = element.offset.top;
667
+ element.bottom = element.offset.top + element.height;
627
668
  }
669
+
628
670
  // visibility
629
- $.extend(module.cache.element, {
630
- topVisible : (screen.bottom >= element.top),
631
- topPassed : (screen.top >= element.top),
632
- bottomVisible : (screen.bottom >= element.bottom),
633
- bottomPassed : (screen.top >= element.bottom),
634
- pixelsPassed : 0,
635
- percentagePassed : 0
636
- });
671
+ element.topVisible = (screen.bottom >= element.top);
672
+ element.topPassed = (screen.top >= element.top);
673
+ element.bottomVisible = (screen.bottom >= element.bottom);
674
+ element.bottomPassed = (screen.top >= element.bottom);
675
+ element.pixelsPassed = 0;
676
+ element.percentagePassed = 0;
677
+
637
678
  // meta calculations
638
- $.extend(module.cache.element, {
639
- visible : (module.cache.element.topVisible || module.cache.element.bottomVisible),
640
- passing : (module.cache.element.topPassed && !module.cache.element.bottomPassed),
641
- hidden : (!module.cache.element.topVisible && !module.cache.element.bottomVisible)
642
- });
643
- if(module.cache.element.passing) {
644
- module.cache.element.pixelsPassed = (screen.top - element.top);
645
- module.cache.element.percentagePassed = (screen.top - element.top) / element.height;
646
- }
647
- module.verbose('Updated element calculations', module.cache.element);
679
+ element.visible = (element.topVisible || element.bottomVisible);
680
+ element.passing = (element.topPassed && !element.bottomPassed);
681
+ element.hidden = (!element.topVisible && !element.bottomVisible);
682
+
683
+ // passing calculations
684
+ if(element.passing) {
685
+ element.pixelsPassed = (screen.top - element.top);
686
+ element.percentagePassed = (screen.top - element.top) / element.height;
687
+ }
688
+ module.cache.element = element;
689
+ module.verbose('Updated element calculations', element);
690
+ return element;
648
691
  },
649
692
  screenCalculations: function() {
650
693
  var
@@ -918,6 +961,8 @@ $.fn.visibility.settings = {
918
961
  fixed: 'fixed'
919
962
  },
920
963
 
964
+ observeChanges : true,
965
+
921
966
  debug : false,
922
967
  verbose : false,
923
968
  performance : true,
@@ -927,6 +972,9 @@ $.fn.visibility.settings = {
927
972
 
928
973
  context : window,
929
974
 
975
+ // check position immediately on init
976
+ initialCheck : true,
977
+
930
978
  // visibility check delay in ms (defaults to animationFrame)
931
979
  throttle : false,
932
980
 
@@ -935,7 +983,7 @@ $.fn.visibility.settings = {
935
983
 
936
984
  // image only animation settings
937
985
  transition : false,
938
- duration : 500,
986
+ duration : 1000,
939
987
 
940
988
  // array of callbacks for percentage
941
989
  onPassed : {},
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Visit
1
+ /*!
2
+ * # Semantic UI - Visit
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -11,6 +11,8 @@
11
11
 
12
12
  ;(function ($, window, document, undefined) {
13
13
 
14
+ "use strict";
15
+
14
16
  $.visit = $.fn.visit = function(parameters) {
15
17
  var
16
18
  $allModules = $.isFunction(this)
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Site
1
+ /*!
2
+ * # Semantic UI - Site
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Accordion
1
+ /*!
2
+ * # Semantic UI - Accordion
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Checkbox
1
+ /*!
2
+ * # Semantic UI - Checkbox
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Dimmer
1
+ /*!
2
+ * # Semantic UI - Dimmer
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -11,6 +11,8 @@
11
11
 
12
12
  ;(function ( $, window, document, undefined ) {
13
13
 
14
+ "use strict";
15
+
14
16
  $.fn.dimmer = function(parameters) {
15
17
  var
16
18
  $allModules = $(this),
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Dropdown
1
+ /*!
2
+ * # Semantic UI - Dropdown
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Modal
1
+ /*!
2
+ * # Semantic UI - Modal
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Nag
1
+ /*!
2
+ * # Semantic UI - Nag
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Popup
1
+ /*!
2
+ * # Semantic UI - Popup
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Progress
1
+ /*!
2
+ * # Semantic UI - Progress
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Rating
1
+ /*!
2
+ * # Semantic UI - Rating
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Search
1
+ /*!
2
+ * # Semantic UI - Search
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -310,7 +310,7 @@ $.fn.search = function(parameters) {
310
310
  $.each(results, function(index, category) {
311
311
  if($.isArray(category.results)) {
312
312
  result = module.search.object(value, category.results)[0];
313
- if(result.length > 0) {
313
+ if(result && result.length > 0) {
314
314
  return true;
315
315
  }
316
316
  }
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Shape
1
+ /*!
2
+ * # Semantic UI - Shape
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *
@@ -1,9 +1,9 @@
1
- /*
2
- * # Semantic - Sidebar
1
+ /*!
2
+ * # Semantic UI - Sidebar
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
6
- * Copyright 2014 Contributor
6
+ * Copyright 2014 Contributors
7
7
  * Released under the MIT license
8
8
  * http://opensource.org/licenses/MIT
9
9
  *