fixer la deconnexion

vnext
Paul Schneider 8 years ago
parent bb6b5d2eb7
commit 0077953174
1 changed files with 11 additions and 8 deletions

@ -100,7 +100,16 @@
);
};
$(document).ready(function(){
</script>
@if (!ViewBag.IsAuthenticated) { // Get the user name and store it to prepend to messages.
<script>
$('#displayname').val(prompt('Enter your name:', ''));
</script>
}
<script>
// Reference the auto-generated proxy for the hub.
var chat = $.connection.chatHub;
// Create a function that the hub can call back to display messages.
@ -222,12 +231,6 @@
}, 3000); // Re-start connection after 3 seconds
});
});
});
</script>
@if (!ViewBag.IsAuthenticated) { // Get the user name and store it to prepend to messages.
<script>
$('#displayname').val(prompt('Enter your name:', ''));
</script>
} }
}

Loading…