From 4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Mon, 2 Sep 2019 02:25:31 +0200 Subject: Rev: 4535 --- .../mayor-base/www/skin/classic/base/javascript/base.jquery.min.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mayor-orig/mayor-base/www/skin/classic') diff --git a/mayor-orig/mayor-base/www/skin/classic/base/javascript/base.jquery.min.js b/mayor-orig/mayor-base/www/skin/classic/base/javascript/base.jquery.min.js index 7241d8a8..92101d6c 100644 --- a/mayor-orig/mayor-base/www/skin/classic/base/javascript/base.jquery.min.js +++ b/mayor-orig/mayor-base/www/skin/classic/base/javascript/base.jquery.min.js @@ -501,9 +501,11 @@ mayorChange = function(event) { var ajaxRequestOK = (formElement.find('input.ajaxOption[value=onChangeRequestStop]').length == 0); // A class="DOA" - disable on ajax req - elemek letiltása formElement.find('.DOA').prop('disabled',true); + formElement.find('.ROA').prop('readonly',true); formElement.attr('action', uri); element.addClass('ajaxRequest'); + if (ajaxRequestOK) { ajaxRequest(formElement, { onSuccess: function(transport, status, xhr) { @@ -511,6 +513,7 @@ mayorChange = function(event) { element.removeClass('ajaxRequest'); element.removeClass('ajaxRequestError'); formElement.find('.DOA').prop('disabled',false).removeClass('ajaxRequest'); + formElement.find('.ROA').prop('readonly',false).removeClass('ajaxRequest'); // Egyedi kezelőfüggvény meghívása // pre-be pl.: $_JSON['onSuccess']['func'] = 'myTestFunc'; $_JSON['onSuccess']['param'] = array('txt' => 'Hahó'); // js-be pl.: myTestFunc = function(param) { console.log('myTestFunc: '+param.txt); } @@ -523,6 +526,7 @@ mayorChange = function(event) { element.removeClass('ajaxRequest'); element.removeClass('ajaxRequestDone'); formElement.find('.DOA').prop('disabled',false).removeClass('ajaxRequest'); + formElement.find('.ROA').prop('readonly',false).removeClass('ajaxRequest'); } }); } -- cgit v1.2.3