|
|
@@ -9,16 +9,6 @@
|
|
|
|
|
|
LUNGO.Fallback = (function(lng, undefined) {
|
|
|
|
|
|
- var CLASS = lng.Constants.CLASS;
|
|
|
-
|
|
|
- var androidButtons = function() {
|
|
|
- environment = lng.Core.environment();
|
|
|
- if (environment.isMobile && environment.os.name === 'android') {
|
|
|
- lng.dom(document.body).on('touchstart', '.button', _addClassActiveToButton);
|
|
|
- lng.dom(document.body).on('touchend', '.button', _removeClassActiveToButton);
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
var androidInputs = function(article_id, active) {
|
|
|
environment = lng.Core.environment();
|
|
|
if (environment.isMobile && environment.os.name === 'android' && environment.os.version < '4') {
|
|
|
@@ -31,7 +21,7 @@ LUNGO.Fallback = (function(lng, undefined) {
|
|
|
};
|
|
|
|
|
|
var positionFixed = function(sections) {
|
|
|
- environment = lng.Core.environment();
|
|
|
+ environment = lng.Core.environment();
|
|
|
if (environment.isMobile && environment.os.name === 'ios' && environment.os.version >= '4.2') {
|
|
|
sections.style('position', 'fixed');
|
|
|
}
|
|
|
@@ -45,18 +35,9 @@ LUNGO.Fallback = (function(lng, undefined) {
|
|
|
input.setAttribute('disabled', 'disabled');
|
|
|
};
|
|
|
|
|
|
- var _addClassActiveToButton = function(element) {
|
|
|
- lng.dom(this).addClass(CLASS.ACTIVE);
|
|
|
- };
|
|
|
-
|
|
|
- var _removeClassActiveToButton = function(element) {
|
|
|
- lng.dom(this).removeClass(CLASS.ACTIVE);
|
|
|
- };
|
|
|
-
|
|
|
return {
|
|
|
- androidButtons: androidButtons,
|
|
|
androidInputs: androidInputs,
|
|
|
- positionFixed: positionFixed
|
|
|
+ positionFixed: positionFixed
|
|
|
}
|
|
|
|
|
|
})(LUNGO);
|