Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fiksa rom

  • Loading branch information...
commit 0ffdf9ea317ea22614406ab6753317a8d5f9f9f2 1 parent 06c64d0
@Overhead Overhead authored
View
BIN  JoMAR/App_Data/uploads/fnæ.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
37 JoMAR/Views/Rooms/Public.cshtml
@@ -21,26 +21,21 @@
<th></th>
</tr>
-
-
-<script type="text/javascript">
-
- window.setInterval(getRooms, 5000);
-
- $(document).ready(function () {
- getRooms()
- });
-
- function getRooms() {
- $.getJSON("/Jason/getRooms", function (data) {
- var html = '<tr><th> ChatRooms </th><th> Owner of room </th><th></th></tr>';
- var len = data.length;
- for (var i = 0; i < len; i++) {
- html += '<tr><td>' + data[i].Name + '</td><td>' + data[i].aspnet_User.UserName + '</td></tr>';
- }
- $('#chatRooms').html(html);
- });
+@foreach (JoMAR.ChatRoom item in Model)
+{
+ if (item.isPublic)
+ {
+ <tr>
+ <td>
+ @Html.DisplayFor(modelItem => item.Name)
+ </td>
+ <td>
+ @Html.DisplayFor(modelItem => item.aspnet_User.UserName)
+ </td>
+ <td>
+ @Html.ActionLink("Enter room", "", "Chat/" + item.Name)
+ </td>
+ </tr>
}
-
-</script>
+}
</table>
Please sign in to comment.
Something went wrong with that request. Please try again.