From 8a7f6806bfe11a1f6b64982decb5cba58ec97356 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Wed, 11 Jan 2012 16:19:42 +0000 Subject: [PATCH] // Add js type check --- js/admin-products.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/admin-products.js b/js/admin-products.js index 4e7bdb0e6..6e5f9b247 100644 --- a/js/admin-products.js +++ b/js/admin-products.js @@ -260,7 +260,8 @@ function displayTabProductById(id, selected, index, stack) beforeSend : function(data) { // don't display the loading notification bar - clearTimeout(ajax_running_timeout); + if (typeof(ajax_running_timeout) !== 'undefined') + clearTimeout(ajax_running_timeout); } }); }