partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit dbde40cf76ee5071a38a1e1c7c6c5e2ab173b494
parent 9c9ee767cd1886723bd6023df9cc77a674ddacd7
Author: Felicitus <felicitus@felicitus.org>
Date:   Thu,  1 Sep 2011 23:44:46 +0200

Bugfix: Tip of the day window is now not displayed when the user's preference was configured to "no tip of the day windows"

Diffstat:
Mfrontend/js/PartKeepr.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/frontend/js/PartKeepr.js b/frontend/js/PartKeepr.js @@ -62,7 +62,7 @@ Ext.application({ * avoids showing the window. */ displayTipOfTheDayWindow: function () { - if (PartKeepr.getApplication().setUserPreference("partkeepr.tipoftheday.showtips") !== false) { + if (PartKeepr.getApplication().getUserPreference("partkeepr.tipoftheday.showtips") !== false) { Ext.create("PartKeepr.TipOfTheDayWindow").show(); } }, @@ -187,6 +187,9 @@ Ext.application({ this.userPreferenceStore.sync(); }, + getUserPreferenceStore: function () { + return this.userPreferenceStore; + }, getUnitStore: function () { return this.unitStore; },