|
41 | 41 | a Link
|
42 | 42 | a Index
|
43 | 43 | module TestModule
|
| 44 | + module DocManModule |
44 | 45 | callback DecoratorCallback
|
45 | 46 | variable Password
|
46 | 47 | variable PasswordRequested
|
|
270 | 271 | create HelpInner in HelpOuter
|
271 | 272 | set the style of HelpInner to `width:100%;line-height:1.5em`
|
272 | 273 |
|
273 |
| - create HelpPanel in HelpInner |
274 |
| - set the style of HelpPanel to `display:none;width:100%;height:100%` |
275 |
| - create ReferencePanel in HelpInner |
276 |
| - set the style of ReferencePanel to `display:none;width:100%;height:100%` |
| 274 | + create HelpPanel in HelpInner |
| 275 | + set the style of HelpPanel to `display:none;width:100%;height:100%` |
| 276 | + create ReferencePanel in HelpInner |
| 277 | + set the style of ReferencePanel to `display:none;width:100%;height:100%` |
277 | 278 |
|
278 |
| - gosub to ShowHelpPage |
279 |
| - rest get Script from `/resources/ecs/docman.ecs` |
280 |
| - run Script with ReferencePanel |
281 |
| - put empty into storage as `.ref` |
| 279 | + gosub to ShowHelpPage |
| 280 | + rest get Script from `/resources/ecs/docman.ecs` |
| 281 | + run Script with ReferencePanel as DocManModule |
| 282 | + put empty into storage as `.ref` |
282 | 283 |
|
283 |
| - get Item from storage as `.ref` |
| 284 | + get Item from storage as `.ref` |
284 | 285 | if Item
|
285 | 286 | begin
|
286 | 287 | set style `display` of ReferencePanel to `block`
|
287 | 288 | set style `display` of HelpButtons to `none`
|
288 | 289 | end
|
289 | 290 | else set style `display` of HelpPanel to `block`
|
290 | 291 |
|
291 |
| - on click Back go to StepBack |
292 |
| - on click Forward go to StepForward |
| 292 | + on click Back go to StepBack |
| 293 | + on click Forward go to StepForward |
293 | 294 | on click Contents go to ShowContents
|
294 |
| - on click Reference |
| 295 | + on click Reference |
295 | 296 | begin
|
296 | 297 | set style `display` of ReferencePanel to `block`
|
297 | 298 | set style `display` of HelpPanel to `none`
|
298 | 299 | set style `display` of HelpButtons to `none`
|
299 | 300 | put `y` into storage as `.ref`
|
300 | 301 | end
|
301 |
| - on click Tools |
| 302 | + on click Tools |
302 | 303 | begin
|
303 | 304 | put `tools` into Step
|
304 | 305 | gosub to ShowHelpPage
|
305 | 306 | end
|
306 |
| - on click Exit |
| 307 | + on click Exit |
307 | 308 | begin
|
| 309 | + stop DocManModule |
308 | 310 | remove element Body
|
309 |
| - send `restore` to parent |
310 |
| - exit |
| 311 | + send `restore` to parent |
| 312 | + exit |
311 | 313 | end
|
312 | 314 |
|
313 | 315 | on message
|
|
0 commit comments