Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
7693bf30
Commit
7693bf30
authored
Jul 07, 2023
by
Lynette Lizardo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return and reject pop up display fix
parent
1e7aa378
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
43 deletions
+27
-43
rejectElement.js
WebGde/WebContent/WebGde-Widgets/BPO/rejectElement.js
+8
-12
returnElement.js
WebGde/WebContent/WebGde-Widgets/BPO/returnElement.js
+14
-27
highlightClass.js
...ets/ImageViewerWidget/modules/highlight/highlightClass.js
+1
-1
documentControlWidget.js
...de-Widgets/documentControlWidget/documentControlWidget.js
+3
-2
style.css
WebGde/WebContent/style.css
+1
-1
No files found.
WebGde/WebContent/WebGde-Widgets/BPO/rejectElement.js
View file @
7693bf30
...
...
@@ -21,13 +21,7 @@ async function rejectElement() {
body
:
JSON
.
stringify
(
load
)
});
if
(
response
.
status
==
200
)
{
if
(
INDEXED_DB_STORAGE
){
INDEXED_DB_STORAGE
.
clear
();
}
if
(
IMAGE_VIEWER_OBJECT
){
IMAGE_VIEWER_OBJECT
.
clearImageContainer
();
}
// [...document.getElementsByClassName("bar")].forEach(el => {
// el.style.removeProperty('display');
...
...
@@ -351,8 +345,8 @@ function saveExceptionToXml(){
"section"
:
section
}
updateXMLException
(
xmlData
);
return
false
;
return
updateXMLException
(
xmlData
);
//
return false;
}
function
createMessageBox
(
id
){
...
...
@@ -395,8 +389,9 @@ async function updateXMLException(xmlData){
console
.
log
(
"Exception Updated"
);
return
true
;
}
else
{
PROMPT
.
createInfoPrompt
(
`Error
${
response
.
status
}
: Xml Update`
);
}
// else{
// // PROMPT.createInfoPrompt(`Error ${response.status}: Xml Update`);
// return false
// }
return
false
;
}
\ No newline at end of file
WebGde/WebContent/WebGde-Widgets/BPO/returnElement.js
View file @
7693bf30
import
{
resetGDE
}
from
"../../script.js"
;
import
{
interval
}
from
"../captureMetrics/captureMetrics.js"
;
import
{
createModal
}
from
"../genericPopup/genericPopup.js"
;
import
{
BPO_OBJECT
,
IMAGE_VIEWER_OBJECT
,
INDEXED_DB_STORAGE
}
from
"../globalVariable.js"
;
import
{
getUrlReturnElement
}
from
"./bpoService.js"
;
...
...
@@ -7,22 +8,10 @@ export async function returnElementBPO(elementId) {
let
response
=
await
fetch
(
getUrlReturnElement
(
elementId
),
{
method
:
"POST"
});
if
(
response
.
status
==
200
)
{
if
(
INDEXED_DB_STORAGE
){
INDEXED_DB_STORAGE
.
clear
();
}
if
(
IMAGE_VIEWER_OBJECT
){
IMAGE_VIEWER_OBJECT
.
clearImageContainer
();
}
// [...document.getElementsByClassName("bar")].forEach(el => {
// el.style.removeProperty('display');
// });
//document.getElementById("counter").innerHTML = "";
//clearTimeout(interval);
document
.
getElementById
(
"counter"
).
innerHTML
=
""
;
clearTimeout
(
interval
);
sessionStorage
.
removeItem
(
"section"
);
sessionStorage
.
removeItem
(
"doctype"
);
//isCanvasNotCreated = true;
localStorage
.
clear
();
function
successfulReturn
()
{
...
...
@@ -33,9 +22,7 @@ export async function returnElementBPO(elementId) {
if
(
await
BPO_OBJECT
.
getRandomWaitingElement
()){
resetGDE
();
};
//localStorage.sfIndex = 1;
// await loadWaitingElement();
// init();
}
else
{
//PROMPT.createInfoPrompt(`Error ${response.status}: Returning element`);
function
successfulReturn
()
{
...
...
@@ -184,16 +171,16 @@ export function createReturnWindow() {
okEnd
.
id
=
'okEndButtn'
;
okEnd
.
onclick
=
function
()
{
returnElementBPO
(
sessionStorage
.
getItem
(
"element_id"
));
var
fileName
=
sessionStorage
.
getItem
(
"file_Name"
);
if
(
fileName
!==
null
&&
fileName
!==
undefined
){
if
(
document
.
getElementById
(
"controlsContainer"
)
!==
null
)
{
document
.
getElementById
(
"controlsContainer"
).
outerHTML
=
""
;
}
}
else
{
if
(
document
.
getElementById
(
"TiffViewer_ButtonContainer"
)
!==
null
)
{
document
.
getElementById
(
"TiffViewer_ButtonContainer"
).
outerHTML
=
""
;
}
}
//
var fileName = sessionStorage.getItem("file_Name");
//
if(fileName !== null && fileName !== undefined){
//
if(document.getElementById("controlsContainer") !== null) {
//
document.getElementById("controlsContainer").outerHTML="";
//
}
//
}else{
//
if(document.getElementById("TiffViewer_ButtonContainer") !== null) {
//
document.getElementById("TiffViewer_ButtonContainer").outerHTML="";
//
}
//
}
overlay
.
remove
();
}
...
...
WebGde/WebContent/WebGde-Widgets/ImageViewerWidget/modules/highlight/highlightClass.js
View file @
7693bf30
...
...
@@ -67,7 +67,7 @@ export class Highlight {
this
.
highlightCanvas
.
setAttribute
(
"width"
,
w
);
this
.
highlightCanvas
.
setAttribute
(
"height"
,
h
);
this
.
highlightCanvas
.
style
.
zIndex
=
"
10
"
;
this
.
highlightCanvas
.
style
.
zIndex
=
"
3
"
;
}
...
...
WebGde/WebContent/WebGde-Widgets/documentControlWidget/documentControlWidget.js
View file @
7693bf30
...
...
@@ -147,7 +147,8 @@ export class DocumentControlWidget {
}
this
.
global
.
returnBtn
.
onclick
=
(
e
)
=>
{
returnElementBPO
(
sessionStorage
.
getItem
(
"element_id"
));
createReturnWindow
();
//returnElementBPO(sessionStorage.getItem("element_id"));
// var fileName = sessionStorage.getItem("file_Name");
// if (fileName !== null && fileName !== undefined) {
// document.getElementById("controlsContainer").outerHTML="";
...
...
@@ -155,7 +156,7 @@ export class DocumentControlWidget {
// document.getElementById("TiffViewer_ButtonContainer").outerHTML="";
// }
//createReturnWindow();
}
this
.
global
.
returnBtn
.
onkeydown
=
(
e
)
=>
{
...
...
WebGde/WebContent/style.css
View file @
7693bf30
...
...
@@ -244,7 +244,7 @@ textarea{
height
:
100%
;
position
:
absolute
;
top
:
0
;
z-index
:
1
;
z-index
:
5
;
backdrop-filter
:
blur
(
4px
);
}
...
...
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