Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as JavaScript by silvere ( 17 years ago )
# I put this function in application.js and I check temp[0] and temp[1] with firebug, their are correct
function expand_question(question_id)
  {
    attr = document.getElementById("question_" + question_id + "_answered_at").getAttribute("class");
    var temp = new Array();
    temp = attr.split(' ');
    ddaccordion.expandone('expandable', temp[0]);
    ddaccordion.expandone('subexpandable', temp[1]);
    var currentHref = window.location.href;
    window.location.href = currentHref.substr(0, currentHref.lastIndexOf("#")) + "#" + question_id;
}

 

Revise this Paste

Your Name: Code Language: