Revert "make touch device events work on buttons (closes foodcoop-rostock/foodsoft#34, closes foodcoops/foodsoft#104)"

This reverts commit add4afd172.

Conflicts:
	app/assets/javascripts/application.js
This commit is contained in:
wvengen 2014-01-25 15:15:42 +01:00
parent c5cc714f9b
commit 23ee2ef0fb

View file

@ -20,19 +20,6 @@
//= require ordering //= require ordering
//= require stupidtable //= require stupidtable
// allow touch devices to work on click events
// http://stackoverflow.com/a/16221066
$.fn.extend({ _on: (function(){ return $.fn.on; })() });
$.fn.extend({
on: (function(){
var isTouchSupported = 'ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch;
return function( types, selector, data, fn, one ) {
if (typeof types == 'string' && isTouchSupported && !(types.match(/touch/gi))) types = types.replace(/click/gi, 'touchstart');
return this._on( types, selector, data, fn, one );
};
}()),
});
// Load following statements, when DOM is ready // Load following statements, when DOM is ready
$(function() { $(function() {