summaryrefslogtreecommitdiff
path: root/app/products/static/product-loader.js
blob: 6d04b6152dfa1ec3f8edbb669c1716baa58d1f15 (plain)
1
2
3
4
5
6
7
8
9
10
function add_products(){
    var el = document.getElementById("images_frame");
    if (el){ 
        var iframe='<iframe frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luxproduct/insert/?textarea='+el.id+'"></iframe>';
        el.insertAdjacentHTML('afterend', iframe);
    }
}
document.addEventListener("DOMContentLoaded", function(event) { 
    add_products();
});