瀏覽代碼

bug fix attr-value to val()

master
patrick 5 年之前
父節點
當前提交
481c9a72bd
共有 4 個文件被更改,包括 22 次插入21 次删除
  1. +5
    -4
      css/bts_office.css
  2. +1
    -1
      html/timesheet.html
  3. +1
    -1
      html/timesheet_canvas_v1.html
  4. +15
    -15
      js/xeroc.js

+ 5
- 4
css/bts_office.css 查看文件

.titlebar_gradient { .titlebar_gradient {
/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f6e6b4+0,ed9017+100 */ /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f6e6b4+0,ed9017+100 */
background: rgb(246,230,180); /* Old browsers */ background: rgb(246,230,180); /* Old browsers */
background: -moz-linear-gradient(top, rgba(246,230,180,1) 0%, rgba(237,144,23,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(246,230,180,1) 0%,rgba(237,144,23,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(246,230,180,1) 0%,rgba(237,144,23,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
background: -moz-linear-gradient(top, rgba(246,230,180,1) 0%, rgba(249, 249, 249,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(246,230,180,1) 0%,rgba(249, 249, 249,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(246,230,180,1) 0%,rgba(249, 249, 249,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6e6b4', endColorstr='#ed9017',GradientType=0 ); /* IE6-9 */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6e6b4', endColorstr='#ed9017',GradientType=0 ); /* IE6-9 */

} }


.sheettitle h1:hover { .sheettitle h1:hover {
text-decoration: underline; text-decoration: underline;
font-weight: bolder; font-weight: bolder;
cursor: pointer; cursor: pointer;
animation: blinker 1s linear infinite;
/* animation: blinker 1s linear infinite; */
} }


.timesheets { .timesheets {

+ 1
- 1
html/timesheet.html 查看文件

</div> </div>
<div class='timesheets'> <div class='timesheets'>
<div class='sheettitle titlebar_gradient'> <div class='sheettitle titlebar_gradient'>
<h1>Web Office - Today:<span name='today'> Today </span> </h1>
<h1>Web Office 2019 -Today: <span name='today'> Today </span> <a style="float:right;margin-right:20px;" href="/office/"> (new verion 2020) </a> </h1>
</div> </div>
<div class='sheetsheader'> <div class='sheetsheader'>
<div class='weekly'> <div class='weekly'>

+ 1
- 1
html/timesheet_canvas_v1.html 查看文件

</div> </div>
<div class='timesheets'> <div class='timesheets'>
<div class='sheettitle titlebar_gradient'> <div class='sheettitle titlebar_gradient'>
<h1>Web Office - Today:<span name='today'> Today </span> &nbsp; &nbsp; <a style="float:right;margin-right:20px;" href="/time-sheets/"> (Old Version) </a> </h1>
<h1>Web Office 2020 - Today:<span name='today'> Today </span> <a style="float:right;margin-right:20px;" href="/time-sheets/"> (old verion 2019) </a></h1>
</div> </div>
<div class='sheetsheader'> <div class='sheetsheader'>
<div class='weekly'> <div class='weekly'>

+ 15
- 15
js/xeroc.js 查看文件

function set_payroll_calendar(cal) function set_payroll_calendar(cal)
{ {
$('#cstart').attr('value', cal.start);
$('#cfinish').attr('value', cal.finish);
$('#paydate').attr('value', cal.paydate);
$('#cstart').val(cal.start);
$('#cfinish').val(cal.finish);
$('#paydate').val(cal.paydate);
} }
function get_timesheet_from_xero(){ function get_timesheet_from_xero(){
function get_invoice_start() function get_invoice_start()
{ {
return $('#invoice_start').attr('value');
return $('#invoice_start').val();
} }
function get_invoice_finish() function get_invoice_finish()
{ {
return $('#invoice_finish').attr('value');
return $('#invoice_finish').val();
} }
$(document).on('click', 'td.client_nameonly', function(){ $(document).on('click', 'td.client_nameonly', function(){
var lastDay = new Date(date.getFullYear(), var lastDay = new Date(date.getFullYear(),
date.getMonth(), daysInMonth(date.getMonth()+1, date.getMonth(), daysInMonth(date.getMonth()+1,
date.getFullYear())); date.getFullYear()));
$('#invoice_start').attr('value', format_date(firstDay));
$('#invoice_finish').attr('value', format_date(lastDay));
$('#invoice_start').val(format_date(firstDay));
$('#invoice_finish').val(format_date(lastDay));
} }
$('#invoice_start').change(function(){ $('#invoice_start').change(function(){
var lastDay = new Date(date.getFullYear(), var lastDay = new Date(date.getFullYear(),
date.getMonth(), daysInMonth(date.getMonth()+1, date.getMonth(), daysInMonth(date.getMonth()+1,
date.getFullYear())); date.getFullYear()));
$('#ndis_start').attr('value', format_date(firstDay));
$('#ndis_finish').attr('value', format_date(lastDay));
$('#ndis_start').val(format_date(firstDay));
$('#ndis_finish').val(format_date(lastDay));
$('input[name="start"]').attr('value', format_date(firstDay));
$('input[name="finish"]').attr('value', format_date(lastDay));
$('input[name="start"]').val( format_date(firstDay));
$('input[name="finish"]').attr( format_date(lastDay));
} }
function setup_clients_pick() function setup_clients_pick()
{ {
} }
$('#ndis_start').change(function(e){ $('#ndis_start').change(function(e){
var val = $(this).attr('value');
$('input[name="start"]').attr('value', val);
var val = $(this).val();
$('input[name="start"]').val(val);
}); });


$('#ndis_finish').change(function(e){ $('#ndis_finish').change(function(e){
var val = $(this).attr('value');
$('input[name="finish"]').attr('value', val);
var val = $(this).val();
$('input[name="finish"]').val(val);
}); });
$(document).on('click', 'input.client_check', function(e){ $(document).on('click', 'input.client_check', function(e){

Loading…
取消
儲存