Ver código fonte

version 1 job disable editing started

master
patrick 6 anos atrás
pai
commit
40cfe03e60
1 arquivos alterados com 16 adições e 0 exclusões
  1. +16
    -0
      js/bts_office.js

+ 16
- 0
js/bts_office.js Ver arquivo

@@ -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(){

Carregando…
Cancelar
Salvar