Fix the trash button in toolbar not always working
This commit is contained in:
@@ -400,6 +400,7 @@ define([
|
||||
};
|
||||
|
||||
var getRelativeHref = common.getRelativeHref = function (href) {
|
||||
if (!href) { return; }
|
||||
var parsed = common.parsePadUrl(href);
|
||||
return '/' + parsed.type + '/#' + parsed.hash;
|
||||
};
|
||||
@@ -563,7 +564,7 @@ define([
|
||||
};
|
||||
|
||||
if (typeof(getStore().forgetPad) === "function") {
|
||||
getStore().forgetPad(href, callback);
|
||||
getStore().forgetPad(common.getRelativeHref(href), callback);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user