|
|
@ -59,12 +59,20 @@ initializeWindows = function() { |
|
|
|
|
|
|
|
|
|
|
|
addClickEvent('download', function(e) { |
|
|
|
addClickEvent('download', function(e) { |
|
|
|
new Event(e).stop(); |
|
|
|
new Event(e).stop(); |
|
|
|
|
|
|
|
showDownloadPage(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showDownloadPage = function(urls) { |
|
|
|
var id = 'downloadPage'; |
|
|
|
var id = 'downloadPage'; |
|
|
|
|
|
|
|
var contentUrl = 'download.html'; |
|
|
|
|
|
|
|
if (urls && urls.length) |
|
|
|
|
|
|
|
contentUrl += '?urls=' + urls.join("|"); |
|
|
|
|
|
|
|
|
|
|
|
new MochaUI.Window({ |
|
|
|
new MochaUI.Window({ |
|
|
|
id: id, |
|
|
|
id: id, |
|
|
|
title: "QBT_TR(Download from URLs)QBT_TR[CONTEXT=downloadFromURL]", |
|
|
|
title: "QBT_TR(Download from URLs)QBT_TR[CONTEXT=downloadFromURL]", |
|
|
|
loadMethod: 'iframe', |
|
|
|
loadMethod: 'iframe', |
|
|
|
contentURL: 'download.html', |
|
|
|
contentURL: contentUrl, |
|
|
|
addClass: 'windowFrame', // fixes iframe scrolling on iOS Safari
|
|
|
|
addClass: 'windowFrame', // fixes iframe scrolling on iOS Safari
|
|
|
|
scrollbars: true, |
|
|
|
scrollbars: true, |
|
|
|
maximizable: false, |
|
|
|
maximizable: false, |
|
|
@ -78,7 +86,7 @@ initializeWindows = function() { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
updateMainData(); |
|
|
|
updateMainData(); |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
addClickEvent('preferences', function(e) { |
|
|
|
addClickEvent('preferences', function(e) { |
|
|
|
new Event(e).stop(); |
|
|
|
new Event(e).stop(); |
|
|
|