Last modified: 2014-11-03 06:31:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74891, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72891 - Edit on double click: Try to target background (not inputs, etc)
Edit on double click: Try to target background (not inputs, etc)
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.25-git
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-02 23:22 UTC by Subfader
Modified: 2014-11-03 06:31 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Subfader 2014-11-02 23:22:11 UTC
I made dblClickEdit a bit safer for myself because I happen to false double click on inputs, audios and images

I use

		    if(event.target.nodeName != "A"
		    		&& event.target.nodeName != "FORM"
		    		&& event.target.nodeName != "INPUT"
		    		&& event.target.nodeName != "IMG"
		    		&& event.target.nodeName != "AUDIO"
		    		) {
		       //document.location = wgServer+'/w/'+pn+'?action=edit';
		       $( '#ca-edit a' ).get( 0 ).click();
		    }


Maybe consider adding these as not every wiki is WIkipedia so conetent pages can happen to have inputs...

Tags: editondblclick dblclick dblClickEdit
Comment 1 This, that and the other (TTO) 2014-11-03 03:51:49 UTC
Probably get rid of FORM and put some other form field elements, such as BUTTON, TEXTAREA, SELECT....

If you wish to contribute a patch, it should go into Gerrit. See https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker or https://www.mediawiki.org/wiki/Gerrit_patch_uploader (latter tool seems not to be functioning at the moment).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links