aboutsummaryrefslogtreecommitdiff
path: root/src/client/util
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-08 10:58:04 -0400
committerbob <bcz@cs.brown.edu>2019-08-08 10:58:04 -0400
commit44a0bc3546eca5fa18f3599448ebcebf709e3f90 (patch)
tree83e44be4be892e05f8b750fcf708ef69b33c6687 /src/client/util
parentff087aca29a01a8aa254148c9ab6082c3921fb3b (diff)
fixed titling of aliases. fixed docking panel initial size.
Diffstat (limited to 'src/client/util')
-rw-r--r--src/client/util/LinkManager.ts3
-rw-r--r--src/client/util/type_decls.d1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts
index c87e4a022..8a668e8d8 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -253,6 +253,3 @@ Scripting.addGlobal(function links(doc: any) {
return new List(LinkManager.Instance.getAllRelatedLinks(doc));
});
-Scripting.addGlobal(function renameAlias(doc: any, n: any) {
- return doc.title;// StrCast(doc.title).replace(/\\([0-9]*\\)/, "") + `(${n})`;
-});
diff --git a/src/client/util/type_decls.d b/src/client/util/type_decls.d
index 79a4e50d5..622e10960 100644
--- a/src/client/util/type_decls.d
+++ b/src/client/util/type_decls.d
@@ -74,6 +74,7 @@ interface String {
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
normalize(form?: string): string;
repeat(count: number): string;
+ replace(a:any, b:any):string; // bcz: fix this
startsWith(searchString: string, position?: number): boolean;
anchor(name: string): string;
big(): string;