Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Arnaud Fontaine
erp5
Commits
cdef2e24
Commit
cdef2e24
authored
13 years ago
by
Rafael Monnerat
Browse files
Options
Download
Email Patches
Plain Diff
Only use image reference when upload an File into ERP5.
parent
2fcab04e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
product/Zelenium/selenium/core/scripts/selenium-api.js
product/Zelenium/selenium/core/scripts/selenium-api.js
+2
-4
No files found.
product/Zelenium/selenium/core/scripts/selenium-api.js
View file @
cdef2e24
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment