Skip to content

Commit feb7cdf

Browse files
committed
Applied ballot popup patch from olau@iola.dk.
- Legacy-Id: 4631
1 parent 7d6262e commit feb7cdf

1 file changed

Lines changed: 1 addition & 46 deletions

File tree

static/js/base.js

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function showBallot(draftName, editPositionUrl) {
6565
el = document.getElementById("ballot_dialog_body");
6666
el.innerHTML = "Loading...";
6767
YAHOO.util.Connect.asyncRequest('GET',
68-
"/doc/"+draftName+"/_ballot.data",
68+
"/doc/"+draftName+"/ballotpopup/",
6969
{ success: function(o) { el.innerHTML = (o.responseText !== undefined) ? o.responseText : "?"; },
7070
failure: function(o) { el.innerHTML = "Error: "+o.status+" "+o.statusText; },
7171
argument: null
@@ -75,51 +75,6 @@ function editBallot(editPositionUrl) {
7575
window.open(editPositionUrl);
7676
}
7777

78-
function showWGBallot(acronym, editPositionUrl) {
79-
var handleEditPosition = function() {
80-
IETF.ballotDialog.hide();
81-
window.location = IETF.editPositionUrl;
82-
};
83-
var handleClose = function() {
84-
IETF.ballotDialog.hide();
85-
};
86-
var el;
87-
88-
if (!IETF.ballotDialog) {
89-
el = document.createElement("div");
90-
el.innerHTML = '<div id="ballot_dialog" style="visibility:hidden;"><div class="hd">Positions for <span id="ballot_dialog_name">wgacronym</span></span></div><div class="bd"> <div id="ballot_dialog_body" style="overflow-y:scroll; height:400px;"></div> </div></div>';
91-
document.getElementById("ietf-extras").appendChild(el);
92-
93-
var buttons = [{text:"Close", handler:handleClose, isDefault:true}];
94-
if (("Area_Director" in IETF.user_groups) ||
95-
("Secretariat" in IETF.user_groups)) {
96-
buttons.unshift({text:"Edit Position", handler:handleEditPosition});
97-
}
98-
var kl = [new YAHOO.util.KeyListener(document, {keys:27}, handleClose)]
99-
IETF.ballotDialog = new YAHOO.widget.Dialog("ballot_dialog", {
100-
visible:false, draggable:false, close:true, modal:true,
101-
width:"860px", fixedcenter:true, constraintoviewport:true,
102-
buttons: buttons, keylisteners:kl});
103-
IETF.ballotDialog.render();
104-
}
105-
document.getElementById("ballot_dialog_name").innerHTML = acronym;
106-
IETF.editPositionUrl = editPositionUrl;
107-
108-
IETF.ballotDialog.show();
109-
110-
el = document.getElementById("ballot_dialog_body");
111-
el.innerHTML = "Loading...";
112-
YAHOO.util.Connect.asyncRequest('GET',
113-
"/wgcharter/"+acronym+"/_ballot.data",
114-
{ success: function(o) { el.innerHTML = (o.responseText !== undefined) ? o.responseText : "?"; },
115-
failure: function(o) { el.innerHTML = "Error: "+o.status+" "+o.statusText; },
116-
argument: null
117-
}, null);
118-
}
119-
function editWGBallot(editPositionUrl) {
120-
window.open(editPositionUrl);
121-
}
122-
12378
function showStream(dialogTitle, infoStreamUrl) {
12479
var handleClose = function() {
12580
IETF.streamDialog.hide();

0 commit comments

Comments
 (0)