-
[bts_tos_options]
+
+
+
-
hours
+
[bts_hours_options]
[bts_select_staff]
[bts_select_client]
diff --git a/js/bts_timesheet.js b/js/bts_timesheet.js
index 3b07657..ff8781c 100644
--- a/js/bts_timesheet.js
+++ b/js/bts_timesheet.js
@@ -228,9 +228,14 @@
var html = jQuery("#job_item").html();
jQuery('div.workspace').append(html);
}
- dtp_init();
+ reset_date_time_picker();
});
+ function reset_date_time_picker(){
+ //$('div.xdsoft_datetimepicker.xdsoft_noselect.xdsoft_default').remove();
+ dtp_init();
+ }
+
$(document).on('click', 'div.divTableCell.bdelete', function(){
$(this).closest('div.divTable').remove();
});
diff --git a/ts.php b/ts.php
index 5f0eb20..2273564 100644
--- a/ts.php
+++ b/ts.php
@@ -34,7 +34,9 @@ class AcareOffice{
add_shortcode( 'bts_staff_item', array($this, 'bts_staff_item'));
add_shortcode( 'bts_client_item', array($this, 'bts_client_item'));
add_shortcode( 'bts_job_item', array($this, 'bts_job_item'));
- add_shortcode( 'bts_tos_options', array($this, 'bts_tos_options'));
+ add_shortcode( 'bts_hours_options', array($this, 'bts_hours_options'));
+ add_shortcode( 'bts_select_staff', array($this, 'bts_select_staff'));
+ add_shortcode( 'bts_select_client', array($this, 'bts_select_client'));
add_action('wp_ajax_list_staff', array($this,'list_staff' ));
add_action('wp_ajax_list_client', array($this,'list_client' ));
@@ -138,7 +140,7 @@ class AcareOffice{
return $html;
}
- public function bts_tos_options($attr){
+ public function bts_hours_options($attr){
$result = "