\r
this.$el.find('.setting-theme').val(settings.get('theme'));\r
this.$el.find('.setting-scrollback').val(settings.get('scrollback'));\r
+\r
+ if (typeof settings.get('show_joins_parts') === 'undefined' || settings.get('show_joins_parts')) {\r
+ this.$el.find('.setting-show_joins_parts').attr('checked', true);\r
+ } else {\r
+ this.$el.find('.setting-show_joins_parts').attr('checked', false);\r
+ }\r
},\r
\r
saveSettings: function () {\r
\r
settings.set('theme', $('.setting-theme', this.$el).val());\r
settings.set('scrollback', $('.setting-scrollback', this.$el).val());\r
+ settings.set('show_joins_parts', $('.setting-show_joins_parts', this.$el).is(':checked'));\r
\r
settings.save();\r
}\r
</tr>\r
\r
<tr>\r
- <td>Auto-reconnect</td>\r
- <td><input type="checkbox" class="setting-reconnect" /></td>\r
+ <td>Show joins/parts</td>\r
+ <td><input type="checkbox" class="setting-show_joins_parts" /></td>\r
</tr>\r
</table>\r
\r
\r
members = this.get("members");\r
members.bind("add", function (member) {\r
- var show_message = _kiwi.global.settings.get('show_join_parts');\r
+ var show_message = _kiwi.global.settings.get('show_joins_parts');\r
if (show_message === false) {\r
return;\r
}\r
}, this);\r
\r
members.bind("remove", function (member, members, options) {\r
- var show_message = _kiwi.global.settings.get('show_join_parts');\r
+ var show_message = _kiwi.global.settings.get('show_joins_parts');\r
if (show_message === false) {\r
return;\r
}\r