v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Emi/review.js"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
   function rater_addLink() {
 
   function rater_addLink() {
 
     addPortletLink("p-cactions", "javascript:rater_init()", "Rate", "ca-rater", "Rate");
 
     addPortletLink("p-cactions", "javascript:rater_init()", "Rate", "ca-rater", "Rate");
 +
 +
    jsMsg('testttttttttttttttttttttttttttttttttttttttttt');
 
   }
 
   }
 
);
 
);
Line 10: Line 12:
 
     return;
 
     return;
 
   }
 
   }
 
+
 
  form = '<div id="rater_initialform">'+
+
form = '<div id="rater_initialform">'+
  '<h3>Reviewing '+afcHelper_PageName+'</h3>'+
+
'<h3>Reviewing '+afcHelper_PageName+'</h3>'+
'<input type="button" id="afcHelper_accept_button" name="afcHelper_accept_button" value="Accept" onclick="afcHelper_prompt(\'accept\')" />'+
+
'<input type="button" id="afcHelper_accept_button" name="afcHelper_accept_button" value="Accept" onclick="afcHelper_prompt(\'accept\')" />'+
'<input type="button" id="afcHelper_decline_button" name="afcHelper_decline_button" value="Decline" onclick="afcHelper_prompt(\'decline\')" />'+
+
'<input type="button" id="afcHelper_decline_button" name="afcHelper_decline_button" value="Decline" onclick="afcHelper_prompt(\'decline\')" />'+
'<input type="button" id="afcHelper_hold_button" name="afcHelper_hold_button" value="Hold" onclick="afcHelper_prompt(\'hold\')" />'+
+
'<input type="button" id="afcHelper_hold_button" name="afcHelper_hold_button" value="Hold" onclick="afcHelper_prompt(\'hold\')" />'+
'<input type="button" id="afcHelper_comment_button" name="afcHelper_comment_button" value="Comment" onclick="afcHelper_prompt(\'comment\')" />'+
+
'<input type="button" id="afcHelper_comment_button" name="afcHelper_comment_button" value="Comment" onclick="afcHelper_prompt(\'comment\')" />'+
'<input type="button" id="afcHelper_mark_button" name="afcHelper_mark_button" value="Mark as reviewing" onclick="afcHelper_act(\'mark\')" />'+
+
'<input type="button" id="afcHelper_mark_button" name="afcHelper_mark_button" value="Mark as reviewing" onclick="afcHelper_act(\'mark\')" />'+
'<div id="afcHelper_extra"></div>';
+
'<div id="afcHelper_extra"></div>';
jsMsg(form);
+
jsMsg(form);
}
+
}

Revision as of 23:54, 21 May 2010

addOnloadHook(
  function rater_addLink() {
    addPortletLink("p-cactions", "javascript:rater_init()", "Rate", "ca-rater", "Rate");

    jsMsg('testttttttttttttttttttttttttttttttttttttttttt');
  }
);

function rater_init() {
  if (!wfSupportsAjax()) {
    jsMsg('<span style="color:red; font-size:120%">Your browser does not seem to support AJAX, which is required for the rating script.</span>');
    return;
  }

form = '<div id="rater_initialform">'+
'<h3>Reviewing '+afcHelper_PageName+'</h3>'+
'<input type="button" id="afcHelper_accept_button" name="afcHelper_accept_button" value="Accept" onclick="afcHelper_prompt(\'accept\')" />'+
'<input type="button" id="afcHelper_decline_button" name="afcHelper_decline_button" value="Decline" onclick="afcHelper_prompt(\'decline\')" />'+
'<input type="button" id="afcHelper_hold_button" name="afcHelper_hold_button" value="Hold" onclick="afcHelper_prompt(\'hold\')" />'+
'<input type="button" id="afcHelper_comment_button" name="afcHelper_comment_button" value="Comment" onclick="afcHelper_prompt(\'comment\')" />'+
'<input type="button" id="afcHelper_mark_button" name="afcHelper_mark_button" value="Mark as reviewing" onclick="afcHelper_act(\'mark\')" />'+
'<div id="afcHelper_extra"></div>';
jsMsg(form);
}