From 02afd8a32edb13ea7fc2266ac80092ea15c0930c Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Wed, 9 Oct 2013 15:52:53 +0800 Subject: * treat 'apps/utils' as regular django app; which used to store general tools for used in other apps * moved 'templatetags' from 'apps/indicator' to 'apps/utils' * '.gitignore' to ignore 'fixtures_bak' * moved js plugins from 'apps/indicator/static/plugins' to 'staticfiles/plugins' apps/recommend: * updated 'recommend.models'; o commented 'recommend.models.ResearchCombination' (not used) * implemented views 'add_edit_blog_info' and 'ajax_add_edit_configs'; * added pages 'templates/recommend/add_edit_blog_info.html', 'add_edit_blog_info_error.html'; o related css and javascripts files * added 'tools.py'; * added 'utils/tools.py' for placing generic functions; * deleted 'initial_data.json' (mv 'fixtures' to 'fixtures_bak'); * small fixes to 'indicator.models', 'sciblog.models' and 'sfaccount.views' * fixed automatically show 'proper_nouns' annotation in blog: recovered the line 'import signals' in 'sciblog.models' * added 'is_ok()' method for 'recommend.models.ResearchConfig'; --- .../jquery-ui/demos/selectable/default.html | 43 +++++++++++++++++ .../jquery-ui/demos/selectable/display-grid.html | 48 +++++++++++++++++++ .../plugins/jquery-ui/demos/selectable/index.html | 16 +++++++ .../jquery-ui/demos/selectable/serialize.html | 54 ++++++++++++++++++++++ 4 files changed, 161 insertions(+) create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/default.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/display-grid.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/index.html create mode 100644 97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/serialize.html (limited to '97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable') diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/default.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/default.html new file mode 100644 index 0000000..e110423 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/default.html @@ -0,0 +1,43 @@ + + + + + jQuery UI Selectable - Default functionality + + + + + + + + + + + + + +
    +
  1. Item 1
  2. +
  3. Item 2
  4. +
  5. Item 3
  6. +
  7. Item 4
  8. +
  9. Item 5
  10. +
  11. Item 6
  12. +
  13. Item 7
  14. +
+ +
+

Enable a DOM element (or group of elements) to be selectable. Draw a box with your cursor to select items. Hold down the Ctrl key to make multiple non-adjacent selections.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/display-grid.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/display-grid.html new file mode 100644 index 0000000..fc4fec6 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/display-grid.html @@ -0,0 +1,48 @@ + + + + + jQuery UI Selectable - Display as grid + + + + + + + + + + + + + +
    +
  1. 1
  2. +
  3. 2
  4. +
  5. 3
  6. +
  7. 4
  8. +
  9. 5
  10. +
  11. 6
  12. +
  13. 7
  14. +
  15. 8
  16. +
  17. 9
  18. +
  19. 10
  20. +
  21. 11
  22. +
  23. 12
  24. +
+ +
+

To arrange selectable items as a grid, give them identical dimensions and float them using CSS.

+
+ + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/index.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/index.html new file mode 100644 index 0000000..a82830c --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/index.html @@ -0,0 +1,16 @@ + + + + + jQuery UI Selectable Demos + + + + + + + diff --git a/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/serialize.html b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/serialize.html new file mode 100644 index 0000000..d70e314 --- /dev/null +++ b/97suifangqa/staticfiles/plugins/jquery-ui/demos/selectable/serialize.html @@ -0,0 +1,54 @@ + + + + + jQuery UI Selectable - Serialize + + + + + + + + + + + + + +

+You've selected: none. +

+ +
    +
  1. Item 1
  2. +
  3. Item 2
  4. +
  5. Item 3
  6. +
  7. Item 4
  8. +
  9. Item 5
  10. +
  11. Item 6
  12. +
+ +
+

Write a function that fires on the stop event to collect the index values of selected items. Present values as feedback, or pass as a data string.

+
+ + -- cgit v1.2.2