Upcoming Service Reminders

This commit is contained in:
2015-10-22 09:05:42 -04:00
parent 93065de77f
commit 25fb070701
14 changed files with 88 additions and 53 deletions
+29 -9
View File
@@ -32,7 +32,7 @@ $(function () {
$("input#ModelYear,input#Price,input#VehicleId,input#EndOdometer,input#GasPurchased").numeric();
$(".report-miles").append('&nbsp;<span class="muted">&#9652;</span>').each(function () {
$(".report-miles").append('&nbsp;<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('&nbsp;<span class="muted">&#9652;</span>').qtip({
$('span[title]').append('&nbsp;<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('&nbsp;<span class="muted">&#9652;</span>')
$(".miles-unknown").addClass('label label-warning').append('&nbsp;<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('&nbsp;<span class="muted">&#9652;</span>');
element.append('&nbsp;<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...
}
});
});
});
/*