Upcoming Service Reminders
This commit is contained in:
@@ -32,7 +32,7 @@ $(function () {
|
||||
|
||||
$("input#ModelYear,input#Price,input#VehicleId,input#EndOdometer,input#GasPurchased").numeric();
|
||||
|
||||
$(".report-miles").append(' <span class="muted">▴</span>').each(function () {
|
||||
$(".report-miles").append(' <span class="muted"><i class="fa fa-caret-down"></i></span>').each(function () {
|
||||
var content = $(this).next('.report-calculation');
|
||||
$(this).qtip({
|
||||
content: content,
|
||||
@@ -52,14 +52,14 @@ $(function () {
|
||||
});
|
||||
|
||||
// add popup for span titles
|
||||
$('span[title]').append(' <span class="muted">▴</span>').qtip({
|
||||
$('span[title]').append(' <span class="muted"><i class="fa fa-caret-down"></i></span>').qtip({
|
||||
content: {
|
||||
text: false // Use each elements title attribute
|
||||
},
|
||||
style: { classes: "qtip-light" } // Give it some style
|
||||
});
|
||||
|
||||
$(".miles-unknown").addClass('label label-warning').append(' <span class="muted">▴</span>')
|
||||
$(".miles-unknown").addClass('label label-warning').append(' <span class="muted"><i class="fa fa-caret-down"></i></span>')
|
||||
.each(function () {
|
||||
$(this).qtip({
|
||||
content: "No previous log for this vehicle",
|
||||
@@ -179,11 +179,11 @@ $(function() {
|
||||
// Add active class to nav
|
||||
$(function() {
|
||||
var idNavActiveRegex = {
|
||||
'fuellog-nav': /\/fuellog/i,
|
||||
'log-nav': /\/log/i,
|
||||
'vehicle-nav': /\/vehicle|\/servicereminder/i,
|
||||
'vehicle-nav': /\/vehicle|\/servicereminder|\/fuellog/i,
|
||||
'user-nav': /\/user/i,
|
||||
'config-nav': /\/City|\/Purpose/i
|
||||
'config-nav': /\/City|\/Purpose/i,
|
||||
'account-nav': /\/Account/i
|
||||
};
|
||||
var set = false;
|
||||
$.each(idNavActiveRegex, function (id, regex) {
|
||||
@@ -220,11 +220,11 @@ function addButtonIcons () {
|
||||
'Vehicle': 'car',
|
||||
'Reminder': 'clock-o',
|
||||
'Fuel Logs': 'tachometer',
|
||||
'Users': 'user',
|
||||
'Users': 'users',
|
||||
'Logs': 'road'
|
||||
};
|
||||
$.each(textToIcon, function(text, icon) {
|
||||
$("a:contains('" + text + "'):not(:has(i))")
|
||||
$("a:contains('" + text + "'):not(:has(i:first-child))")
|
||||
.prepend('<i class="fa fa-'+ icon +'"></i> ');
|
||||
});
|
||||
|
||||
@@ -278,7 +278,7 @@ $(function() {
|
||||
|
||||
element.click(function() { return false; });
|
||||
|
||||
element.append(' <span class="muted">▴</span>');
|
||||
element.append(' <span class="muted"><i class="fa fa-caret-down"></i></span>');
|
||||
|
||||
element.qtip({
|
||||
content: {
|
||||
@@ -300,6 +300,26 @@ $(function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('.qtip-show-next-div').each(function () {
|
||||
$(this).qtip({
|
||||
content: {
|
||||
text: $(this).next('div')
|
||||
},
|
||||
hide: {
|
||||
fixed: true,
|
||||
delay: 500
|
||||
},
|
||||
style: {
|
||||
classes: 'qtip-light qtip-shadow qtip-override',
|
||||
width: false
|
||||
},
|
||||
position: {
|
||||
my: 'top left', // Position my top left...
|
||||
at: 'bottom left', // at the bottom right of...
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user