انتقل إلى المحتوى

نقاش ميدياويكي:Archived-gadgets/Gadget-CiteTooltip.js

محتويات الصفحة غير مدعومة بلغات أخرى.
أضف موضوعًا
من ويكيبيديا، الموسوعة الحرة
أحدث تعليق: قبل 3 سنوات من Omar2040 في الموضوع Summary

Summary[عدل]

Hello Jon (WMF), Thank you for the maintenance, for last edit what about the arabic words on summary ? do you know what mean ? thank you --Omar2040 (نقاش) 18:46، 30 أكتوبر 2020 (ت ع م)ردّ

When creating a selector for jQuery dynamically it's always best practice to use a selector in the form
$('[id="{id}"]');
. What was happening here is that IDs containing quotes

Consider the previous code:

var x = '#cite_note\-%D8%A7%D9%84%D8%A3%D9%87%D9%84%D9%8A_9_%D8%A3%D8%B7%D9%84%D8%B9_%D8%A8%D8%B1%D8%A9_0\-245'
$(mw.RegExp.escape(x.replace(/.*#/, '#')))

and compare with the new code

var x = '#cite_note\-%D8%A7%D9%84%D8%A3%D9%87%D9%84%D9%8A_9_%D8%A3%D8%B7%D9%84%D8%B9_%D8%A8%D8%B1%D8%A9_0\-245'
$('[id="' + mw.util.escapeRegExp(x.replace(/.*#/, '')) + '"]')

I forget what page I saw this occurring on but I hope that's enough to explain? Jon (WMF) (نقاش) 21:46، 30 أكتوبر 2020 (ت ع م)ردّ

Yes I understand, Exactly Jon (WMF),I just asked how the appearance of those words in summary related to page editing. you saw the page here, Thank you for the clarification --Omar2040 (نقاش) 23:06، 30 أكتوبر 2020 (ت ع م)ردّ