Added icon to edit
Added edit link to success notification
This commit is contained in:
+19
-15
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user