瀏覽代碼

version 1 job disable editing started

master
patrick 6 年之前
父節點
當前提交
40cfe03e60
共有 1 個檔案被更改,包括 16 行新增0 行删除
  1. +16
    -0
      js/bts_office.js

+ 16
- 0
js/bts_office.js 查看文件

@@ -301,6 +301,22 @@
});

function get_workspace_start_date(){
return new Date($('span[name="w1d1"]').data().date) ;
}
function get_payroll_start()
{
return new Date(bts().pay_calendar.start + " 00:00:00");
}
function allow_editing(job){
if (! job instanceof Job)
return false;

//TODO:
var begin = new Date(date);
var pay_begin = get_payroll_start();
return date > pay_begin;
}
// $(document).on('click', 'div.bts_editor div.ult-overlay-close', function(){
// $('.Editing').addClass('blink_me');
// setTimeout(function(){

Loading…
取消
儲存