https://bugzilla.wikimedia.org/show_bug.cgi?id=28044

           Summary: referring to global variables in messages
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: UploadWizard
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


For the tooltips in UploadWizard, in one case we now have a global variable
encoded in the message:

'mwe-upwiz-tooltip-title' => 'A short unique title for the file. You may use
plain language with spaces. Do not include the file extension. <a
target="_blank" onclick="\\$titleDialog.dialog(\'open\');return false;"
href="#">Learn more</a>.',

This is obviously nasty because
- global variable!
- it's in a message!

This sort of thing shouldn't be necessary -- it's happening for two reasons.

- as a way of hacking in a link with JS behaviour into a message -- this is
easy to do with the new .msg() feature, though

- tipsy.js relies only on info shoved into the "title" attr, which has to be a
string. If it retrieved info from .data() we wouldn't have that limitation.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to