From c356904027e2cd9c84b1345b0dfcd04a1fad120c Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 20 May 2013 12:06:30 -0400 Subject: [PATCH] css styles for firefox input number fields --- cms/static/js/base.js | 4 ++-- cms/static/sass/views/_unit.scss | 2 +- .../static/js/vendor/html5-input-polyfills/number-polyfill.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 48e7a2d172..b5bbd8e99a 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -898,8 +898,8 @@ function saveSetSectionScheduleDate(e) { } function checkNumberValidity(e) { - e.preventDefault; - $(e).val($(e).val().match(/\d*\.?\d+/)); + //e.preventDefault; + //$(e).val($(e).val().match(/\d*\.?\d+/)); } diff --git a/cms/static/sass/views/_unit.scss b/cms/static/sass/views/_unit.scss index 1e2feef03d..b97fde4f7b 100644 --- a/cms/static/sass/views/_unit.scss +++ b/cms/static/sass/views/_unit.scss @@ -671,7 +671,7 @@ body.course.unit { } input[type="number"] { - width: 36%; + width: 32%; @include box-shadow(0 1px 2px $shadow-l1 inset); &:active { diff --git a/common/static/js/vendor/html5-input-polyfills/number-polyfill.js b/common/static/js/vendor/html5-input-polyfills/number-polyfill.js index 80491a85a5..d2d871cbb2 100644 --- a/common/static/js/vendor/html5-input-polyfills/number-polyfill.js +++ b/common/static/js/vendor/html5-input-polyfills/number-polyfill.js @@ -228,7 +228,7 @@ HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-poly $elem.data("timeoutID", window.setTimeout(timeoutFunc, 700, elem, decrement)); return null; }); - $elem.css("textAlign", 'right'); + $elem.css("textAlign", 'left'); if ($elem.css("opacity") !== "1") { $(btnContainer).css("opacity", $elem.css("opacity")); }