Skip to content

Commit 1dcc678

Browse files
Updated distribution to version 2.0.5
1 parent d7a7aa4 commit 1dcc678

136 files changed

Lines changed: 427 additions & 280 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 2.0.4 - Accordion
2+
* # Semantic UI 2.0.5 - 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 2.0.4 - Accordion
2+
* # Semantic UI 2.0.5 - 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: 2 additions & 2 deletions
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 2.0.4 - Ad
2+
* # Semantic UI 2.0.5 - 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: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 2.0.4 - API
2+
* # Semantic UI 2.0.5 - API
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*
@@ -352,7 +352,7 @@ $.api = $.fn.api = function(parameters) {
352352
}
353353
else {
354354
module.verbose('Found required variable', variable, value);
355-
url = url.replace(templatedString, value);
355+
url = url.replace(templatedString, module.get.urlEncodedValue(value));
356356
}
357357
});
358358
}
@@ -686,6 +686,19 @@ $.api = $.fn.api = function(parameters) {
686686
: settings
687687
;
688688
},
689+
urlEncodedValue: function(value) {
690+
var
691+
decodedValue = window.decodeURIComponent(value),
692+
encodedValue = window.encodeURIComponent(value),
693+
alreadyEncoded = (decodedValue !== value)
694+
;
695+
if(alreadyEncoded) {
696+
module.debug('URL value is already encoded, avoiding double encoding', value);
697+
return value;
698+
}
699+
module.verbose('Encoding value for url', value, encodedValue);
700+
return encodedValue;
701+
},
689702
defaultData: function() {
690703
var
691704
data = {}

0 commit comments

Comments
 (0)