var records = hourIntervalGrid.getSelectionModel().getSelection();
var records = hourGrid.getSelectionModel().getSelection();
// Not logging already - enable the "start" button
if (1 == records.length) { // Exactly one record enabled
var record = records[0];
hourIntervalStore.remove(record);
hourStore.remove(record);
record.destroy();
}
...
...
@@ -444,17 +425,17 @@ function launchTimesheetIntervalLogging(){
buttonStartLogging.setDisabled(!isLeaf);
buttonAddEntry.setDisabled(!isLeaf);
// load the list of hourIntervals into the hourIntervalGrid
// load the list of hours into the hourGrid
var projectId = selectedTask.get('id');
hourIntervalStore.getProxy().extraParams = {
hourStore.getProxy().extraParams = {
query: 'project_id in (select p.project_id from im_projects p, im_projects main_p where main_p.project_id = '+projectId+' and p.tree_sortkey between main_p.tree_sortkey and tree_right(main_p.tree_sortkey))',