Browse Source

Test Download could fail if clicked on icon instead of button

Closes #1263
pull/1274/head
Safihre 6 years ago
parent
commit
2c92a7621c
  1. 6
      interfaces/Glitter/templates/static/javascripts/glitter.main.js

6
interfaces/Glitter/templates/static/javascripts/glitter.main.js

@ -852,6 +852,12 @@ function ViewModel() {
// Download a test-NZB
self.testDownload = function(data, event) {
var nzbSize = $(event.target).data('size')
// Maybe it was a click on the icon?
if(nzbSize == undefined) {
nzbSize = $(event.target.parentElement).data('size')
}
// Build request
var theCall = {
mode: "addurl",

Loading…
Cancel
Save