Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
7f5648b5
Commit
7f5648b5
authored
12 years ago
by
Matthai Kurian
Browse files
Options
Downloads
Plain Diff
merge
parents
eb7d0135
cfceca19
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/core/gui/components/Window.java
+7
-0
7 additions, 0 deletions
src/main/java/org/olat/core/gui/components/Window.java
src/main/java/org/olat/course/nodes/scorm/ScormRunController.java
+7
-6
7 additions, 6 deletions
.../java/org/olat/course/nodes/scorm/ScormRunController.java
with
14 additions
and
6 deletions
src/main/java/org/olat/core/gui/components/Window.java
+
7
−
0
View file @
7f5648b5
...
...
@@ -106,6 +106,12 @@ public class Window extends Container {
*/
public
static
final
Event
END_OF_DISPATCH_CYCLE
=
new
Event
(
"eodc"
);
/**
* fired before render-only call is rendered (e.g. after reload, redirect).
* In this case normally no dispatch is fired. No dispatch will be done
*/
public
static
final
Event
BEFORE_RENDER_ONLY
=
new
Event
(
"before_render_only"
);
/**
* fired before inline (text/html computed response) takes place
*/
...
...
@@ -521,6 +527,7 @@ public class Window extends Container {
if
(
renderOnly
||
timestampID
==
null
)
{
inline
=
true
;
validate
=
true
;
wbackofficeImpl
.
fireCycleEvent
(
BEFORE_RENDER_ONLY
);
}
else
if
(
validatingCausedRerendering
&&
timestampID
.
equals
(
"-1"
))
{
// the first request after the 302 redirect cause by a component validation
// -> just rerender, but clear the flag for further async media requests
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/course/nodes/scorm/ScormRunController.java
+
7
−
6
View file @
7f5648b5
...
...
@@ -141,13 +141,9 @@ public class ScormRunController extends BasicController implements ScormAPICallb
putInitialPanel
(
main
);
boolean
doSkip
=
config
.
getBooleanSafe
(
ScormEditController
.
CONFIG_SKIPLAUNCHPAGE
,
true
);
if
(
isAssessable
&&
doSkip
&&
!
maxAttemptsReached
())
{
if
(
doSkip
&&
!
maxAttemptsReached
())
{
doLaunch
(
ureq
,
true
);
//CoordinatorManager.getInstance().getCoordinator().getEventBus().registerFor(this, ureq.getIdentity(), OresHelper.createOLATResourceableType(getClass().getName()));
getWindowControl
().
getWindowBackOffice
().
addCycleListener
(
this
);
// Component scormContent = scormDispC.getInitialComponent();
// fireEvent(ureq, new FullWidthReplaceRequestEvent(true, scormContent));
}
}
...
...
@@ -436,7 +432,12 @@ public class ScormRunController extends BasicController implements ScormAPICallb
@Override
public
void
event
(
Event
event
)
{
if
(
event
==
Window
.
END_OF_DISPATCH_CYCLE
)
{
if
(
event
==
Window
.
END_OF_DISPATCH_CYCLE
||
event
==
Window
.
BEFORE_RENDER_ONLY
)
{
// do initial modal dialog activation
// a) just after the dispatching of the event which is before
// rendering after a normal click
// b) just before a render-only operation which happens when using a
// jump-in URL followed by a redirect without dispatching
scormDispC
.
activate
();
getWindowControl
().
getWindowBackOffice
().
removeCycleListener
(
this
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment