מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף
ניטפוק |
די כבר! |
||
| שורה 203: | שורה 203: | ||
} | } | ||
function toggleDesc() {$(this).next('div').toggleClass('tpw_hidden');} | function toggleDesc() { | ||
var div = $(this).next('div'), state = div.hasClass('tpw_hidden'); | |||
$('.tpw_hiddenDiv').addClass('tpw_hidden'); // hide them all | |||
div.toggleClass('tpw_hidden', !state); | |||
} | |||
function createInputField(paramName) { | function createInputField(paramName) { | ||
| שורה 260: | שורה 264: | ||
.append( | .append( | ||
desc | desc | ||
? $('<div>', {'class': 'tpw_hidden'}) | ? $('<div>', {'class': 'tpw_hiddenDiv tpw_hidden'}) | ||
.css({position: 'absolute', zIndex: 2, top:20, backgroundColor: 'yellow'}) | .css({position: 'absolute', zIndex: 2, top:20, backgroundColor: 'yellow'}) | ||
.text(desc) | .text(desc) | ||