From abfb34dc7ef73d585e3476a041e822a2e4a10d7b Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Tue, 4 Aug 2020 11:48:25 +0200 Subject: [PATCH] Fixes #2609 - Zammad shows Customers in Owner-Selection on IE (root cause: App.ControllerForm returns no params on IE 11). --- app/assets/javascripts/application.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 7b907799e..4e4974fce 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -230,8 +230,9 @@ jQuery.fn.extend( { var rcheckableType = ( /^(?:checkbox|radio)$/i ); return this.map( function() { - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); + // We dont use jQuery.prop( this, "elements" ); here anymore + // because it did not work out for IE 11 + var elements = $(this).find('*').filter(':input'); return elements ? jQuery.makeArray( elements ) : this; } ) .filter( function() {