From 0a605ead507e55edef5328b87e34c67a04188415 Mon Sep 17 00:00:00 2001 From: franzz Date: Mon, 20 Apr 2015 21:38:07 +0200 Subject: [PATCH] fix undefined variable addButton --- jquery/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery/common.js b/jquery/common.js index 0090d31..c891c0c 100644 --- a/jquery/common.js +++ b/jquery/common.js @@ -38,7 +38,8 @@ $.fn.setCursorPosition = function(pos) $.prototype.addButton = function(sType, sTitle, oClickLink, sId, sButtonClass, sTmpVar) { $This = $(this); - var asAttributes = {id:(sId || ''), 'class':'button round'+(typeof sButtonClass != 'undefined'?' '+sButtonClass:'')}; + sButtonClass = sButtonClass || ''; + var asAttributes = {id:(sId || ''), 'class':'button round'+sButtonClass}; //Link var bLink = (typeof oClickLink == 'string');