home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
AIMP2
/
aimp_2.61.583.exe
/
$TEMP
/
YandexPackSetup.msi
/
fil6A40BFFD7DA73967FBCE33CA7CA2C650
< prev
next >
Wrap
Text File
|
2010-07-12
|
1KB
|
36 lines
XB.UI.Behaviour.Url = XB.UI.Behaviour.extend({
name: "url",
create: function() {
this.base();
this.parent.addURL(this);
},
append: function () {
},
destroy: function UIURL_Destroy() {
try {
this.parent.removeURL(this);
}
finally {
this.base();
}
},
navigate: function UIURL_Navigate(eventInfo) {
var url = this.node.textContent,
action = this.attribute.action,
srcWnd = this.node.ownerDocument.defaultView,
widgetPrototype = this.getWidgetContainer().prototype;
let target = this.attribute.target;
if (eventInfo.keys.ctrl || eventInfo.keys.meta || eventInfo.mouse.button == 1)
target = "new tab";
else if (eventInfo.keys.shift)
target = "new window";
XB._base.application.navigate(srcWnd, url, target, undefined, undefined, action, widgetPrototype);
}
});