summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-08-20 08:41:45 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-20 08:41:45 -0400
commit450494548dfff5e52217d38e93f537e381fbe466 (patch)
treee512ced2078a9738a37474692febde20565dd8cf
parent5f439458059c94054c2e41b7bf21234008830709 (diff)
downloadchat-450494548dfff5e52217d38e93f537e381fbe466.tar.gz
chat-450494548dfff5e52217d38e93f537e381fbe466.tar.bz2
chat-450494548dfff5e52217d38e93f537e381fbe466.zip
Fixing a few refactoring errors.
-rw-r--r--web/react/components/user_settings_modal.jsx8
-rw-r--r--web/react/utils/utils.jsx6
2 files changed, 7 insertions, 7 deletions
diff --git a/web/react/components/user_settings_modal.jsx b/web/react/components/user_settings_modal.jsx
index 7181c4020..f5a555951 100644
--- a/web/react/components/user_settings_modal.jsx
+++ b/web/react/components/user_settings_modal.jsx
@@ -26,10 +26,10 @@ module.exports = React.createClass({
},
render: function() {
var tabs = [];
- tabs.push({name: "general", ui_name: "General", icon: "glyphicon glyphicon-cog"});
- tabs.push({name: "security", ui_name: "Security", icon: "glyphicon glyphicon-lock"});
- tabs.push({name: "notifications", ui_name: "Notifications", icon: "glyphicon glyphicon-exclamation-sign"});
- tabs.push({name: "appearance", ui_name: "Appearance", icon: "glyphicon glyphicon-wrench"});
+ tabs.push({name: "general", uiName: "General", icon: "glyphicon glyphicon-cog"});
+ tabs.push({name: "security", uiName: "Security", icon: "glyphicon glyphicon-lock"});
+ tabs.push({name: "notifications", uiName: "Notifications", icon: "glyphicon glyphicon-exclamation-sign"});
+ tabs.push({name: "appearance", uiName: "Appearance", icon: "glyphicon glyphicon-wrench"});
return (
<div className="modal fade" ref="modal" id="user_settings" role="dialog" tabIndex="-1" aria-hidden="true">
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index c2d250e74..df7a1e697 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -631,9 +631,9 @@ module.exports.changeCss = function(className, classValue) {
// we need invisible container to store additional css definitions
var cssMainContainer = $('#css-modifier-container');
if (cssMainContainer.length === 0) {
- var cssMainContainer2 = $('<div id="css-modifier-container"></div>');
- cssMainContainer2.hide();
- cssMainContainer2.appendTo($('body'));
+ cssMainContainer = $('<div id="css-modifier-container"></div>');
+ cssMainContainer.hide();
+ cssMainContainer.appendTo($('body'));
}
// and we need one div for each class