semantic-ui-sass 0.0.3 → 0.8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -1
- data/.rspec +1 -0
- data/CHANGELOG.md +8 -0
- data/README.md +26 -1
- data/app/assets/javascripts/semantic-ui/accordion.js +15 -17
- data/app/assets/javascripts/semantic-ui/behavior/api.js +18 -22
- data/app/assets/javascripts/semantic-ui/behavior/form.js +18 -24
- data/app/assets/javascripts/semantic-ui/behavior/state.js +8 -8
- data/app/assets/javascripts/semantic-ui/chatroom.js +18 -14
- data/app/assets/javascripts/semantic-ui/checkbox.js +26 -24
- data/app/assets/javascripts/semantic-ui/dimmer.js +74 -47
- data/app/assets/javascripts/semantic-ui/dropdown.js +226 -153
- data/app/assets/javascripts/semantic-ui/modal.js +73 -46
- data/app/assets/javascripts/semantic-ui/nag.js +13 -16
- data/app/assets/javascripts/semantic-ui/popup.js +352 -263
- data/app/assets/javascripts/semantic-ui/rating.js +29 -26
- data/app/assets/javascripts/semantic-ui/search.js +18 -24
- data/app/assets/javascripts/semantic-ui/shape.js +182 -173
- data/app/assets/javascripts/semantic-ui/sidebar.js +66 -43
- data/app/assets/javascripts/semantic-ui/tab.js +49 -31
- data/app/assets/javascripts/semantic-ui/transition.js +24 -24
- data/app/assets/javascripts/semantic-ui/video.js +26 -24
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +85 -37
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +6 -7
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +76 -23
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +415 -241
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +26 -24
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +8 -13
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +87 -5
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +7 -9
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -2
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +17 -21
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +4 -27
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +44 -30
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +68 -9
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +26 -26
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_reveal.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +81 -7
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +129 -28
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +12 -10
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +0 -10
- data/app/assets/stylesheets/semantic-ui/views/_list.scss +6 -6
- data/app/helpers/semantic_flash_helper.rb +22 -0
- data/app/helpers/semantic_icon_helper.rb +5 -0
- data/lib/semantic/ui/sass/version.rb +2 -2
- data/semantic-ui-sass.gemspec +3 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/semantic_flash_helper_spec.rb +33 -0
- data/spec/helpers/semantic_icon_helper_spec.rb +20 -0
- data/spec/spec_helper.rb +8 -0
- metadata +132 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aaa18514d7dfd8b47981f7dc513c51de8f217a5
|
4
|
+
data.tar.gz: 1eb0e6cebb4515613a1456eb839ee2731f71f3c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16e1a276717a612d1dd8b63ed53a20a114264840df6b02baf326066dbe90c88afe63070ace88b1ac1640cbbcebf0fe328e428f03d22ad05a0d6d195e0dafbd2c
|
7
|
+
data.tar.gz: 741ee974ce0f8643f4035653a656e8f4e81a32ffe6269e6eacb4fd423064174f0671f76db7130c8ccddb683ced753b732777f9fdc4f13345d97e81e1e7599f97
|
data/.gitignore
CHANGED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
## Installation and Usage
|
6
6
|
|
7
7
|
```ruby
|
8
|
-
gem 'semantic-ui-sass', '~> 0.0.
|
8
|
+
gem 'semantic-ui-sass', '~> 0.8.0.0'
|
9
9
|
```
|
10
10
|
or
|
11
11
|
|
@@ -81,6 +81,31 @@ require 'semantic-ui-sass'
|
|
81
81
|
compass install semantic-ui
|
82
82
|
```
|
83
83
|
|
84
|
+
# Rails Helpers
|
85
|
+
|
86
|
+
## Flash helper
|
87
|
+
|
88
|
+
Add flash helper `<%= semantic_flash %>` to your layout
|
89
|
+
|
90
|
+
## Icon helper
|
91
|
+
|
92
|
+
```ruby
|
93
|
+
semantic_icon('add')
|
94
|
+
# => <i class="add icon"></i>
|
95
|
+
semantic_icon(:add)
|
96
|
+
# => <i class="add icon"></i>
|
97
|
+
semantic_icon('add sign')
|
98
|
+
# => <i class="add sign icon"></i>
|
99
|
+
semantic_icon('add', 'sign')
|
100
|
+
# => <i class="add sign icon"></i>
|
101
|
+
semantic_icon(:add, :sign)
|
102
|
+
# => <i class="add sign icon"></i>
|
103
|
+
```
|
104
|
+
|
105
|
+
## TODO
|
106
|
+
|
107
|
+
* Add global variables
|
108
|
+
* Add rails helpers like `render_flash`?
|
84
109
|
|
85
110
|
## Contributing
|
86
111
|
|
@@ -21,14 +21,14 @@ $.fn.accordion = function(parameters) {
|
|
21
21
|
query = arguments[0],
|
22
22
|
methodInvoked = (typeof query == 'string'),
|
23
23
|
queryArguments = [].slice.call(arguments, 1),
|
24
|
-
|
24
|
+
returnedValue
|
25
25
|
;
|
26
26
|
$allModules
|
27
27
|
.each(function() {
|
28
28
|
var
|
29
29
|
settings = ( $.isPlainObject(parameters) )
|
30
30
|
? $.extend(true, {}, $.fn.accordion.settings, parameters)
|
31
|
-
: $.fn.accordion.settings,
|
31
|
+
: $.extend({}, $.fn.accordion.settings),
|
32
32
|
|
33
33
|
className = settings.className,
|
34
34
|
namespace = settings.namespace,
|
@@ -60,6 +60,7 @@ $.fn.accordion = function(parameters) {
|
|
60
60
|
},
|
61
61
|
|
62
62
|
instantiate: function() {
|
63
|
+
instance = module;
|
63
64
|
$module
|
64
65
|
.data(moduleNamespace, module)
|
65
66
|
;
|
@@ -201,14 +202,11 @@ $.fn.accordion = function(parameters) {
|
|
201
202
|
},
|
202
203
|
|
203
204
|
setting: function(name, value) {
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
else {
|
210
|
-
settings[name] = value;
|
211
|
-
}
|
205
|
+
if( $.isPlainObject(name) ) {
|
206
|
+
$.extend(true, settings, name);
|
207
|
+
}
|
208
|
+
else if(value !== undefined) {
|
209
|
+
settings[name] = value;
|
212
210
|
}
|
213
211
|
else {
|
214
212
|
return settings[name];
|
@@ -347,14 +345,14 @@ $.fn.accordion = function(parameters) {
|
|
347
345
|
else if(found !== undefined) {
|
348
346
|
response = found;
|
349
347
|
}
|
350
|
-
if($.isArray(
|
351
|
-
|
348
|
+
if($.isArray(returnedValue)) {
|
349
|
+
returnedValue.push(response);
|
352
350
|
}
|
353
|
-
else if(
|
354
|
-
|
351
|
+
else if(returnedValue !== undefined) {
|
352
|
+
returnedValue = [returnedValue, response];
|
355
353
|
}
|
356
354
|
else if(response !== undefined) {
|
357
|
-
|
355
|
+
returnedValue = response;
|
358
356
|
}
|
359
357
|
return found;
|
360
358
|
}
|
@@ -373,8 +371,8 @@ $.fn.accordion = function(parameters) {
|
|
373
371
|
}
|
374
372
|
})
|
375
373
|
;
|
376
|
-
return (
|
377
|
-
?
|
374
|
+
return (returnedValue !== undefined)
|
375
|
+
? returnedValue
|
378
376
|
: this
|
379
377
|
;
|
380
378
|
};
|
@@ -47,7 +47,7 @@
|
|
47
47
|
queryArguments = [].slice.call(arguments, 1),
|
48
48
|
|
49
49
|
module,
|
50
|
-
|
50
|
+
returnedValue
|
51
51
|
;
|
52
52
|
|
53
53
|
module = {
|
@@ -350,26 +350,22 @@
|
|
350
350
|
},
|
351
351
|
|
352
352
|
setting: function(name, value) {
|
353
|
-
if(
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
settings[name] = value;
|
359
|
-
}
|
353
|
+
if( $.isPlainObject(name) ) {
|
354
|
+
$.extend(true, settings, name);
|
355
|
+
}
|
356
|
+
else if(value !== undefined) {
|
357
|
+
settings[name] = value;
|
360
358
|
}
|
361
359
|
else {
|
362
360
|
return settings[name];
|
363
361
|
}
|
364
362
|
},
|
365
363
|
internal: function(name, value) {
|
366
|
-
if(
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
module[name] = value;
|
372
|
-
}
|
364
|
+
if( $.isPlainObject(name) ) {
|
365
|
+
$.extend(true, module, name);
|
366
|
+
}
|
367
|
+
else if(value !== undefined) {
|
368
|
+
module[name] = value;
|
373
369
|
}
|
374
370
|
else {
|
375
371
|
return module[name];
|
@@ -494,14 +490,14 @@
|
|
494
490
|
else if(found !== undefined) {
|
495
491
|
response = found;
|
496
492
|
}
|
497
|
-
if($.isArray(
|
498
|
-
|
493
|
+
if($.isArray(returnedValue)) {
|
494
|
+
returnedValue.push(response);
|
499
495
|
}
|
500
|
-
else if(
|
501
|
-
|
496
|
+
else if(returnedValue !== undefined) {
|
497
|
+
returnedValue = [returnedValue, response];
|
502
498
|
}
|
503
499
|
else if(response !== undefined) {
|
504
|
-
|
500
|
+
returnedValue = response;
|
505
501
|
}
|
506
502
|
return found;
|
507
503
|
}
|
@@ -520,8 +516,8 @@
|
|
520
516
|
module.initialize();
|
521
517
|
}
|
522
518
|
|
523
|
-
return (
|
524
|
-
?
|
519
|
+
return (returnedValue !== undefined)
|
520
|
+
? returnedValue
|
525
521
|
: this
|
526
522
|
;
|
527
523
|
};
|
@@ -35,7 +35,7 @@ $.fn.form = function(fields, parameters) {
|
|
35
35
|
query = arguments[0],
|
36
36
|
methodInvoked = (typeof query == 'string'),
|
37
37
|
queryArguments = [].slice.call(arguments, 1),
|
38
|
-
|
38
|
+
returnedValue
|
39
39
|
;
|
40
40
|
$allModules
|
41
41
|
.each(function() {
|
@@ -383,28 +383,22 @@ $.fn.form = function(fields, parameters) {
|
|
383
383
|
},
|
384
384
|
|
385
385
|
setting: function(name, value) {
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
else {
|
392
|
-
settings[name] = value;
|
393
|
-
}
|
386
|
+
if( $.isPlainObject(name) ) {
|
387
|
+
$.extend(true, settings, name);
|
388
|
+
}
|
389
|
+
else if(value !== undefined) {
|
390
|
+
settings[name] = value;
|
394
391
|
}
|
395
392
|
else {
|
396
393
|
return settings[name];
|
397
394
|
}
|
398
395
|
},
|
399
396
|
internal: function(name, value) {
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
else {
|
406
|
-
module[name] = value;
|
407
|
-
}
|
397
|
+
if( $.isPlainObject(name) ) {
|
398
|
+
$.extend(true, module, name);
|
399
|
+
}
|
400
|
+
else if(value !== undefined) {
|
401
|
+
module[name] = value;
|
408
402
|
}
|
409
403
|
else {
|
410
404
|
return module[name];
|
@@ -532,14 +526,14 @@ $.fn.form = function(fields, parameters) {
|
|
532
526
|
else if(found !== undefined) {
|
533
527
|
response = found;
|
534
528
|
}
|
535
|
-
if($.isArray(
|
536
|
-
|
529
|
+
if($.isArray(returnedValue)) {
|
530
|
+
returnedValue.push(response);
|
537
531
|
}
|
538
|
-
else if(
|
539
|
-
|
532
|
+
else if(returnedValue !== undefined) {
|
533
|
+
returnedValue = [returnedValue, response];
|
540
534
|
}
|
541
535
|
else if(response !== undefined) {
|
542
|
-
|
536
|
+
returnedValue = response;
|
543
537
|
}
|
544
538
|
return found;
|
545
539
|
}
|
@@ -560,8 +554,8 @@ $.fn.form = function(fields, parameters) {
|
|
560
554
|
})
|
561
555
|
;
|
562
556
|
|
563
|
-
return (
|
564
|
-
?
|
557
|
+
return (returnedValue !== undefined)
|
558
|
+
? returnedValue
|
565
559
|
: this
|
566
560
|
;
|
567
561
|
};
|
@@ -37,7 +37,7 @@ $.fn.state = function(parameters) {
|
|
37
37
|
moduleNamespace = namespace + '-module',
|
38
38
|
|
39
39
|
|
40
|
-
|
40
|
+
returnedValue
|
41
41
|
;
|
42
42
|
$allModules
|
43
43
|
.each(function() {
|
@@ -582,14 +582,14 @@ $.fn.state = function(parameters) {
|
|
582
582
|
else if(found !== undefined) {
|
583
583
|
response = found;
|
584
584
|
}
|
585
|
-
if($.isArray(
|
586
|
-
|
585
|
+
if($.isArray(returnedValue)) {
|
586
|
+
returnedValue.push(response);
|
587
587
|
}
|
588
|
-
else if(
|
589
|
-
|
588
|
+
else if(returnedValue !== undefined) {
|
589
|
+
returnedValue = [returnedValue, response];
|
590
590
|
}
|
591
591
|
else if(response !== undefined) {
|
592
|
-
|
592
|
+
returnedValue = response;
|
593
593
|
}
|
594
594
|
return found;
|
595
595
|
}
|
@@ -610,8 +610,8 @@ $.fn.state = function(parameters) {
|
|
610
610
|
})
|
611
611
|
;
|
612
612
|
|
613
|
-
return (
|
614
|
-
?
|
613
|
+
return (returnedValue !== undefined)
|
614
|
+
? returnedValue
|
615
615
|
: this
|
616
616
|
;
|
617
617
|
};
|
@@ -13,8 +13,16 @@
|
|
13
13
|
|
14
14
|
$.fn.chatroom = function(parameters) {
|
15
15
|
var
|
16
|
-
|
17
|
-
|
16
|
+
$allModules = $(this),
|
17
|
+
moduleSelector = $allModules.selector || '',
|
18
|
+
|
19
|
+
time = new Date().getTime(),
|
20
|
+
performance = [],
|
21
|
+
|
22
|
+
query = arguments[0],
|
23
|
+
methodInvoked = (typeof query == 'string'),
|
24
|
+
queryArguments = [].slice.call(arguments, 1),
|
25
|
+
returnedValue
|
18
26
|
;
|
19
27
|
$(this)
|
20
28
|
.each(function() {
|
@@ -42,6 +50,7 @@ $.fn.chatroom = function(parameters) {
|
|
42
50
|
$messageButton = $module.find(selector.messageButton),
|
43
51
|
|
44
52
|
instance = $module.data('module'),
|
53
|
+
element = this,
|
45
54
|
|
46
55
|
html = '',
|
47
56
|
users = {},
|
@@ -435,8 +444,6 @@ $.fn.chatroom = function(parameters) {
|
|
435
444
|
|
436
445
|
},
|
437
446
|
|
438
|
-
|
439
|
-
|
440
447
|
setting: function(name, value) {
|
441
448
|
if(value !== undefined) {
|
442
449
|
if( $.isPlainObject(name) ) {
|
@@ -451,13 +458,11 @@ $.fn.chatroom = function(parameters) {
|
|
451
458
|
}
|
452
459
|
},
|
453
460
|
internal: function(name, value) {
|
454
|
-
if(
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
module[name] = value;
|
460
|
-
}
|
461
|
+
if( $.isPlainObject(name) ) {
|
462
|
+
$.extend(true, module, name);
|
463
|
+
}
|
464
|
+
else if(value !== undefined) {
|
465
|
+
module[name] = value;
|
461
466
|
}
|
462
467
|
else {
|
463
468
|
return module[name];
|
@@ -525,7 +530,6 @@ $.fn.chatroom = function(parameters) {
|
|
525
530
|
if(moduleSelector) {
|
526
531
|
title += ' \'' + moduleSelector + '\'';
|
527
532
|
}
|
528
|
-
title += ' ' + '(' + $allDropdowns.size() + ')';
|
529
533
|
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
|
530
534
|
console.groupCollapsed(title);
|
531
535
|
if(console.table) {
|
@@ -585,8 +589,8 @@ $.fn.chatroom = function(parameters) {
|
|
585
589
|
})
|
586
590
|
;
|
587
591
|
|
588
|
-
return (
|
589
|
-
?
|
592
|
+
return (returnedValue)
|
593
|
+
? returnedValue
|
590
594
|
: this
|
591
595
|
;
|
592
596
|
};
|
@@ -22,7 +22,7 @@ $.fn.checkbox = function(parameters) {
|
|
22
22
|
query = arguments[0],
|
23
23
|
methodInvoked = (typeof query == 'string'),
|
24
24
|
queryArguments = [].slice.call(arguments, 1),
|
25
|
-
|
25
|
+
returnedValue
|
26
26
|
;
|
27
27
|
|
28
28
|
$allModules
|
@@ -90,6 +90,12 @@ $.fn.checkbox = function(parameters) {
|
|
90
90
|
is: {
|
91
91
|
radio: function() {
|
92
92
|
return $module.hasClass(className.radio);
|
93
|
+
},
|
94
|
+
enabled: function() {
|
95
|
+
return $input.prop('checked') !== undefined && $input.prop('checked');
|
96
|
+
},
|
97
|
+
disabled: function() {
|
98
|
+
return !module.is.enabled();
|
93
99
|
}
|
94
100
|
},
|
95
101
|
|
@@ -122,34 +128,30 @@ $.fn.checkbox = function(parameters) {
|
|
122
128
|
|
123
129
|
toggle: function(event) {
|
124
130
|
module.verbose('Determining new checkbox state');
|
125
|
-
if(
|
131
|
+
if( module.is.disabled() ) {
|
126
132
|
module.enable();
|
127
133
|
}
|
128
|
-
else if( module.can.disable() ) {
|
134
|
+
else if( module.is.enabled() && module.can.disable() ) {
|
129
135
|
module.disable();
|
130
136
|
}
|
131
137
|
},
|
132
138
|
setting: function(name, value) {
|
133
|
-
if(
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
settings[name] = value;
|
139
|
-
}
|
139
|
+
if( $.isPlainObject(name) ) {
|
140
|
+
$.extend(true, settings, name);
|
141
|
+
}
|
142
|
+
else if(value !== undefined) {
|
143
|
+
settings[name] = value;
|
140
144
|
}
|
141
145
|
else {
|
142
146
|
return settings[name];
|
143
147
|
}
|
144
148
|
},
|
145
149
|
internal: function(name, value) {
|
146
|
-
if(
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
module[name] = value;
|
152
|
-
}
|
150
|
+
if( $.isPlainObject(name) ) {
|
151
|
+
$.extend(true, module, name);
|
152
|
+
}
|
153
|
+
else if(value !== undefined) {
|
154
|
+
module[name] = value;
|
153
155
|
}
|
154
156
|
else {
|
155
157
|
return module[name];
|
@@ -274,14 +276,14 @@ $.fn.checkbox = function(parameters) {
|
|
274
276
|
else if(found !== undefined) {
|
275
277
|
response = found;
|
276
278
|
}
|
277
|
-
if($.isArray(
|
278
|
-
|
279
|
+
if($.isArray(returnedValue)) {
|
280
|
+
returnedValue.push(response);
|
279
281
|
}
|
280
|
-
else if(
|
281
|
-
|
282
|
+
else if(returnedValue !== undefined) {
|
283
|
+
returnedValue = [returnedValue, response];
|
282
284
|
}
|
283
285
|
else if(response !== undefined) {
|
284
|
-
|
286
|
+
returnedValue = response;
|
285
287
|
}
|
286
288
|
return found;
|
287
289
|
}
|
@@ -302,8 +304,8 @@ $.fn.checkbox = function(parameters) {
|
|
302
304
|
})
|
303
305
|
;
|
304
306
|
|
305
|
-
return (
|
306
|
-
?
|
307
|
+
return (returnedValue !== undefined)
|
308
|
+
? returnedValue
|
307
309
|
: this
|
308
310
|
;
|
309
311
|
};
|