Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matevz Golob
erp5
Commits
cdef2e24
Commit
cdef2e24
authored
Mar 11, 2012
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only use image reference when upload an File into ERP5.
parent
2fcab04e
Changes
1
Show 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
);
...
...
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