Added icon to edit

Added edit link to success notification
This commit is contained in:
2014-01-21 15:11:10 -05:00
parent 9c2149d52c
commit 0ef5199048
4 changed files with 31 additions and 19 deletions
+19 -15
View File
@@ -103,24 +103,28 @@ $(function() {
});
});
$(function () {
var textToIcon = {
'Edit': 'edit',
'Filter': 'filter',
'Details' : 'zoom-in',
'Delete': 'trash',
'Add': 'plus',
'Export': 'download',
'Driver Mileage': 'user',
'Vehicle Mileage': 'car'
};
$.each(textToIcon, function(text, icon) {
$("a:contains('" + text + "')")
function addButtonIcons () {
var textToIcon = {
'Edit': 'edit',
'Filter': 'filter',
'Details' : 'zoom-in',
'Delete': 'trash',
'Add': 'plus',
'Export': 'download',
'Driver Mileage': 'user',
'Vehicle Mileage': 'car'
};
$.each(textToIcon, function(text, icon) {
$("a:contains('" + text + "'):not(:has(i))")
.prepend('<i class="icon-' + icon + '" /> ');
});
});
$(".navbar-inverse a[title='Manage']")
$(".navbar-inverse a[title='Manage']:not(:has(i))")
.prepend('<i class="icon-user icon-white" /> ');
}
$(function () {
addButtonIcons();
});
// Convert MVC3 WebGrid paging to Bootstrap