Commit f36ae6cd authored by Szabolcs Gyurko's avatar Szabolcs Gyurko
Browse files

Used single quotes in JS file not to trigger crazy intellij warnings.

parent b492c648
......@@ -64,33 +64,33 @@ function QueueFunctions() {
this.getImageForState = function(data) {
if (data.state == 'STARTED') {
return "@routes.Assets.at("images/state-running.png")";
return '@routes.Assets.at("images/state-running.png")';
} else if (data.state == 'FAILED') {
return "@routes.Assets.at("images/state-failed.png")";
return '@routes.Assets.at("images/state-failed.png")';
} else if (data.state == 'WAITING') {
return "@routes.Assets.at("images/state-paused.png")";
return '@routes.Assets.at("images/state-paused.png")';
} else if (data.state == 'PAUSED') {
return "@routes.Assets.at("images/state-paused.png")";
return '@routes.Assets.at("images/state-paused.png")';
} else if (data.state == 'FINISHED') {
return "@routes.Assets.at("images/state-finished.png")";
return '@routes.Assets.at("images/state-finished.png")';
} else {
return "@routes.Assets.at("images/state-unknown.png")";
return '@routes.Assets.at("images/state-unknown.png")';
}
};
this.getOperationImageForState = function(data) {
if (data.state == 'STARTED') {
return "@routes.Assets.at("images/state-paused.png")";
return '@routes.Assets.at("images/state-paused.png")';
} else if (data.state == 'FAILED') {
return "@routes.Assets.at("images/state-running.png")";
return '@routes.Assets.at("images/state-running.png")';
} else if (data.state == 'WAITING') {
return "@routes.Assets.at("images/state-running.png")";
return '@routes.Assets.at("images/state-running.png")';
} else if (data.state == 'PAUSED') {
return "@routes.Assets.at("images/state-running.png")";
return '@routes.Assets.at("images/state-running.png")';
} else if (data.state == 'FINISHED') {
return null;
} else {
return "@routes.Assets.at("images/state-running.png")";
return '@routes.Assets.at("images/state-running.png")';
}
};
......
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