Commit f0850f4c by Valera Rozuvan Committed by Alexander Kryklia

Updated JS to use latest JSON def.

parent b1a73a52
......@@ -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 ' +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment