Skip to content

Commit 884adf4

Browse files
Updated distribution to version 1.10.4
1 parent 63b5cda commit 884adf4

133 files changed

Lines changed: 229 additions & 218 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

components/accordion.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 1.10.3 - Accordion
2+
* # Semantic UI 1.10.4 - Accordion
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*

components/accordion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 1.10.3 - Accordion
2+
* # Semantic UI 1.10.4 - Accordion
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*

components/accordion.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/accordion.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ad.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 1.10.3 - Ad
2+
* # Semantic UI 1.10.4 - Ad
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*

components/ad.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/api.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 1.10.3 - API
2+
* # Semantic UI 1.10.4 - API
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*
@@ -162,9 +162,9 @@ $.api = $.fn.api = function(parameters) {
162162

163163
// exit conditions reached, missing url parameters
164164
if( !url ) {
165-
if($module.is('form')) {
166-
module.debug('No url or action specified, defaulting to form action');
167-
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);
168168
}
169169
else {
170170
module.error(error.missingURL, settings.action);
@@ -212,6 +212,12 @@ $.api = $.fn.api = function(parameters) {
212212
disabled: function() {
213213
return ($module.filter(settings.filter).length > 0);
214214
},
215+
form: function() {
216+
return $module.is('form');
217+
},
218+
input: function() {
219+
return $module.is('input');
220+
},
215221
loading: function() {
216222
return (module.request && module.request.state() == 'pending');
217223
}
@@ -508,10 +514,10 @@ $.api = $.fn.api = function(parameters) {
508514
data = {}
509515
;
510516
if( !$.isWindow(element) ) {
511-
if( $module.is('input') ) {
517+
if( module.is.input() ) {
512518
data.value = $module.val();
513519
}
514-
else if( $module.is('form') ) {
520+
else if( !module.is.form() ) {
515521

516522
}
517523
else {
@@ -549,7 +555,7 @@ $.api = $.fn.api = function(parameters) {
549555
var
550556
formData
551557
;
552-
if($(this).serializeObject() !== undefined) {
558+
if($module.serializeObject !== undefined) {
553559
formData = $form.serializeObject();
554560
}
555561
else {
@@ -570,7 +576,7 @@ $.api = $.fn.api = function(parameters) {
570576
url = settings.api[action];
571577
module.debug('Found template url', url);
572578
}
573-
else {
579+
else if( !module.is.form() ) {
574580
module.error(error.missingAction, settings.action, settings.api);
575581
}
576582
}

components/api.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/breadcrumb.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 1.10.3 - Breadcrumb
2+
* # Semantic UI 1.10.4 - Breadcrumb
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*

components/breadcrumb.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)