Subversion Repositories cheapmusic

Rev

Rev 73 | Rev 81 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73 Rev 77
Line 131... Line 131...
131
function refreshProgress() {
131
function refreshProgress() {
132
    $.ajax({
132
    $.ajax({
133
        url: "pbChecker.php?file=" + document.getElementById("sessionId").value + "_" + document.getElementById("sessionTab").value,
133
        url: "pbChecker.php?file=" + document.getElementById("sessionId").value + "_" + document.getElementById("sessionTab").value,
134
        success: function(data) {
134
        success: function(data) {
135
            updateProgressBar(data.percent, data.message);
135
            updateProgressBar(data.percent, data.message);
136
            if (data.percent == 100) {
136
            if (data.percent >= 100) {
137
                window.clearInterval(timer);
137
                window.clearInterval(timer);
138
                timer = window.setInterval(completeProgress, 1000);
138
                timer = window.setInterval(completeProgress, 1000);
139
            }
139
            }
140
        }
140
        }
141
    });
141
    });