'+
@@ -1189,13 +1271,27 @@ function infoclear() {
}
}
+// ------------------------------------------------------------ Open inf window
+
+function infopen() {
+ var options="scrollbars=1,resizable=1,menubar=0,width=400,height=300";
+ inf=open("","infout",options);
+}
+
+// -------------------------------------------------------- Do inf status check
+
+function infcheck() {
+ if (inf.closed) {
+ infopen();
+ }
+}
+
// --------------------------------------------------- Prints out resource info
function info(infostr) {
if ((editmode!=1) && (infostr!=lastinfo)) {
notclear=1;
- var options="scrollbars=1,resizable=1,menubar=0,width=400,height=300";
- var inf=open("","infout",options);
+ infcheck();
inf.document.clear();
inf.document.writeln(
''+
@@ -1225,7 +1321,15 @@ function info(infostr) {
data2=objcont[data1[1]].split(':');
inf.document.write('');
if (data2[2]=='true') { inf.document.write('External '); }
- inf.document.write('Resource');
+ if (data2[3]=='start') {
+ inf.document.writeln('Start');
+ } else {
+ if (data2[3]=='finish') {
+ inf.document.writeln('Finish');
+ } else {
+ inf.document.writeln('Resource');
+ }
+ }
if (data2[3]=='mandatory') {
inf.document.write(' (Mandatory)');
}
@@ -1285,6 +1389,8 @@ function insertreslink(infostr) {
var tobj;
var nobj;
var cobj;
+ var cid;
+ var rid;
data1=infostr.split('&');
data2=obj[data1[0]].split('&');
lnr=data2[data2.length-2];
@@ -1302,7 +1408,31 @@ function insertreslink(infostr) {
dellink(lnr);
newresource(rid,cid,'','','false','normal');
nobj=obj.length-1;
+ save();
joinres(fobj,nobj,cobj);
+ save();
+ joinres(nobj,tobj,0);
+}
+
+// -------------------------------------------- Insert resource after condition
+
+function insertcondlink(cid,lnr) {
+ var fobj;
+ var tobj;
+ var nobj;
+ var cobj;
+ data3=objlinks[lnr].split(':');
+ fobj=data3[0];
+ tobj=data3[1];
+ cobj=data3[2];
+ rid=(obj[fobj].split('&'))[1];
+ insertrow(row[rid]);
+ dellink(lnr);
+ newresource(maxrow,cid,'','','false','normal');
+ nobj=obj.length-1;
+ save();
+ joinres(fobj,nobj,cobj);
+ save();
joinres(nobj,tobj,0);
}
@@ -1312,8 +1442,7 @@ function handler(infostr) {
var k;
editmode=1;
notclear=1;
- var options="scrollbars=1,resizable=1,menubar=0,width=400,height=300";
- var inf=open("","infout",options);
+ infcheck();
inf.document.clear();
inf.document.writeln(
''+
@@ -1366,6 +1495,13 @@ function handler(infostr) {
'Delete Link');
+
+ inf.document.writeln(' Insert Resource Into Link'); + + } else { if (data1[0]=='r') { if (linkmode!=0) { @@ -1376,18 +1512,28 @@ function handler(infostr) { inf.document.writeln('Linked Resources'); draw(); } else { - inf.document.writeln('Resource'); data2=objcont[data1[1]].split(':'); + if (data2[3]=='start') { + inf.document.writeln('Start'); + } else { + if (data2[3]=='finish') { + inf.document.writeln('Finish'); + } else { + inf.document.writeln('Resource'); + } + } inf.document.write( ' |