remove old readme
[atutor.git] / docs / mods / _standard / tests / lib / take_test.js
1 function iframeSetHeight(id, height) {
2         document.getElementById("qframe" + id).style.height = (height + 20) + "px";
3 }
4
5 /**
6  * jQuery - Mimic confirm alert box
7  * @param       DOM input element       The input submit button.
8  * @param       String                          The message that confirms submission
9  */
10 function confirmSubmit(input, confirmMsg){
11         input_button = jQuery(input);
12         submit_row = input_button.parent();
13         //jquery submit button alternation
14         input_button.attr('id', 'submit_test');
15         input_button.removeAttr('onclick');
16
17         //label for the modified submit button
18         input_label = jQuery('<label>').attr('for', 'submit_test');
19         input_label.text(confirmMsg);
20
21         submit_row.prepend(jQuery('<br>'));
22         submit_row.prepend(input_label);
23 }