From 4ac07f434727aed93be35c19ad717134d89fd158 Mon Sep 17 00:00:00 2001
From: Reed Garmsen <rgarmsen2295@gmail.com>
Date: Thu, 2 Jul 2015 19:04:48 -0700
Subject: Fixed not being able to open channel notifications settings menu in
 IE10

---
 web/react/components/channel_notifications.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'web/react/components/channel_notifications.jsx')

diff --git a/web/react/components/channel_notifications.jsx b/web/react/components/channel_notifications.jsx
index 638d16576..836f94b94 100644
--- a/web/react/components/channel_notifications.jsx
+++ b/web/react/components/channel_notifications.jsx
@@ -16,12 +16,12 @@ module.exports = React.createClass({
         var self = this;
         $(this.refs.modal.getDOMNode()).on('show.bs.modal', function(e) {
             var button = e.relatedTarget;
-            var channel_id = button.dataset.channelid;
+            var channel_id = button.getAttribute('data-channelid');
 
             var notifyLevel = ChannelStore.getMember(channel_id).notify_level;
             var quietMode = false;
             if (notifyLevel === "quiet") quietMode = true;
-            self.setState({ notify_level: notifyLevel, quiet_mode: quietMode, title: button.dataset.title, channel_id: channel_id });
+            self.setState({ notify_level: notifyLevel, quiet_mode: quietMode, title: button.getAttribute('data-channelid'), channel_id: channel_id });
         });
     },
     componentWillUnmount: function() {
-- 
cgit v1.2.3-1-g7c22


From e9bec9600d4740aa72113fb4641c05d65d06fc26 Mon Sep 17 00:00:00 2001
From: Reed Garmsen <rgarmsen2295@gmail.com>
Date: Mon, 6 Jul 2015 07:47:11 -0700
Subject: Fixed copy-paste error in code

---
 web/react/components/channel_notifications.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/components/channel_notifications.jsx')

diff --git a/web/react/components/channel_notifications.jsx b/web/react/components/channel_notifications.jsx
index 836f94b94..38bc91682 100644
--- a/web/react/components/channel_notifications.jsx
+++ b/web/react/components/channel_notifications.jsx
@@ -21,7 +21,7 @@ module.exports = React.createClass({
             var notifyLevel = ChannelStore.getMember(channel_id).notify_level;
             var quietMode = false;
             if (notifyLevel === "quiet") quietMode = true;
-            self.setState({ notify_level: notifyLevel, quiet_mode: quietMode, title: button.getAttribute('data-channelid'), channel_id: channel_id });
+            self.setState({ notify_level: notifyLevel, quiet_mode: quietMode, title: button.getAttribute('data-title'), channel_id: channel_id });
         });
     },
     componentWillUnmount: function() {
-- 
cgit v1.2.3-1-g7c22

