Minimal IE prefix, won't fix anything, I just wanted to

commit before messing with the Rico livegrid
This commit is contained in:
Anders Betnér 2006-04-01 22:12:03 +00:00
parent 5a731133e2
commit 76ef6be721

View File

@ -92,7 +92,7 @@ var Source = {
input = $('edit_playlist_name'); input = $('edit_playlist_name');
Source.playlistId = $('source').value; Source.playlistId = $('source').value;
playlistName = this._getOptionElement(Source.playlistId).firstChild.nodeValue; playlistName = this._getOptionElement(Source.playlistId).firstChild.nodeValue;
input.style.top = RicoUtil.toDocumentPosition(this._getOptionElement(Source.playlistId)).y+ 'px'; input.style.top = RicoUtil.toDocumentPosition(this._getOptionElement(Source.playlistId)).y + 'px';
input.value = playlistName; input.value = playlistName;
input.style.display = 'block'; input.style.display = 'block';
Field.activate(input); Field.activate(input);
@ -154,7 +154,8 @@ var EventHandler = {
} }
if (EventHandler.sourceClickCount[playlistId] > 1) { if (EventHandler.sourceClickCount[playlistId] > 1) {
el = Event.element(e); el = Event.element(e);
if (!el.text) { if (!document.all && !el.text) {
// IE sends the select in the event, not the option
// Firefox generates and event when clicking in and empty area // Firefox generates and event when clicking in and empty area
// of the select box // of the select box
return; return;