diff options
Diffstat (limited to 'mayor-orig/mayor-base/www/skin')
-rw-r--r-- | mayor-orig/mayor-base/www/skin/classic/base/javascript/base.jquery.min.js | 4 |
1 files changed, 4 insertions, 0 deletions
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'); } }); } |