Last modified: 2010-08-09 11:21:32 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 T26723, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24723 - Drag-and-drop doesn't work for the new search bar
Drag-and-drop doesn't work for the new search bar
Status: RESOLVED DUPLICATE of bug 24498
Product: MediaWiki extensions
Classification: Unclassified
UsabilityInitiative (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-08 14:09 UTC by lampak
Modified: 2010-08-09 11:21 UTC (History)
4 users (show)

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


Attachments

Description lampak 2010-08-08 14:09:06 UTC
With the old search bar it was possible to drag and drop any word from an article on wiki to the search bar. Quite useful. 

With the new search bar it's impossible. The word will be dragged to that gray label and disappear when it's clicked.
Comment 1 Nux 2010-08-08 23:42:28 UTC
Hm... Seems to be a problem with Firefox (AFAIK text drag and copy works in FF only anyway). The problem is that Firefox doesn't seem to fire any change/paste and such events after copying the text (including DOMAttrModified) which seems like a bug, but then again it does fire drag and drop events.

The text in the search input is changed between dragleave and drop events and so this seems to work fine for FF:
// run onload/ready
var $input = $j('#searchInput');
$input.bind('dragleave', function()
{
	var $input = $j(this);
	//$input.trigger('focus');
	if ( $input.hasClass( 'placeholder' ) ) {
		$input.val( '' ).removeClass( 'placeholder' );
	}
}, false);

Again, only tested on FF.
Comment 2 Roan Kattouw 2010-08-09 11:21:32 UTC

*** This bug has been marked as a duplicate of bug 24498 ***

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


Navigation
Links