Commit 11518043 authored by ronald's avatar ronald

enclose all if clause in brackets

parent 4fb4507a
...@@ -69,8 +69,9 @@ if (link.match(/login/g)){ ...@@ -69,8 +69,9 @@ if (link.match(/login/g)){
return; return;
} }
//If images doesnt have sku, unselect //If images doesnt have sku, unselect
if(!a.querySelector(".name").innerText.match(currentSku)) if(!a.querySelector(".name").innerText.match(currentSku)) {
a.click(); a.click();
}
} }
}); });
downloadlist = document.querySelectorAll(".panel-inner .is-checked"); downloadlist = document.querySelectorAll(".panel-inner .is-checked");
...@@ -113,8 +114,9 @@ if (link.match(/login/g)){ ...@@ -113,8 +114,9 @@ if (link.match(/login/g)){
}); });
document.querySelector("#assets_btn_download_asset").click(); document.querySelector("#assets_btn_download_asset").click();
setTimeout(function(){ setTimeout(function(){
if(index+2 != a.length) if(index+2 != a.length) {
window.open("https://digitallibrary-external.fastretailing.com/asset?t=datacategory%2Fasset&w="+ a[index+2] + "&r=north"); window.open("https://digitallibrary-external.fastretailing.com/asset?t=datacategory%2Fasset&w="+ a[index+2] + "&r=north");
}
},5000); },5000);
},5000); },5000);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment