mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed issue initially showing expenses for vendor
This commit is contained in:
parent
6d5b99551c
commit
1e44929883
18
resources/views/vendors/show.blade.php
vendored
18
resources/views/vendors/show.blade.php
vendored
@ -174,22 +174,8 @@
|
||||
window.location = '{{ URL::to('expenses/create/' . $vendor->public_id ) }}';
|
||||
});
|
||||
|
||||
// load datatable data when tab is shown and remember last tab selected
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
var target = $(e.target).attr("href") // activated tab
|
||||
target = target.substring(1);
|
||||
localStorage.setItem('vendor_tab', target);
|
||||
if (!loadedTabs.hasOwnProperty(target)) {
|
||||
loadedTabs[target] = true;
|
||||
window['load_' + target]();
|
||||
}
|
||||
});
|
||||
var tab = localStorage.getItem('vendor_tab');
|
||||
if (tab && tab != 'activity') {
|
||||
$('.nav-tabs a[href="#' + tab.replace('#', '') + '"]').tab('show');
|
||||
} else {
|
||||
//window['load_activity']();
|
||||
}
|
||||
$('.nav-tabs a[href="#expenses"]').tab('show');
|
||||
load_expenses();
|
||||
});
|
||||
|
||||
function onArchiveClick() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user