aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www
diff options
context:
space:
mode:
authorM.Gergo2019-09-02 02:25:31 +0200
committerM.Gergo2019-09-02 02:25:31 +0200
commit4b6b59c8a750fe6408d5d0cbc0e584a737dd12c1 (patch)
tree80cfa850023ac36406512e530ed582201537e518 /mayor-orig/mayor-base/www
parenta4f28686f7de4a0ca86c2215d28bddb9a378335a (diff)
downloadmayor-rev4535.tar.gz
mayor-rev4535.zip
Rev: 4535rev4535
Diffstat (limited to 'mayor-orig/mayor-base/www')
-rw-r--r--mayor-orig/mayor-base/www/include/base/mysql.php2
-rw-r--r--mayor-orig/mayor-base/www/skin/classic/base/javascript/base.jquery.min.js4
2 files changed, 5 insertions, 1 deletions
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');
}
});
}