From a469d8d3c45e72dea1372d7afdcc1a5d77185d4f Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sat, 22 May 2010 17:30:16 -0700 Subject: [PATCH] refactoring/bugfixes to selectable code. new methods: select/unselect. new options: unselectAuto/unselectCancel --- Makefile | 4 +- examples/agenda-views.html | 3 +- examples/basic-views.html | 3 +- examples/default.html | 3 +- examples/gcal.html | 1 + examples/json.html | 1 + examples/selectable.html | 46 ++--- examples/theme.html | 3 +- src/agenda.js | 407 +++++++++++++++++++++++++++---------- src/grid.js | 191 +++++++++++------ src/main.js | 30 ++- src/selectable.js | 328 ------------------------------ src/selection_util.js | 103 ++++++++++ src/util.js | 10 +- src/view.js | 1 + tests/loader.js | 1 + tests/plain.html | 12 -- tests/selectable.html | 114 +++++++++++ 18 files changed, 708 insertions(+), 553 deletions(-) delete mode 100644 src/selectable.js create mode 100644 src/selection_util.js create mode 100644 tests/selectable.html diff --git a/Makefile b/Makefile index 0649cd9..151b964 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ JS_SRC_FILES = \ ${SRC_DIR}/grid.js \ ${SRC_DIR}/agenda.js \ ${SRC_DIR}/view.js \ + ${SRC_DIR}/selection_util.js \ ${SRC_DIR}/util.js CSS_SRC_FILES = \ @@ -37,9 +38,6 @@ zip: @cat ${SRC_DIR}/gcal.js \ | ${VER_SED} | ${DATE_SED} \ > ${BUILD_DIR}/fullcalendar/gcal.js - @cat ${SRC_DIR}/selectable.js \ - | ${VER_SED} | ${DATE_SED} \ - > ${BUILD_DIR}/fullcalendar/selectable.js @echo "compressing js..." @java -jar ${BUILD_DIR}/compiler.jar --js ${BUILD_DIR}/fullcalendar/fullcalendar.js \ diff --git a/examples/agenda-views.html b/examples/agenda-views.html index dbdae45..b678051 100644 --- a/examples/agenda-views.html +++ b/examples/agenda-views.html @@ -13,6 +13,7 @@ + +