Adding warning message when navigation needs to be saved

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2012-05-18 17:29:00 -07:00
parent 2e5b8fb295
commit c59709d68c
3 changed files with 9 additions and 2 deletions

View File

@ -37,6 +37,7 @@
stop: function (event, ui) {
// update all positions whenever a menu item was moved
populate(this, '');
$('#save-message').show();
}
});

View File

@ -1,4 +1,8 @@
.navigation-menu ol ol {
#save-message {
display: none;
}
.navigation-menu ol ol {
margin: 0;
padding: 0;
padding-left: 30px; /* gap between each level */
@ -30,7 +34,7 @@
}
.navigation-menu li div:hover {
background: #eee url(images/move.gif) no-repeat 8px 8px;
background: #eee url(images/move.gif) no-repeat 9px 7px;
border: 1px solid #487328;
}

View File

@ -11,6 +11,8 @@
Script.Include("navigation-admin.js");
}
<div id="save-message" class="message message-Warning">@T("You need to hit \"Save All\" in order to save your changes.")</div>
<div id="display-menu-controls">
@if (Model.Menus.Any()) {
using (Html.BeginForm("Index", "Admin", FormMethod.Get, new { area = "Navigation" })) {