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 | |
parent | a4f28686f7de4a0ca86c2215d28bddb9a378335a (diff) | |
download | mayor-4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1.tar.gz mayor-4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1.zip |
Rev: 4535rev4535
Diffstat (limited to 'mayor-orig/mayor-base')
-rw-r--r-- | mayor-orig/mayor-base/log/mayor-base.rev | 2 | ||||
-rw-r--r-- | mayor-orig/mayor-base/www/include/base/mysql.php | 2 | ||||
-rw-r--r-- | mayor-orig/mayor-base/www/skin/classic/base/javascript/base.jquery.min.js | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/mayor-orig/mayor-base/log/mayor-base.rev b/mayor-orig/mayor-base/log/mayor-base.rev index 322150f6..75c5751d 100644 --- a/mayor-orig/mayor-base/log/mayor-base.rev +++ b/mayor-orig/mayor-base/log/mayor-base.rev @@ -1 +1 @@ -4526 +4535 diff --git a/mayor-orig/mayor-base/www/include/base/mysql.php b/mayor-orig/mayor-base/www/include/base/mysql.php index b2e22f82..4bc49d16 100644 --- a/mayor-orig/mayor-base/www/include/base/mysql.php +++ b/mayor-orig/mayor-base/www/include/base/mysql.php @@ -104,7 +104,7 @@ $_SESSION['alert'][] = "message:sql_warning:db_connect/${SET['fv']}:modul $modul has empty database config value"; } } else { - if (__DEBUG || (defined('__DETAILED') && __DETAILED)) $_SESSION['alert'][] = "message:sql_connect_failure:db_connect/${SET['fv']}:modul - $modul, priv - $priv, username - $username, db - $db"; + if (__DEBUG || (defined('__DETAILED') && __DETAILED)) $_SESSION['alert'][] = "message:sql_connect_failure:db_connect/${SET['fv']}:host - $host, modul - $modul, priv - $priv, username - $username, db - $db"; else $_SESSION['alert'][] = "message:sql_connect_failure:db_connect/${SET['fv']}:$modul modul"; } return $lr; 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'); } }); } |