మీడియావికీ:Gadget-refToolbarBase.js: కూర్పుల మధ్య తేడాలు
Content deleted Content added
using '<sup>?</sup>' for tooltips instead of '*', so people won't think they are required fields |
$j is deprecated |
||
పంక్తి 35:
var field = fieldobj.field;
var ad = false;
if ($
im = $
im.attr('alt', mw.usability.getMsg('cite-insert-date')).attr('title', mw.usability.getMsg('cite-insert-date'));
var ad = $
ad.append(im);
ad.attr('id', 'cite-date-'+CiteTB.escStr(this.shortform)+'-'+field);
$
}
if (fieldobj.autofillid) {
var autotype = fieldobj.autofillid;
im = $
im.attr('alt', mw.usability.getMsg('cite-autofill-alt')).attr('title', mw.usability.getMsg('cite-autofill-alt'));
var ad = $
ad.append(im);
ad.attr('id', 'cite-auto-'+CiteTB.escStr(this.shortform)+'-'+field+'-'+autotype);
$
}
var display = mw.usability.getMsg('cite-'+field+'-label');
var tooltip = fieldobj.tooltip ? $
var input = '';
if (ad) {
input = $
} else {
input = $
}
input.attr('id', 'cite-'+CiteTB.escStr(this.shortform)+'-'+field);
పంక్తి 67:
input.addClass('cite-'+CiteTB.escStr(this.shortform)+'-'+fieldobj.autofillprop);
}
var label = $
label.attr('for', 'cite-'+CiteTB.escStr(this.shortform)+'-'+field).text(display);
if (tooltip) {
పంక్తి 76:
style += ' padding-left:1em;';
} else {
var tr = $
}
var td1 = $
td1.append(label);
tr.append(td1);
var td2 = $
td2.append(input);
if (ad) {
పంక్తి 97:
// gives a little bit of HTML so the open form can be identified
this.getInitial = function() {
var hidden = $
hidden.val(this.templatename);
return hidden;
పంక్తి 104:
// makes the form used in the dialog boxes
this.getForm = function() {
var main = $
var form1 = $
var i=0;
var trs = this.makeFormInner(this.basic);
పంక్తి 112:
}
var form2 = $
trs = this.makeFormInner(this.extra);
for (var i=0; i<trs.length; i++) {
పంక్తి 119:
main.append(form1).append(form2);
var form3 = $
var tr = $
var td1 = $
var label1 = $
label1.attr('for', "cite-"+CiteTB.escStr(this.shortform)+'-name').text(mw.usability.getMsg('cite-name-label'));
td1.append(label1);
var td2 = $
var input1 = $
input1.attr('id', 'cite-'+CiteTB.escStr(this.shortform)+'-name');
td2.append(input1);
var td3 = $
var label2 = $
label2.attr('for', 'cite-'+CiteTB.escStr(this.shortform)+'-group').text(mw.usability.getMsg('cite-group-label'));
td3.append(label2);
var td4 = $
var input2 = $
input2.attr('id', 'cite-'+CiteTB.escStr(this.shortform)+'-group');
td4.append(input2);
పంక్తి 140:
form3.append(tr);
main.append(form3);
var extras = $
extras.append('<input type="hidden" class="cite-form-status" value="closed" />');
var hidden = $
hidden.val(this.templatename);
extras.append(hidden);
var span1 = $
span1.text(mw.usability.getMsg('cite-raw-preview'));
extras.append(span1).append('<div class="cite-ref-preview" style="padding:0.5em; font-size:110%" />');
var span2 = $
span2.text(mw.usability.getMsg('cite-parsed-label'));
extras.append(span2).append('<div class="cite-preview-parsed" style="padding-bottom:0.5em; font-size:110%" />');
var link = $
link.text(mw.usability.getMsg('cite-form-parse'));
extras.append(link);
పంక్తి 207:
this.getRow = function() {
var row = $
var check = $
check.attr('value', this.obj.testname);
var label = $
label.attr('for', this.obj.testname);
row.append(check).append(' – ').append(label);
పంక్తి 216:
}
}
$
|