Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. function downloadThisFileForDriverDetails(n) {
  2. var o = [],
  3. h = "#hdnAddlist-" + n,
  4. t = $(h).val().split("~"),
  5. i = {},
  6. r = {},
  7. f,
  8. e,
  9. u,
  10. s;
  11. for (r.DriverId = i.DriverId = t[0], i.FileId = t[1], i.FileSize = t[3], i.IsSecure = t[7] == "True", r.FileLocation = i.FileLocation = t[5], i.FileName = t[8], r.ProductCode = t[9], r.IsRestricted = t[10], r.DownloadOrigin = downloadOrigin.Deatils, f = JSON.parse(t[11]), e = [], u = 0; u < f.length; u++)
  12. e[u] = f[u].ProductCodes;
  13. if (r.ProductList = e, AddToDellMetrics(t[0], ""), r.IsRestricted == "True")
  14. s = "#downloadResult-" + n, downloadForce10Drivers(r, s);
  15. else {
  16. if (i.IsSecure && !isServiceTagAuthorized) {
  17. secureOperation = "DSF";
  18. $("#modelServiceTag").val("");
  19. $("#divWarning").hide();
  20. $("#divWarningDown").hide();
  21. $("#divSecure").modal("show");
  22. secureFileId = t[1];
  23. return
  24. }
  25. o.push(i);
  26. isServiceTagAuthorized = !1;
  27. downloadFiles(o, "#downloadResult-" + n)
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement