mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-26 11:14:23 +01:00
Ticket #51 + some minor improvments.
This commit is contained in:
+7
-1
@@ -31,7 +31,8 @@ check_anchor = function() {
|
||||
delete(current_anchor.force);
|
||||
current_anchor.from_string(location.hash);
|
||||
if (!current_anchor.serialized) {
|
||||
query = current_anchor.deflocation;
|
||||
location.hash = current_anchor.deflocation;
|
||||
return;
|
||||
} else {
|
||||
query = current_anchor.serialized.substring(1);
|
||||
}
|
||||
@@ -155,6 +156,11 @@ function HashWrapper(deflocation) {
|
||||
return this;
|
||||
};
|
||||
|
||||
this.addbaseurl = function(value) {
|
||||
newbase = this.base + value;
|
||||
return this.baseurl(newbase);
|
||||
};
|
||||
|
||||
this.getbaseurl = function() {
|
||||
return this.base.substr(0, this.base.length - 1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user