• error in busybox js

    By Patrick Kwintensson 1 decade ago

    dojo.require('dijit.Dialog')
    var foo;//you have to declare this global
    function busyBoxON() {
       foo = new dijit.DialogUnderlay({dialogId:"waitScreen",'class': 'busyBox'});
       foo.show();
    }

    function busyBoxOFF(){
        foo.hide();//otherwise it goes wrong here...
    }