Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtul Pratap Singh <atulpratapsingh05@gmail.com>2014-10-01 08:30:54 +0400
committerAtul Pratap Singh <atulpratapsingh05@gmail.com>2014-10-01 08:30:54 +0400
commita020eac11a26977295cf2439ddd2e5b4af2c88fe (patch)
treea25ad8d5dbfdc66f96321930dab50de9fe242e3b /js/tbl_structure.js
parentdbdd90511bcb24fefcf2b88f12bd342d4abef9b2 (diff)
Add js checks in multiple files if data is undefined
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
Diffstat (limited to 'js/tbl_structure.js')
-rw-r--r--js/tbl_structure.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tbl_structure.js b/js/tbl_structure.js
index 3436c66a63..ad8275f9ae 100644
--- a/js/tbl_structure.js
+++ b/js/tbl_structure.js
@@ -210,7 +210,7 @@ AJAX.registerOnload('tbl_structure.js', function () {
$(this).PMA_confirm(question, $(this).attr('href'), function (url) {
var $msg = PMA_ajaxShowMessage(PMA_messages.strDroppingColumn, false);
$.get(url, {'is_js_confirmed' : 1, 'ajax_request' : true, 'ajax_page_request' : true}, function (data) {
- if (data.success === true) {
+ if (typeof data !== 'undefined' && data.success === true) {
PMA_ajaxRemoveMessage($msg);
if ($('#result_query').length) {
$('#result_query').remove();
@@ -265,7 +265,7 @@ AJAX.registerOnload('tbl_structure.js', function () {
$.get(url
, {'is_js_confirmed' : 1, 'ajax_request' : true, 'index_change' : true}
, function (data) {
- if (data.success === true) {
+ if (typeof data !== 'undefined' && data.success === true) {
PMA_ajaxRemoveMessage($msg);
$(this).remove();
if (typeof data.reload != 'undefined') {
@@ -314,7 +314,7 @@ AJAX.registerOnload('tbl_structure.js', function () {
$.get(url
, {'is_js_confirmed' : 1, 'ajax_request' : true, 'index_change' : true}
, function (data) {
- if (data.success === true) {
+ if (typeof data !== 'undefined' && data.success === true) {
PMA_ajaxRemoveMessage($msg);
if ($('#result_query').length) {
$('#result_query').remove();
@@ -358,7 +358,7 @@ AJAX.registerOnload('tbl_structure.js', function () {
$.get(url
, {'is_js_confirmed' : 1, 'ajax_request' : true, 'index_change' : true}
, function (data) {
- if (data.success === true) {
+ if (typeof data !== 'undefined' && data.success === true) {
PMA_ajaxRemoveMessage($msg);
if ($('#result_query').length) {
$('#result_query').remove();