projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
878ce7c
)
JsTemplate/Link.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 07:06:06 +0000
(15:06 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 16 Jul 2010 07:06:06 +0000
(15:06 +0800)
JsTemplate/Link.js
patch
|
blob
|
history
diff --git
a/JsTemplate/Link.js
b/JsTemplate/Link.js
index
87f3cf6
..
5be54d1
100644
(file)
--- a/
JsTemplate/Link.js
+++ b/
JsTemplate/Link.js
@@
-202,9
+202,20
@@
Link = XObject.define(
var outFilePath = Link.base + filePath;
var outFilePath = Link.base + filePath;
+ if (!this.text) this.text = filePath;
+ return "<a href=\""+outFilePath+"\""+target+">"+this.text+"</a>";
+ },
+
+ /** very basic link... */
+ _makeFileLink : function(filePath) {
+ var target = (this.targetName)? " target=\""+this.targetName+"\"" : "";
+
+ var outFilePath = Link.base + filePath;
+
if (!this.text) this.text = filePath;
return "<a href=\""+outFilePath+"\""+target+">"+this.text+"</a>";
}
if (!this.text) this.text = filePath;
return "<a href=\""+outFilePath+"\""+target+">"+this.text+"</a>";
}
+
});
});