diff --git a/createroom/createroom.js b/createroom/createroom.js index 447f7c6..0bec842 100644 --- a/createroom/createroom.js +++ b/createroom/createroom.js @@ -6,9 +6,6 @@ var CandyShop = (function(self) { return self; }(CandyShop || {})); CandyShop.CreateRoom = (function(self, Candy, $) { - self._options = { - domain: null - } /** Object: about * * Contains: @@ -23,18 +20,16 @@ CandyShop.CreateRoom = (function(self, Candy, $) { /** * Initializes the CreateRoom plugin with the default settings. */ - self.init = function(options){ - // apply the supplied options to the defaults specified - $.extend(true, self._options, options); - + self.init = function(){ $(Candy).on('candy:view.room.after-add', function() { - self.appendButton(); +// self.appendButton(); }); }; self.appendButton = function(){ if ($('#create-group').length === 0) { - $('#chat-tabs').after(self.Template.createButton); + var createRoomHtml = '