|
|
|
@ -4,6 +4,7 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
|
|
|
var table = $('table#list-docs'); |
|
|
|
var table = $('table#list-docs'); |
|
|
|
var doc_rows = $('tr.doc-row', table); |
|
|
|
var doc_rows = $('tr.doc-row', table); |
|
|
|
|
|
|
|
var doc_rows_click = $('tr.doc-row td.clck', table); |
|
|
|
var panels = $('.doc-panel'); |
|
|
|
var panels = $('.doc-panel'); |
|
|
|
var row_pointer = $('#row_pointer'); |
|
|
|
var row_pointer = $('#row_pointer'); |
|
|
|
|
|
|
|
|
|
|
|
@ -55,12 +56,6 @@ $(document).ready(function() { |
|
|
|
return $('#'+panel_id); |
|
|
|
return $('#'+panel_id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
doc_rows.click(function(e){ |
|
|
|
|
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
var link = $($(this).find('a')[0]).attr('href'); |
|
|
|
|
|
|
|
console.log(link); |
|
|
|
|
|
|
|
location.replace(link); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
$('.toggle_doc_status').on('click', function(e){ |
|
|
|
$('.toggle_doc_status').on('click', function(e){ |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
$this = $(this); |
|
|
|
$this = $(this); |
|
|
|
@ -75,6 +70,12 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doc_rows_click.click(function(e){ |
|
|
|
|
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
var link = $($(this).parent().find('a')[0]).attr('href'); |
|
|
|
|
|
|
|
console.log(link); |
|
|
|
|
|
|
|
location.replace(link); |
|
|
|
|
|
|
|
}) |
|
|
|
$('.toggle_invoice_closed').on('click', function(e){ |
|
|
|
$('.toggle_invoice_closed').on('click', function(e){ |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
alert(1); |
|
|
|
alert(1); |
|
|
|
|