Nicer js check
This commit is contained in:
@@ -41,7 +41,7 @@ function task_open(task_id) {
|
|||||||
|
|
||||||
var project_url = ProjectUtils.projectUrl();
|
var project_url = ProjectUtils.projectUrl();
|
||||||
if (typeof project_url === 'undefined') {
|
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');
|
$('#col_right .col_header span.header_text').text('Task details');
|
||||||
@@ -72,7 +72,7 @@ function shot_open(shot_id) {
|
|||||||
|
|
||||||
var project_url = ProjectUtils.projectUrl();
|
var project_url = ProjectUtils.projectUrl();
|
||||||
if (typeof project_url === 'undefined') {
|
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');
|
$('#col_right .col_header span.header_text').text('Shot details');
|
||||||
|
Reference in New Issue
Block a user