Nicer js check

This commit is contained in:
2016-09-23 10:38:38 +02:00
parent e6e03125f7
commit b3f4e8f7eb

View File

@@ -41,7 +41,7 @@ function task_open(task_id) {
var project_url = ProjectUtils.projectUrl();
if (typeof project_url === 'undefined') {
throw "ProjectUtils.projectUrl() undefined";
throw new ReferenceError("ProjectUtils.projectUrl() undefined");
}
$('#col_right .col_header span.header_text').text('Task details');
@@ -72,7 +72,7 @@ function shot_open(shot_id) {
var project_url = ProjectUtils.projectUrl();
if (typeof project_url === 'undefined') {
throw "ProjectUtils.projectUrl() undefined";
throw new ReferenceError("ProjectUtils.projectUrl() undefined");
}
$('#col_right .col_header span.header_text').text('Shot details');