semantic-ui-less
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -355,3 +355,3 @@ /*! | ||
module.verbose('Found required variable', variable, value); | ||
url = url.replace(templatedString, value); | ||
url = url.replace(templatedString, module.get.urlEncodedValue(value)); | ||
} | ||
@@ -690,2 +690,15 @@ }); | ||
}, | ||
urlEncodedValue: function(value) { | ||
var | ||
decodedValue = window.decodeURIComponent(value), | ||
encodedValue = window.encodeURIComponent(value), | ||
alreadyEncoded = (decodedValue !== value) | ||
; | ||
if(alreadyEncoded) { | ||
module.debug('URL value is already encoded, avoiding double encoding', value); | ||
return value; | ||
} | ||
module.verbose('Encoding value for url', value, encodedValue); | ||
return encodedValue; | ||
}, | ||
defaultData: function() { | ||
@@ -692,0 +705,0 @@ var |
@@ -47,2 +47,4 @@ /*! | ||
shortcutPressed = false, | ||
instance = $module.data(moduleNamespace), | ||
@@ -196,7 +198,15 @@ | ||
$input.blur(); | ||
event.preventDefault(); | ||
shortcutPressed = true; | ||
} | ||
if(!event.ctrlKey && (key == keyCode.enter)) { | ||
module.verbose('Enter key pressed, toggling checkbox'); | ||
else if(!event.ctrlKey && ( key == keyCode.space || key == keyCode.enter) ) { | ||
module.verbose('Enter/space key pressed, toggling checkbox'); | ||
module.toggle(); | ||
shortcutPressed = true; | ||
} | ||
else { | ||
shortcutPressed = false; | ||
} | ||
}, | ||
keyup: function(event) { | ||
if(shortcutPressed) { | ||
event.preventDefault(); | ||
@@ -460,2 +470,3 @@ } | ||
.on('keydown' + eventNamespace, selector.input, module.event.keydown) | ||
.on('keyup' + eventNamespace, selector.input, module.event.keyup) | ||
; | ||
@@ -462,0 +473,0 @@ } |
@@ -8,3 +8,3 @@ var | ||
summary : 'Semantic UI - LESS Release of Semantic UI', | ||
version : '2.0.4', | ||
version : '2.0.5', | ||
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git', | ||
@@ -11,0 +11,0 @@ }); |
{ | ||
"name": "semantic-ui-less", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"title": "Semantic UI", | ||
@@ -5,0 +5,0 @@ "description": "LESS Only distribution of Semantic UI", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2551175
20897