vendor/assets/javascripts/metro-ui/input-control.js in metro-ui-rails-0.15.8.4 vs vendor/assets/javascripts/metro-ui/input-control.js in metro-ui-rails-0.15.8.11
- old
+ new
@@ -40,11 +40,11 @@
// clear text when clock on helper
$helper.on('click', function () {
input = $element.children('input');
input.attr('value', '');
input.focus();
- });
+ }).on('click', function(e){e.preventDefault(); return false;});
};
/**
* initialize password input element behavior
*/
@@ -65,17 +65,17 @@
// insert text element and hode password element when push helper
$helper.on('mousedown', function () {
password.hide();
text.insertAfter(password);
text.attr('value', password.attr('value'));
- });
+ }).on('click', function(e){e.preventDefault(); return false;});
// return password and remove text element
$helper.on('mouseup, mouseout', function () {
text.detach();
password.show();
password.focus();
- });
+ }).on('click', function(e){e.preventDefault(); return false;});
};
plugin.init();
};
\ No newline at end of file