commit de317321a02cf4a9a9a393bcbc1b25da84e56466 parent ff70e1f722544b86a6cfad526a33f15997a909bf Author: Felicia Hummel <felicitus@felicitus.org> Date: Tue, 2 Aug 2016 15:09:36 +0200 Merge pull request #700 from partkeepr/PartKeepr-698 Correctly handle the "remember choice" messagebox, fixes #698 Diffstat:
M | src/PartKeepr/FrontendBundle/Resources/public/js/Dialogs/RememberChoiceMessageBox.js | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Dialogs/RememberChoiceMessageBox.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Dialogs/RememberChoiceMessageBox.js @@ -63,8 +63,10 @@ Ext.define('PartKeepr.RememberChoiceMessageBox', { { this.callParent(arguments); - if (btn === "ok") { - PartKeepr.getApplication().setUserPreference(this.dontAskAgainProperty, this.dontAskAgainValue); + if (btn.itemId === "ok") { + if (this.rememberChoiceCheckbox.getValue()) { + PartKeepr.getApplication().setUserPreference(this.dontAskAgainProperty, this.dontAskAgainValue); + } } }