treconomics_project/static/javascripts/show_task.js
/*
A little JavaScript file to make the show task popup disappear when the user ends the current task.
Avoids that little bit of confusion - gets rid of the popup automatically when it's no longer needed!

Author: David
*/
A little JavaScript file to make the show task popup disappear when the user ends the current task.
Avoids that little bit of confusion - gets rid of the popup automatically when it's no longer needed!

David
A little JavaScript file to make the show task popup disappear when the user ends the current task . Avoids that little bit of confusion - gets rid of the popup automatically when it ' s no longer needed! David
function checkPopupStatus() {
    var parentPath = window.opener.location.pathname;
    if (parentPath.indexOf('postpracticetask') != -1 ||
        parentPath.indexOf('posttaskquestions') != -1 ||
        parentPath.indexOf('snippetposttask') != -1 ||
        parentPath.indexOf('systemsnippetposttask') != -1 ||
        parentPath.indexOf('diversityposttask') != -1 ||
		parentPath.indexOf('diversityperformancepractice') != -1 ||
        parentPath.indexOf('timeout') != -1) {
        self.close();
    }
}
function checkPopupStatus ( ) { var parentPath = window . opener . location . pathname ; if ( parentPath . indexOf ( 'postpracticetask' ) != - 1 || parentPath . indexOf ( 'posttaskquestions' ) != - 1 || parentPath . indexOf ( 'snippetposttask' ) != - 1 || parentPath . indexOf ( 'systemsnippetposttask' ) != - 1 || parentPath . indexOf ( 'diversityposttask' ) != - 1 || parentPath . indexOf ( 'diversityperformancepractice' ) != - 1 || parentPath . indexOf ( 'timeout' ) != - 1 ) { self . close ( ) ; } }
A little JavaScript file to make the show task popup disappear when the user ends the current task.
A little JavaScript file to make the show task popup disappear when the user ends the current task .