wip - refacts
This commit is contained in:
parent
660959819e
commit
736e46e800
68 changed files with 577 additions and 9832 deletions
|
|
@ -1,15 +1,15 @@
|
|||
@model Yavsc.Models.Haircut.BrusherProfile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
ViewData["Title"] = "Edition du profile coiffeu(se|r)";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>BrusherProfile</h4>
|
||||
<hr />
|
||||
@Html.ValidationSummary()
|
||||
<fieldset><legend>Disponibilité</legend>
|
||||
<div class="form-group">
|
||||
<label asp-for="StartOfTheDay" class="col-md-2 control-label"></label>
|
||||
|
|
@ -35,8 +35,10 @@
|
|||
</fieldset>
|
||||
|
||||
<fieldset><legend>Grille tarifaire</legend>
|
||||
<h2>Divers</h2>
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="CarePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
@ -45,19 +47,17 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<label asp-for="ShampooPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="HalfBalayagePrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfBrushingPrice" class="text-danger" />
|
||||
<input asp-for="ShampooPrice" class="form-control" />
|
||||
<span asp-validation-for="ShampooPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<h2>Techniques</h2>
|
||||
<h3>Couleurs</h3>
|
||||
|
||||
<h4>Simple</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
@ -65,55 +65,6 @@
|
|||
<span asp-validation-for="HalfColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfDefrisPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfMechPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfMechPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfMultiColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfMultiColorPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfMultiColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfPermanentPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="KidCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="KidCutPrice" class="form-control" />
|
||||
<span asp-validation-for="KidCutPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="LongBalayagePrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="LongBrushingPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
@ -121,62 +72,6 @@
|
|||
<span asp-validation-for="LongColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="LongDefrisPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongMechPrice" class="form-control" />
|
||||
<span asp-validation-for="LongMechPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongMultiColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongMultiColorPrice" class="form-control" />
|
||||
<span asp-validation-for="LongMultiColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="LongPermanentPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ManCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ManCutPrice" class="form-control" />
|
||||
<span asp-validation-for="ManCutPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShampooPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShampooPrice" class="form-control" />
|
||||
<span asp-validation-for="ShampooPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="ShortBalayagePrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortBrushingPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
@ -184,18 +79,21 @@
|
|||
<span asp-validation-for="ShortColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4>Multi-couleur</h4>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<label asp-for="HalfMultiColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortDefrisPrice" class="text-danger" />
|
||||
<input asp-for="HalfMultiColorPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfMultiColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortMechPrice" class="col-md-2 control-label"></label>
|
||||
<label asp-for="LongMultiColorPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortMechPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortMechPrice" class="text-danger" />
|
||||
<input asp-for="LongMultiColorPrice" class="form-control" />
|
||||
<span asp-validation-for="LongMultiColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
@ -205,34 +103,55 @@
|
|||
<span asp-validation-for="ShortMultiColorPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Balayage</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<label asp-for="HalfBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortPermanentPrice" class="text-danger" />
|
||||
<input asp-for="HalfBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="HalfBalayagePrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenHalfCutPrice" class="col-md-2 control-label"></label>
|
||||
<label asp-for="LongBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenHalfCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenHalfCutPrice" class="text-danger" />
|
||||
<input asp-for="LongBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="LongBalayagePrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenLongCutPrice" class="col-md-2 control-label"></label>
|
||||
<label asp-for="ShortBalayagePrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenLongCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenLongCutPrice" class="text-danger" />
|
||||
<input asp-for="ShortBalayagePrice" class="form-control" />
|
||||
<span asp-validation-for="ShortBalayagePrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<h2>Coiffage</h2>
|
||||
<h3>Brushing</h3>
|
||||
<h4>Pour la femme</h4>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfBrushingPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenShortCutPrice" class="col-md-2 control-label"></label>
|
||||
<label asp-for="LongBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenShortCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenShortCutPrice" class="text-danger" />
|
||||
<input asp-for="LongBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="LongBrushingPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortBrushingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortBrushingPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortBrushingPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<h4>Pour l'homme</h4>
|
||||
<div class="form-group">
|
||||
<label asp-for="ManBrushPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
@ -240,6 +159,9 @@
|
|||
<span asp-validation-for="ManBrushPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Mise en plis</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="LongFoldingPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
@ -261,6 +183,118 @@
|
|||
<span asp-validation-for="ShortFoldingPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Défrisage</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfDefrisPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="LongDefrisPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortDefrisPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortDefrisPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortDefrisPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>Mèches</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfMechPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfMechPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongMechPrice" class="form-control" />
|
||||
<span asp-validation-for="LongMechPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortMechPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortMechPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortMechPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>Permanentes</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="HalfPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="HalfPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="HalfPermanentPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LongPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LongPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="LongPermanentPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ShortPermanentPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ShortPermanentPrice" class="form-control" />
|
||||
<span asp-validation-for="ShortPermanentPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Coupes</h2>
|
||||
<h3>Femme</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenHalfCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenHalfCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenHalfCutPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenLongCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenLongCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenLongCutPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="WomenShortCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="WomenShortCutPrice" class="form-control" />
|
||||
<span asp-validation-for="WomenShortCutPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<h3>Homme et enfant</h3>
|
||||
<div class="form-group">
|
||||
<label asp-for="KidCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="KidCutPrice" class="form-control" />
|
||||
<span asp-validation-for="KidCutPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ManCutPrice" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ManCutPrice" class="form-control" />
|
||||
<span asp-validation-for="ManCutPrice" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<h2>Le forfait</h2>
|
||||
<div class="form-group">
|
||||
<label asp-for="FlatFeeDiscount" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
|
|||
|
|
@ -169,10 +169,9 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<label for="Reason" class="col-md-2 control-label">
|
||||
@SR["GiveAnExplicitReason"]
|
||||
</label>
|
||||
<label asp-for="Reason" class="col-md-2 control-label">
|
||||
@SR["GiveAnExplicitReason"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@
|
|||
gtarif=tarifs[1];
|
||||
} else gtarif=tarifs[2];
|
||||
}
|
||||
onTarif(tarifs[0]);
|
||||
updateTarif();
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,27 +1,6 @@
|
|||
@{ ViewBag.Title = "Chat"; }
|
||||
<h2>Chat </h2>
|
||||
<label><input type="checkbox" id="mute" />Muet</label>
|
||||
<style>
|
||||
.discussion {
|
||||
color: white;
|
||||
font-family: monospace;
|
||||
}
|
||||
.notif {
|
||||
color: #aaf;
|
||||
font-family: monospace;
|
||||
}
|
||||
.pv {
|
||||
color: yellow;
|
||||
font-family: monospace;
|
||||
font-style: bold;
|
||||
}
|
||||
|
||||
#targets {
|
||||
display:inline-block;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
<input type="hidden" id="displayname" />
|
||||
|
|
@ -36,15 +15,26 @@
|
|||
</div>
|
||||
<ul id="discussion">
|
||||
</ul>
|
||||
<div id="targets">
|
||||
<div id="targets" >
|
||||
<div id="sendmessagebox">
|
||||
<input type="text" id="message" class="form-control"/>
|
||||
<div class="col-md-10">
|
||||
<div class="row">
|
||||
<div class='col-sm-9'> <input type="text" id="message" class="form-control"/></div>
|
||||
<div class='col-sm-3'>
|
||||
<input type="button" id="sendmessage" value="@SR["Send"]" class="btn btn-default"/>
|
||||
</div></div></div>
|
||||
</div>
|
||||
@if (ViewBag.IsAuthenticated) {
|
||||
<div id="sendpvbox">
|
||||
<input type="text" id="pv" class="form-control" />
|
||||
<button type="submit" id="sendpv" class="btn btn-default">@SR["Send a private message"] @SR["to"] <div id="sendpvdest" /> </button>
|
||||
<div class="col-md-10">
|
||||
<div class="row">
|
||||
<div class='col-sm-9'>
|
||||
<input type="text" id="pv" class="form-control" />
|
||||
</div>
|
||||
<div class='col-sm-3'>
|
||||
<button type="submit" id="sendpv" class="btn btn-default">@SR["Send a private message"] @SR["to"]
|
||||
<div id="sendpvdest" /> </button>
|
||||
</div></div></div>
|
||||
</div>
|
||||
}
|
||||
<input type="hidden" id="mySignalRConnectionIdHidden" value="" />
|
||||
|
|
@ -110,7 +100,7 @@
|
|||
chat.client.addMessage = function (name, message) {
|
||||
// Add the message to the page.
|
||||
$('#discussion').append('<li class="discussion"><strong>' + htmlEncode(name)
|
||||
+ '</strong>: ' + htmlEncode(message) + '</li>');
|
||||
+ '</strong>: ' + htmlEncode(message) + '</li>')
|
||||
};
|
||||
chat.client.addPV = function (name, message) {
|
||||
if (!$("#mute").prop('checked'))
|
||||
|
|
@ -141,14 +131,14 @@
|
|||
if (connected.length > 0) {
|
||||
var ids = connected.data("cxids");
|
||||
ids.push(cxid);
|
||||
connected.data("cxids", ids);
|
||||
connected.data("cxids", ids)
|
||||
} else {
|
||||
var li = $('<li class="user"><img src="/Avatars/' + username + '.xs.png"> ' + username + '</li>');
|
||||
li.data("name", username);
|
||||
li.data("cxids", [cxid]);
|
||||
li.appendTo('#userlist');
|
||||
li.css('cursor', 'pointer');
|
||||
li.click(function () { setPrivate(this); });
|
||||
li.click(function () { setPrivate(this); })
|
||||
}
|
||||
};
|
||||
chat.client.notify = function (tag, message, data) {
|
||||
|
|
@ -158,16 +148,16 @@
|
|||
if (tag === 'connected') {
|
||||
onUserConnected(message, data);
|
||||
$('#discussion').append('<li class="notif"><i>' + htmlEncode(tag)
|
||||
+ '</i> ' + htmlEncode(data) + '</li>');
|
||||
+ '</i> ' + htmlEncode(data) + '</li>')
|
||||
}
|
||||
else if (tag === 'disconnected') {
|
||||
onUserDisconnected(message, data);
|
||||
$('#discussion').append('<li class="notif"><i>' + htmlEncode(tag)
|
||||
+ '</i> ' + htmlEncode(data) + '</li>');
|
||||
+ '</i> ' + htmlEncode(data) + '</li>')
|
||||
}
|
||||
else {
|
||||
$('#discussion').append('<li class="notif"><i>' + htmlEncode(tag)
|
||||
+ '</i> ' + htmlEncode(message) + ' : ' + htmlEncode(data) + '</li>');
|
||||
+ '</i> ' + htmlEncode(message) + ' : ' + htmlEncode(data) + '</li>')
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -195,7 +185,8 @@
|
|||
$.connection.hub.start().done(function () {
|
||||
$('#sendmessage').click(function () {
|
||||
// Call the Send method on the hub.
|
||||
sendMessage().focus();
|
||||
sendMessage();
|
||||
$('#message').focus();
|
||||
});
|
||||
$("#message").keydown(function (event) {
|
||||
if (event.which == 13) {
|
||||
|
|
@ -214,7 +205,7 @@
|
|||
});
|
||||
|
||||
getUsers();
|
||||
});
|
||||
}).fail(function (e) {console.log(e) });
|
||||
|
||||
$("#btnDebug").click(getUsers);
|
||||
$.connection.hub.disconnected(function () {
|
||||
|
|
|
|||
|
|
@ -7,13 +7,17 @@
|
|||
<title>@ViewData["Title"] - @SiteSettings.Value.Title</title>
|
||||
|
||||
<environment names="Development">
|
||||
<link rel="stylesheet" href="~/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
<link rel="stylesheet" href="~/css/jquery-ui.css" />
|
||||
<link rel="stylesheet" href="~/css/main/bootstrap.css" />
|
||||
<link rel="stylesheet" href="~/css/main/site.css" />
|
||||
<link rel="stylesheet" href="~/css/main/jquery-ui.css" />
|
||||
<link rel="alternate stylesheet" title="Dark" href="~/css/dark/site.css" asp-append-version="true" />
|
||||
<link rel="alternate stylesheet" title="Clear" href="~/css/clear/site.css" asp-append-version="true" />
|
||||
</environment>
|
||||
|
||||
<environment names="Staging,Production,yavsc,yavscpre,zicmoove,lua">
|
||||
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/csslib/site.min.css" asp-append-version="true" />
|
||||
</environment>
|
||||
|
||||
<environment names="Development">
|
||||
<script src="~/js/jquery.js"></script>
|
||||
<script src="~/js/jquery-ui.js"></script>
|
||||
|
|
@ -32,6 +36,10 @@
|
|||
<script src="~/js/jquery-ui.js"></script>
|
||||
<script src="~/js/site.js"></script>
|
||||
</environment>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="~/js/jquery.signalR-2.2.1.js"></script>
|
||||
<style>
|
||||
nav {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue