From 2b63282658ce4091d56761177c747c4a8365d23d Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Fri, 26 Sep 2014 19:54:30 +1000 Subject: [PATCH] We have a form object already, use that instead --- modules/system/assets/js/framework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/assets/js/framework.js b/modules/system/assets/js/framework.js index a94746d51..0e655a601 100644 --- a/modules/system/assets/js/framework.js +++ b/modules/system/assets/js/framework.js @@ -55,7 +55,7 @@ if (window.jQuery === undefined) data.push($.param(paramToObj('data-request-data', $(this).data('request-data')))) }) - if ($el.is(':input') && !$el.parents('form').length) { + if ($el.is(':input') && !form.length) { var inputName = $el.attr('name') if (options.data[inputName] === undefined) options.data[inputName] = $el.val()