use snake_case instead of camelCase for class names in settings applet
authorJack Allnutt <m2ys4u@gmail.com>
Fri, 28 Jun 2013 22:43:58 +0000 (23:43 +0100)
committerJack Allnutt <m2ys4u@gmail.com>
Fri, 28 Jun 2013 22:43:58 +0000 (23:43 +0100)
client/assets/src/applets/settings.js
client/assets/src/index.html.tmpl

index 16fc8825cf98e3ac0b2416847a00c06fc224349f..067952712b2f5ac69ce64e705ab7d1b6cab6c20e 100644 (file)
@@ -3,14 +3,14 @@
         events: {\r
             'change [data-setting]': 'saveSettings',\r
             'click [data-setting="theme"]': 'selectTheme',\r
-            'click .registerProtocol': 'registerProtocol'\r
+            'click .register_protocol': 'registerProtocol'\r
         },\r
 \r
         initialize: function (options) {\r
             this.$el = $($('#tmpl_applet_settings').html().trim());\r
 \r
             if (!navigator.registerProtocolHandler) {\r
-                this.$el.find('.protoHandler').remove();\r
+                this.$el.find('.protocol_handler').remove();\r
             }\r
 \r
             // Incase any settings change while we have this open, update them\r
index fa96a7692a51ff53bd74b6dd528f9a5b222ed07e..72d3c0c8c5e06d5534f8eb5973e9769155226b38 100644 (file)
                 </div>\r
             </section>\r
 \r
-            <section class="protoHandler">\r
+            <section class="protocol_handler">\r
                 <h6>irc: protocol hander</h6>\r
                 <div class="control-group">\r
-                    <button class="registerProtocol">Register protocol handler</button>\r
+                    <button class="register_protocol">Register protocol handler</button>\r
                     <br>\r
                     <span>Allow Kiwi IRC to handle irc: links <small>(Example: <a href="irc:irc.example.com:6667/irchelp">irc:irc.example.com:6667/irchelp</a>)</small></span>\r
                 </div>\r