From 7aa203150fc1a2ec79c681c13f0d486d531746eb Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sun, 12 Mar 2023 23:57:48 +0200 Subject: error pages; js system to support back/front-end --- html/content/js/Forms/serialize.js | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 html/content/js/Forms/serialize.js (limited to 'html/content/js/Forms/serialize.js') diff --git a/html/content/js/Forms/serialize.js b/html/content/js/Forms/serialize.js deleted file mode 100644 index 0bdd44c..0000000 --- a/html/content/js/Forms/serialize.js +++ /dev/null @@ -1,30 +0,0 @@ -define(function () { - return function ($elements) { - var values = {}; - $elements.each(function () { - var $input = $(this); - var value = $input.val(); - if (!value) { - return; - } - if ($input.is(':checkbox, :radio') && !$input.is(':checked')) { - return; - } - var name = $(this).attr('name'); - var v = values[name] || []; - values[name] = v; - v.push(value); - }); - var s = ''; - for (var k in values) { - for (var i = 0; i < values[k].length; i++) { - s += '&' + k + '=' + encodeURIComponent(values[k][i]); - } - } - if (s) { - s = s.substr(1); - } - return s; - }; - -}); \ No newline at end of file -- cgit v1.2.3