From f7f0aa24d8a80184bc3695234e9f57a08d73684c Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 16 Dec 2013 13:17:45 -0500 Subject: render & save gif --- js/util.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/util.js') diff --git a/js/util.js b/js/util.js index ac0f517..b738d1e 100644 --- a/js/util.js +++ b/js/util.js @@ -1,6 +1,8 @@ if (window.$) { $.fn.int = function(){ return parseInt($(this).val(),10) } $.fn.float = function(){ return parseFloat($(this).val()) } + $.fn.enable = function() { return $(this).attr("disabled",null) } + $.fn.disable = function() { return $(this).attr("disabled","disabled") } } var E = Math.E -- cgit v1.2.3-70-g09d2