[completed: 567]Fixed backslashes for UNC file link.
This commit is contained in:
parent
ff07e317cd
commit
9d52f36079
3 changed files with 7 additions and 6 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.5.608")]
|
[assembly: AssemblyVersion("3.0.5.609")]
|
||||||
[assembly: AssemblyFileVersion("3.0.5.608")]
|
[assembly: AssemblyFileVersion("3.0.5.609")]
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
function ProcessFileLink() {
|
function ProcessFileLink() {
|
||||||
var name = GetValue("txtFilePath");
|
var name = GetValue("txtFilePath");
|
||||||
|
name = name.replace(/\\/g, '\\\\');
|
||||||
if(name == "") return false;
|
if(name == "") return false;
|
||||||
var title = GetValue("txtFileTitle");
|
var title = GetValue("txtFileTitle");
|
||||||
var c = IsChecked("chkFileNW") ? "^" : "";
|
var c = IsChecked("chkFileNW") ? "^" : "";
|
||||||
|
|
|
@ -84,10 +84,10 @@
|
||||||
var title = GetValue("txtFileTitle");
|
var title = GetValue("txtFileTitle");
|
||||||
|
|
||||||
if(title == "") title = GetValue("txtFilePath");
|
if(title == "") title = GetValue("txtFilePath");
|
||||||
title = title.replace('\'', ''');
|
title = title.replace(/\'/g, ''');
|
||||||
title = title.replace('\'', ''');
|
title = title.replace(/\\/g, '\\\\');
|
||||||
title = title.replace('\'', ''');
|
name = name.replace(/\'/g, ''');
|
||||||
title = title.replace('\'', ''');
|
name = name.replace(/\\/g, '\\\\');
|
||||||
|
|
||||||
// Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&File=FILE" title="TITLE">TITLE</a>
|
// Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&File=FILE" title="TITLE">TITLE</a>
|
||||||
// Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&IsPageAttachment=1&Page=PAGE&File=FILE" title="TITLE">TITLE</a>
|
// Sample string: <a class="internallink" [target="_blank" ]href="GetFile.aspx?Provider=PROVIDER&IsPageAttachment=1&Page=PAGE&File=FILE" title="TITLE">TITLE</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue