diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-21 13:11:28 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-21 13:11:28 -0400 |
| commit | 8d79bf977208b643b54de7abf56666844b934ef0 (patch) | |
| tree | 09d9d3b7eb4db8c06c92cca38edafba087288668 /themes/okadmin | |
| parent | 746ca86ca146dbc815959c90c6f60df05e6354a9 (diff) | |
Woops. Revert 746ca86ca146v0.1.3
Diffstat (limited to 'themes/okadmin')
| -rw-r--r-- | themes/okadmin/public/js/app.js | 11 |
1 files changed, 0 insertions, 11 deletions
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 + "]") |
