מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף
הוספת אפשרות לכתיבת שדות ריקים לדף. |
יותר מדויק |
||
| שורה 36: | שורה 36: | ||
anyExtended = false, | anyExtended = false, | ||
localStorageKey = 'templateParamWizard', | localStorageKey = 'templateParamWizard', | ||
emptiesKey = ' | emptiesKey = 'writeEmpties'; | ||
function addParam(name) { | function addParam(name) { | ||
| שורה 484: | שורה 484: | ||
.append($('<input>', {type:'checkbox', id:'createEmpties'}) | .append($('<input>', {type:'checkbox', id:'createEmpties'}) | ||
.change(updateRawPreview) | .change(updateRawPreview) | ||
.prop('checked', localStorage.getItem(localStorageKey + '.' + emptiesKey) | .prop('checked', localStorage.getItem(localStorageKey + '.' + emptiesKey) == "true") | ||
) | |||
) | ) | ||
) | ) | ||