Set custom profileName after post
Otherwise next cache get after tab switching still uses original profile
This commit is contained in:
parent
f1f57ec3ce
commit
07425148ee
1 changed files with 2 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ BR.Profile = L.Evented.extend({
|
|||
callback: L.bind(function(err, profileId, profileText) {
|
||||
$(button).blur();
|
||||
if (!err) {
|
||||
this.profileName = profileId;
|
||||
this.cache[profileId] = profileText;
|
||||
|
||||
if (!this.saveWarningShown) {
|
||||
|
|
@ -127,6 +128,7 @@ BR.Profile = L.Evented.extend({
|
|||
profileText: profileText,
|
||||
callback: function(err, profileId, profileText) {
|
||||
if (!err) {
|
||||
that.profileName = profileId;
|
||||
that.cache[profileId] = profileText;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue