MediaWiki:DRN-wizard.js: Difference between revisions
Content deleted Content added
Update per edit request on talk page |
Arcticocean (talk | contribs) by edit request on Gchat of User:Steven Zhang |
||
Line 288:
function showStep2( errorMsg ) {
gDRW.wizard_step = 2;
$("#drwProgressBar").html( gDRW.getProgressBar() );
var intro = '';
$("#drwContent1").html('<p>Here, briefly describe the current situation - where the dispute is happening, what is the dispute and what are you hoping to get out of dispute resolution. (Basically, how can we help resolve the issue?)<br><br>Take note of the character limits as they are there to help focus the discussion.</p>');▼
if ( typeof errorMsg !== 'undefined' ) {
intro = '<p class="warning">' + errorMsg + '</p>';
▲ }
▲
$("#drwContent1").html( intro );
gDRW.drawTitleInput();
Line 314 ⟶ 322:
function showStep3() {
var inputErrors = [];
//Check that vars were filled
if (gDRW.article_title == '') {
inputErrors.push("Location of dispute");
▲ }
if (gDRW.dispute_description == '') {
inputErrors.push("Dispute overview");
}
if (gDRW.previous_forums == '') {
inputErrors.push("Previous steps");
}
if (gDRW.desired_outcome == '') {
inputErrors.push("Desired outcome");
}
if ( inputErrors.length > 0 ) {
return showStep2( 'All fields are required. Missing values for: '+inputErrors.join(', ') );
}
gDRW.wizard_step = 3;
$("#drwProgressBar").html( gDRW.getProgressBar() );
|