Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arch1tect committed Mar 13, 2016
1 parent 8499ad1 commit 473d755
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dev/client/controlpanel/controllers/scriptController.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}

// need to scroll down to really see this message
window.scrollTo(0,document.body.scrollHeight);
// window.scrollTo(0,document.body.scrollHeight);
});

});
Expand Down
6 changes: 5 additions & 1 deletion dev/client/controlpanel/style/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,13 @@ div#socketchatbox-online {}
/*border-top: 1px solid lightgray;*/
}

.table {

background: #F6F6F6 !important;
}

.socketchatbox-userdetail {
border: 1px solid lightgray;
/*border: 1px solid lightgray;*/
background: #FFFFFF;
margin-top: 20px;
display:none;
Expand Down
8 changes: 4 additions & 4 deletions dev/client/controlpanel/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@
<div class="socketchatbox-scriptHistoryScript"></div>
</div>
<textarea placeholder="Type script here..." rows="3" cols="50"></textarea>
<button id='sendScript'>Send Script!</button>
<div id="socketchatbox-scriptSentStatus"></div>

<button id='sendScript'>Send Script!</button>

</div>

<br/><br/>
Expand Down Expand Up @@ -143,11 +144,10 @@


</div>

<br/><br/>


</div>

<br/><br/>

</div>

Expand Down
2 changes: 1 addition & 1 deletion dev/server/handlers/adminHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ adminHandler.sendCommand = function (io, inToken, userIDList, socketIDList, comm
// TODO: need to double check if target user/sockets are in the room as room Admin
if(inToken === token || roomHandler.validToken(inToken)) {

adminHandler.log('Received command from admin, type: ' + commandType);
adminHandler.log('Received command from admin (' + commandType + ')');

// handle individual sockets
for (var i = 0; i < socketIDList.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion dev/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ io.on('connection', function (socket) {
// when the client emits 'new message', this listens and executes
socket.on('new message', function (data) {

msgHandler.receiveMsg(socket, data.msg);
io.in(socket.user.roomID).emit('new message', {//send to everybody including sender
username: socket.user.username,
message: data.msg
});
msgHandler.receiveMsg(socket, data.msg);

});

Expand Down

0 comments on commit 473d755

Please sign in to comment.