Notifications display
This commit is contained in:
@ -93,11 +93,10 @@ $(document).ready(function(){
|
||||
|
||||
<nav data-type="background" data-speed="2">
|
||||
<% if (Membership.GetUser()==null) { %>
|
||||
<a href="<%= Url.Content("~/Account/Login/?returnUrl=") + Url.Encode( Request.Url.PathAndQuery )%>" >
|
||||
<div class="menuitem">
|
||||
<a href="<%= Url.RouteUrl("Default", new { controller = "Account", action="Login", returnUrl=Request.Url.PathAndQuery } ) %>" class="menuitem">
|
||||
|
||||
<i class="fa fa-sign-in"></i> Connexion
|
||||
<div class="hint">Pour pouvoir commenter, publier, facturer</div>
|
||||
</div>
|
||||
<div class="hint">Pour pouvoir commenter, publier, facturer, partager en cercles privés ...</div>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<a href="/Blog/<%= HttpContext.Current.User.Identity.Name%>" accesskey = "B" class="menuitem">
|
||||
|
@ -18,11 +18,17 @@ self.showHide = function () {
|
||||
}
|
||||
};
|
||||
|
||||
self.message = function (msg) {
|
||||
if (msg) {
|
||||
$("#message").removeClass("hidden");
|
||||
$("#message").text(msg);
|
||||
} else { $("#message").addClass("hidden"); } };
|
||||
self.dimiss = function () {
|
||||
$(this).parent().remove();
|
||||
};
|
||||
|
||||
self.notice = function (msg, msgok) {
|
||||
if (!msgok) msgok='Ok';
|
||||
if (msg) {
|
||||
var note = $('<div class="notification">'+msg+'<br></div>');
|
||||
$('<a class="actionlink"><i class="fa fa-check">'+msgok+'</i></a>').click(self.dimiss).appendTo(note);
|
||||
note.appendTo("#notifications");
|
||||
} };
|
||||
|
||||
|
||||
self.onAjaxBadInput = function (data)
|
||||
@ -36,13 +42,14 @@ self.message = function (msg) {
|
||||
errspan.innerHTML=value.errors.join("<br/>");
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
self.onAjaxError = function (xhr, ajaxOptions, thrownError) {
|
||||
if (xhr.status!=400)
|
||||
Yavsc.message(xhr.status+" : "+xhr.responseText);
|
||||
else Yavsc.message(false);
|
||||
}
|
||||
|
||||
Yavsc.notice(xhr.status+" : "+xhr.responseText);
|
||||
else Yavsc.notice(false);
|
||||
};
|
||||
|
||||
return self;
|
||||
})();
|
||||
|
||||
|
BIN
web/images/helix-nebula-1400x1400.l.jpg
Normal file
BIN
web/images/helix-nebula-1400x1400.l.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
Reference in New Issue
Block a user