Display question SystemIDs at all times in the Admin > Questions area
Featured// Show question SystemIDs on the questions editor page
document.observe('dom:loaded', function() {
$$('.question').each(function(el){el.insert({'top' : ""+el.id.replace('question_','')+""});});
});
-
Hi Mark,
Try:
// Show question SystemIDs on the questions editor page
document.observe('dom:loaded', function() {
if(window.location.pathname == "/schemeserve/admin/questions/edit.aspx") {
$$('.question').each(function(el) {
el.insert({'top' : "<span style=\"border:1px dotted #FFE24F;margin-left:-10px;padding:5px;background-color:#FFFACD\">"+el.id.replace('question_','')+"</span>"});
});
}
}); -
This will work for normal questions, and post quote, including testing environments
Ok, this one will work for normal questions and post-quote ones :)// Show question SystemIDs on the questions editor pagedocument.observe('dom:loaded', function() {if(window.location.toString().toLowerCase().indexOf("/admin/questions/edit") > -1) {$$('.question').each(function(el) {el.insert({'top' : "<span style=\"border:1px dotted #FFE24F;margin-left:-10px;padding:5px;background-color:#FFFACD\">"+el.id.replace('question_','')+"</span>"});});}});
Please sign in to leave a comment.
Comments
5 comments