From 43063c3242ccaf95e39fff240d501de38131f7c5 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Thu, 16 Apr 2015 23:38:16 -0400 Subject: Add number type support --- themes/okadmin/templates/partials/inputs.liquid | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'themes') diff --git a/themes/okadmin/templates/partials/inputs.liquid b/themes/okadmin/templates/partials/inputs.liquid index c9a4d92..4d31413 100644 --- a/themes/okadmin/templates/partials/inputs.liquid +++ b/themes/okadmin/templates/partials/inputs.liquid @@ -12,6 +12,10 @@ {% elsif type == 'text' %} + {% elsif type == 'number' %} + {% elsif type == 'enum' %} + {% endfor %} -- cgit v1.2.3-70-g09d2 From 8d79bf977208b643b54de7abf56666844b934ef0 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Tue, 21 Apr 2015 13:11:28 -0400 Subject: Woops. Revert 746ca86ca146 --- themes/okadmin/public/js/app.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'themes') diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js index 4a0f8e3..e981223 100644 --- a/themes/okadmin/public/js/app.js +++ b/themes/okadmin/public/js/app.js @@ -94,17 +94,6 @@ var OKAdmin = function(){ $id.val( slug ) } - // Strip newlines - // TODO This is a hack. Remove when server sanitizes - // input correctly - $(this).find('input, textarea').each(function(i, el) { - var $el = $(el); - var val = $el.val(); - if (val) { - $el.val(val.replace(/[\r\t\n]/g, '')); - } - }); - $(".image-element").each(function(index){ $(this).find("input,textarea").each(function(){ var field = $(this).attr("name").replace(/\[[0-9]*\]/, "[" + index + "]") -- cgit v1.2.3-70-g09d2