Updated JS to use latest JSON def.
This commit is contained in:
committed by
Alexander Kryklia
parent
b1a73a5293
commit
f0850f4c4b
@@ -36,8 +36,8 @@ define(['logme'], function (logme) {
|
||||
returnStatus = false;
|
||||
}
|
||||
|
||||
if (typeof config.target === 'string') {
|
||||
state.config.target = config.target;
|
||||
if (typeof config.target_container === 'string') {
|
||||
state.config.target_container = config.target_container;
|
||||
} else {
|
||||
logme('ERROR: Property config.target is not of type "string".');
|
||||
returnStatus = false;
|
||||
@@ -54,8 +54,8 @@ define(['logme'], function (logme) {
|
||||
logme('ERROR: Attribute "obj.label" is not a string.');
|
||||
|
||||
return false;
|
||||
} else if (typeof obj.name !== 'string') {
|
||||
logme('ERROR: Attribute "obj.name" is not a string.');
|
||||
} else if (typeof obj.id !== 'string') {
|
||||
logme('ERROR: Attribute "obj.id" is not a string.');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ define(['logme'], function (logme) {
|
||||
function Target(state) {
|
||||
var targetImgSrc, targetElContainer, mouseMoveDiv;
|
||||
|
||||
targetImgSrc = state.config.imageDir + '/' + state.config.target;
|
||||
targetImgSrc = state.config.imageDir + '/' + state.config.target_container;
|
||||
|
||||
targetElContainer = $(
|
||||
'<div ' +
|
||||
|
||||
Reference in New Issue
Block a user