User:Ale jrb/Scripts/csdcheck.js: Difference between revisions

Content deleted Content added
Ale jrb (talk | contribs)
test
Ale jrb (talk | contribs)
m test
Line 19:
if (wgUserGroups[i] == 'sysop') iAmSysop = true;
}
if ((iAmSysop == false) || (wgNamespaceNumber == 10)) { return false; // do nothing!
} else {
// sysopall checkchecks OK :).
// launch controller.
this.control = new csdH_controller;
Line 32:
 
function csdH_controller() {
csdHController = this;
this.showcsdHWindow() = function() {
// grab position of button
var offset = document.getElementById('ca-decline').offsetLeft;
// build window to show user
var interface = new wa_window();
interface.win_left = offset;
interface.win_width = 150;
interface.win_height = 100;
}
this.attachLinks = function() {
alert('test');
this.csdHelperLink = new wa_element('li');
this.csdHelperLink.ele_obj.id = 'ca-decline';
this.csdHelperLink.ele_obj.innerHTML = '<a href="#" title="decline speedy">declinedec speedyspdy</a>';
//this.csdHelperLink.addWAEventaddScriptEvent('click', function() { selfControllercsdHController.showWAWindowshowcsdHWindow(); });
this.csdHelperLink.attach(document.getElementById('ca-move'), 'before');