Subversion Repositories SmartDukaan

Rev

Rev 32956 | Rev 35346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32956 Rev 33973
Line 69... Line 69...
69
						</span>
69
						</span>
70
                        </div>
70
                        </div>
71
                    </div>
71
                    </div>
72
                    <div class="col-lg-2">
72
                    <div class="col-lg-2">
73
                        <a class="btn btn-default" href="${rc.contextPath}/content/template.csv">
73
                        <a class="btn btn-default" href="${rc.contextPath}/content/template.csv">
74
                            Download Tempate
74
                            Download Template
75
                        </a>
75
                        </a>
76
                    </div>
76
                    </div>
77
                </form>
77
                </form>
78
            </div>
78
            </div>
79
        </div>
79
        </div>
Line 196... Line 196...
196
                        divObj.find('input[type=text]').val(value.title);
196
                        divObj.find('input[type=text]').val(value.title);
197
                        divObj.find('input:radio').prop("checked", checked);
197
                        divObj.find('input:radio').prop("checked", checked);
198
                        url = new URL(value.url);
198
                        url = new URL(value.url);
199
                        url.protocol = "https:";
199
                        url.protocol = "https:";
200
 
200
 
201
                        fetch(url.toString(), {mode: 'no-cors'})
201
                        fetch(url.toString(), {mode: 'no-cors'}).then(function (response) {
202
                                .then(function (response) {
-
 
203
                                    response.blob().then(function (blob) {
202
                            response.blob().then(function (blob) {
204
                                        imgObject.src = URL.createObjectURL(blob);
203
                                imgObject.src = URL.createObjectURL(blob);
205
                                    });
204
                            });
206
                                });
205
                        });
207
                    });
206
                    });
208
                }
207
                }
209
            });
208
            });
210
        });
209
        });
211
        $("#mediaForm").on("submit", function () {
210
        $("#mediaForm").on("submit", function () {
Line 293... Line 292...
293
            forceHelperSize: true
292
            forceHelperSize: true
294
        });
293
        });
295
    });
294
    });
296
 
295
 
297
</script>
296
</script>
298
 
-