מדיה ויקי:Gadget-TemplatesExternalLinks.js: הבדלים בין גרסאות בדף

יותר מדויק
התאמה לגרסה חדשה של jquery
שורה 214: שורה 214:
}
}
code += "}}";
code += "}}";
if ($('#ltw2_ref').attr('checked'))
if ($('#ltw2_ref').prop('checked'))
return "{{הערה|" + code + "}}";
return "{{הערה|" + code + "}}";
if ($('#ltw2_list').attr('checked'))
if ($('#ltw2_list').prop('checked'))
return "\n* " + code + "\n";
return "\n* " + code + "\n";
return code;
return code;
שורה 231: שורה 231:
canOK = 'disable';
canOK = 'disable';
$(".ui-dialog-buttonpane button:contains('אישור')").button(canOK);
$(".ui-dialog-buttonpane button:contains('אישור')").button(canOK);
$('#ltw2_list').attr('disabled', $('#ltw2_ref').attr('checked'));//disable list if ref
$('#ltw2_list').attr('disabled', $('#ltw2_ref').prop('checked'));//disable list if ref
$('#ltw2_ref').attr('disabled', $('#ltw2_list').attr('checked'));//disable ref if list
$('#ltw2_ref').attr('disabled', $('#ltw2_list').prop('checked'));//disable ref if list
if (brainDamage) { //IOW: internet explorer.
if (brainDamage) { //IOW: internet explorer.
var width = $('#ltw_dialog').width() - 12;
var width = $('#ltw_dialog').width() - 12;