library new_task;

import 'dart:html';
import 'package:ddays/task.dart' show Task;
import 'package:ddays/storageservice.dart' show saveToStorage, STORAGE_KEY;

void saveTask(Event e) {
  e.preventDefault();
  InputElement summary = querySelector('[name="tsummary"]');
  Task task = new Task(summary.value.trim());
  
  
}
library new_task;

import 'dart:html';
import 'package:ddays/task.dart' show Task;
import 'package:ddays/storageservice.dart' show saveToStorage, STORAGE_KEY;
import 'package:ddays/list_tasks.dart' show displayTasks;


void saveTask(Event e) {
  e.preventDefault();
  InputElement summary = querySelector('[name="tsummary"]');
  Task task = new Task(summary.value.trim());
  saveToStorage({"summary": task.summary,
    "scheduled" : task.scheduled, "timestamp" : task.timestamp});
  summary.value = '';
  displayTasks();
  
  
}
Refresh task list view when new task is submitted
Refresh task list view when new task is submitted
