Commit 8c421f6c by Kim Peace

Added room name placeholder for room name change

parent 4d823d3b
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
<script src="./js/Models/deviceinfo.js"></script> <script src="./js/Models/deviceinfo.js"></script>
<script src="./js/Models/serverinfo.js"></script> <script src="./js/Models/serverinfo.js"></script>
<script src="./js/Models/userinfo.js"></script> <script src="./js/Models/userinfo.js"></script>
<script src="./js/Models/roominfo.js"></script>
<!-- View --> <!-- View -->
<script src="./js/views/chats/chat-room.js"></script> <script src="./js/views/chats/chat-room.js"></script>
<script src="./js/views/chats/chat-room-search.js"></script> <script src="./js/views/chats/chat-room-search.js"></script>
......
...@@ -5,6 +5,7 @@ document.addEventListener("DOMContentLoaded", function () { ...@@ -5,6 +5,7 @@ document.addEventListener("DOMContentLoaded", function () {
$(".change_room_name_btn button").click(function () { $(".change_room_name_btn button").click(function () {
$("form").submit(); $("form").submit();
}); });
$("#roomNameInput").attr("placeholder", roomInfo.roomName);
}); });
$("#roomNameChangeBtn").click(function () { $("#roomNameChangeBtn").click(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment