File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 123
123
language : _ei_data . language ,
124
124
outlineapp : _ei_data . outlineapp ,
125
125
outlineserver : _ei_data . outlineserver ,
126
+ generalHelp : _ei_data . generalHelp
126
127
} ) ;
127
128
} ) ;
128
129
</ script >
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ window.EasyInterface = (function() {
58
58
this . initCodeAreaWidget ( ) ;
59
59
this . initFileManagerWidget ( ) ;
60
60
this . initParametersWidget ( ) ;
61
- this . initHelpWidget ( ) ;
61
+ this . initHelpWidget ( options . generalHelp ) ;
62
62
// this.initGeneralSetting();
63
63
this . initConsoleWidget ( ) ;
64
64
this . initToolSelectorWidget ( ) ;
@@ -221,7 +221,8 @@ window.EasyInterface = (function() {
221
221
222
222
//
223
223
initHelpWidget :
224
- function ( ) {
224
+ function ( generalHelp ) {
225
+
225
226
var self = this ;
226
227
this . helps = new Helps ( this . helpsHolder , { } ) ;
227
228
@@ -246,7 +247,10 @@ window.EasyInterface = (function() {
246
247
}
247
248
}
248
249
} ) ;
249
-
250
+ if ( generalHelp ) {
251
+ var general = $ . parseXML ( generalHelp ) ;
252
+ this . helps . addSection ( "General Help" , "generalhelp" , $ ( general ) . find ( "apphelp" ) ) ;
253
+ }
250
254
} ,
251
255
252
256
//
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ window.Helps = (function() {
5
5
var helpsId = 0 ;
6
6
7
7
function Helps ( place , options ) {
8
-
9
8
helpsId ++ ;
10
9
11
10
this . helpId = "OPTS-" + helpsId ;
@@ -28,7 +27,7 @@ window.Helps = (function() {
28
27
29
28
//
30
29
setOptions :
31
- function ( ) {
30
+ function ( options ) {
32
31
} ,
33
32
34
33
//
@@ -43,6 +42,7 @@ window.Helps = (function() {
43
42
active : 0 ,
44
43
icons : { header : "ui-icon-circle-arrow-e" , activeHeader : "ui-icon-circle-arrow-s" }
45
44
} ) ;
45
+
46
46
} ,
47
47
48
48
//
@@ -63,7 +63,6 @@ window.Helps = (function() {
63
63
64
64
this . sectionInfoById [ sectionId ] = sectionInfo ;
65
65
this . secId ++ ;
66
-
67
66
if ( XML && XML . length > 0 ) this . addHelpFromXML ( sectionId , XML ) ;
68
67
69
68
@@ -75,10 +74,12 @@ window.Helps = (function() {
75
74
var sectionInfo = this . sectionInfoById [ sectionId ] ;
76
75
var outclass = help . attr ( _ei . outlang . syntax . outclass ) || "info" ;
77
76
var contentXML = help . find ( "> " + _ei . outlang . syntax . content ) ;
77
+
78
78
if ( contentXML . length == 0 ) {
79
79
help . append ( $ ( "<content format='text'>No Help</content>" ) ) ;
80
80
contentXML = help . find ( "> " + _ei . outlang . syntax . content ) ;
81
81
}
82
+
82
83
var content = new DocContent ( {
83
84
content : contentXML ,
84
85
outclass : outclass
Original file line number Diff line number Diff line change 1
1
{
2
2
" outlineapp" : " coutline" ,
3
3
" title" : " Easy Interface" ,
4
- " language" :" text/x-csrc"
4
+ " language" :" text/x-csrc" ,
5
+ " generalHelp" :" <apphelp> <content format='html'>No general info.</content> </apphelp>"
5
6
}
You can’t perform that action at this time.
0 commit comments