fix undefined variable addButton

This commit is contained in:
2015-04-20 21:38:07 +02:00
parent 111676108d
commit 0a605ead50

3
jquery/common.js vendored
View File

@@ -38,7 +38,8 @@ $.fn.setCursorPosition = function(pos)
$.prototype.addButton = function(sType, sTitle, oClickLink, sId, sButtonClass, sTmpVar) $.prototype.addButton = function(sType, sTitle, oClickLink, sId, sButtonClass, sTmpVar)
{ {
$This = $(this); $This = $(this);
var asAttributes = {id:(sId || ''), 'class':'button round'+(typeof sButtonClass != 'undefined'?' '+sButtonClass:'')}; sButtonClass = sButtonClass || '';
var asAttributes = {id:(sId || ''), 'class':'button round'+sButtonClass};
//Link //Link
var bLink = (typeof oClickLink == 'string'); var bLink = (typeof oClickLink == 'string');