Widget:Sandbox: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
Line 408: Line 408:
}, {
}, {
ok : function (res) {
ok : function (res) {
                 if(event.data.questionListAll.length > 45){
                 if( res.Count > 45){
                         event.data.maxQ = 45;
                         event.data.maxQ = 45;
                 } else {
                 } else {
                         event.data.maxQ = event.data.questionListAll.length;
                         event.data.maxQ = res.Count;
                 }
                 }
var output = "<b>Choose the number of questions you would like to answer. The maximum number of questions you can select is <span id='countShow'>" + event.data.maxQ + "</span>.</b><br /><br /><br />Number of questions:<input type='text' id='numQues' /><br /><br /><div id='Go' class='noSelect WBRButton'>Click here to begin the exam</div>";
var output = "<b>Choose the number of questions you would like to answer. The maximum number of questions you can select is <span id='countShow'>" + event.data.maxQ + "</span>.</b><br /><br /><br />Number of questions:<input type='text' id='numQues' /><br /><br /><div id='Go' class='noSelect WBRButton'>Click here to begin the exam</div>";

Revision as of 15:25, 18 March 2014