Commit cdef2e24 authored by Rafael Monnerat's avatar Rafael Monnerat

Only use image reference when upload an File into ERP5.

parent 2fcab04e
......@@ -3205,9 +3205,7 @@ Selenium.prototype.doCaptureEntirePageScreenshotAndUpload = function(references,
}*/
// do or do not ... there is no try
var reference_list = references.split('/');
var webPageReference = reference_list[0];
var imageReference = reference_list[1];
var imageReference = references;
var filename = imageReference + '.png'
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
......@@ -3460,7 +3458,7 @@ Selenium.prototype.doCaptureEntirePageScreenshotAndUpload = function(references,
LOG.debug('saved to file: ' + nsFile.path);
// Uploading image (using DataURL)
var url = parseUrl(window.top.location.href) + '/Zuite_uploadScreenshot?web_page_reference=' + webPageReference + '&image_reference=' + imageReference;
var url = parseUrl(window.top.location.href) + '/Zuite_uploadScreenshot?image_reference=' + imageReference;
LOG.debug('Trying to upload: ' + url);
......
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