diff options
author | M.Gergo | 2019-09-02 02:25:31 +0200 |
---|---|---|
committer | M.Gergo | 2019-09-02 02:25:31 +0200 |
commit | 4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1 (patch) | |
tree | 80cfa850023ac36406512e530ed582201537e518 /mayor-orig/mayor-base/www/skin | |
parent | a4f28686f7de4a0ca86c2215d28bddb9a378335a (diff) | |
download | mayor-4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1.tar.gz mayor-4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1.zip |
Rev: 4535rev4535
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'); } }); } |