зеркало из https://github.com/mozilla/gecko-dev.git
add a little dragover styling for home button (to be fixed up later).
This commit is contained in:
Родитель
84cda8c6bf
Коммит
4906e64ebc
|
@ -366,12 +366,16 @@ var homeButtonObserver = {
|
|||
var statusTextFld = document.getElementById("statusbar-display");
|
||||
statusTextFld.label = gNavigatorBundle.getString("droponhomebutton");
|
||||
aDragSession.dragAction = Components.interfaces.nsIDragService.DRAGDROP_ACTION_LINK;
|
||||
var button = document.getElementById("home-button");
|
||||
button.setAttribute("dragover", "true");
|
||||
},
|
||||
|
||||
onDragExit: function (aEvent, aDragSession)
|
||||
{
|
||||
var statusTextFld = document.getElementById("statusbar-display");
|
||||
statusTextFld.label = "";
|
||||
var button = document.getElementById("home-button");
|
||||
button.removeAttribute("dragover");
|
||||
},
|
||||
|
||||
getSupportedFlavours: function ()
|
||||
|
|
|
@ -311,7 +311,8 @@
|
|||
list-style-image: url("chrome://browser/skin/home.gif");
|
||||
}
|
||||
|
||||
#home-button:hover {
|
||||
#home-button:hover,
|
||||
#home-button[dragover] {
|
||||
list-style-image: url("chrome://browser/skin/home-hover.gif");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче