mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Code clean up.
This commit is contained in:
2
public/js/ff/export/index.js
vendored
2
public/js/ff/export/index.js
vendored
@@ -120,7 +120,7 @@ function callExport() {
|
||||
var response = jqXHR.responseJSON;
|
||||
var errorText = 'The export failed. Please check the log files to find out why.';
|
||||
if (typeof response === 'object') {
|
||||
errorText =response.message;
|
||||
errorText = response.message;
|
||||
}
|
||||
|
||||
showError(errorText);
|
||||
|
2
public/js/ff/intro/intro.js
vendored
2
public/js/ff/intro/intro.js
vendored
@@ -42,5 +42,5 @@ function setupIntro(steps) {
|
||||
}
|
||||
|
||||
function reportIntroFinished() {
|
||||
$.post(routeForFinishedTour, {_token:token});
|
||||
$.post(routeForFinishedTour, {_token: token});
|
||||
}
|
2
public/js/ff/rules/index.js
vendored
2
public/js/ff/rules/index.js
vendored
@@ -58,7 +58,7 @@ function testRuleTriggers(e) {
|
||||
var obj = $(e.target);
|
||||
var ruleId = parseInt(obj.data('id'));
|
||||
var icon = obj;
|
||||
if(obj.prop("tagName") === 'A') {
|
||||
if (obj.prop("tagName") === 'A') {
|
||||
icon = $('i', obj);
|
||||
}
|
||||
// change icon:
|
||||
|
11
public/js/ff/tags/show.js
vendored
11
public/js/ff/tags/show.js
vendored
@@ -31,7 +31,14 @@ $(function () {
|
||||
*/
|
||||
|
||||
// make map:
|
||||
var mymap = L.map('tag_location_map', {zoomControl: false, touchZoom: false, doubleClickZoom: false, scrollWheelZoom: false, boxZoom: false, dragging: false}).setView([latitude, longitude], zoomLevel);
|
||||
var mymap = L.map('tag_location_map', {
|
||||
zoomControl: false,
|
||||
touchZoom: false,
|
||||
doubleClickZoom: false,
|
||||
scrollWheelZoom: false,
|
||||
boxZoom: false,
|
||||
dragging: false
|
||||
}).setView([latitude, longitude], zoomLevel);
|
||||
|
||||
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
|
||||
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',
|
||||
@@ -40,7 +47,7 @@ $(function () {
|
||||
accessToken: mapboxToken
|
||||
}).addTo(mymap);
|
||||
|
||||
if(doPlaceMarker) {
|
||||
if (doPlaceMarker) {
|
||||
var marker = L.marker([latitude, longitude]).addTo(mymap);
|
||||
}
|
||||
}
|
||||
|
2
public/js/ff/transactions/show.js
vendored
2
public/js/ff/transactions/show.js
vendored
@@ -30,7 +30,7 @@ $(function () {
|
||||
source: data,
|
||||
autoSelect: true
|
||||
});
|
||||
$input.change(function() {
|
||||
$input.change(function () {
|
||||
var current = $input.typeahead("getActive");
|
||||
if (current) {
|
||||
// Some item from your model is active!
|
||||
|
Reference in New Issue
Block a user