From c52436a7e25876ee3509df2467c2a9ef33303436 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Mon, 12 Apr 2010 15:34:02 +0200 Subject: [PATCH] Priviliged users can now add tags. Also, some minor cleanups in JS. --- .../media/filebrowser/js/AddFileBrowser.js | 2 +- .../filebrowser/js/FB_FileBrowseField.js | 4 +- .../media/filebrowser/js/FB_TinyMCE.js | 6 +- .../media/filebrowser/js/TinyMCEAdmin.js | 34 +- .../scripts/jquery.uploadify.v2.1.0.min.js | 50 +- .../uploadify/example/scripts/swfobject.js | 4 +- .../uploadify/jquery.uploadify.v2.1.0.js | 514 +++++----- .../uploadify/jquery.uploadify.v2.1.0.min.js | 50 +- .../media/filebrowser/uploadify/swfobject.js | 4 +- .../filebrowser/include/filelisting.html | 26 +- .../filebrowser/include/tableheader.html | 16 +- .../templates/filebrowser/makedir.html | 2 +- .../templates/filebrowser/rename.html | 2 +- .../templates/filebrowser/upload.html | 8 +- .../templates/filebrowser/versions.html | 6 +- apps/toolbar/templates/toolbar/button.html | 24 +- apps/toolbar/templates/toolbar/toolbar.html | 4 +- apps/wiki/constants.py | 24 + apps/wiki/forms.py | 17 +- apps/wiki/helpers.py | 22 +- apps/wiki/models.py | 6 +- apps/wiki/nice_diff.py | 36 +- .../wiki/templates/wiki/document_details.html | 40 +- apps/wiki/templates/wiki/document_list.html | 20 +- apps/wiki/templates/wiki/history_view.html | 16 +- apps/wiki/templates/wiki/save_dialog.html | 24 +- apps/wiki/templates/wiki/summary_view.html | 12 +- apps/wiki/templates/wiki/tag_dialog.html | 20 +- apps/wiki/urls.py | 2 + apps/wiki/views.py | 23 +- lib/vstorage.py | 2 +- platforma/context_processors.py | 3 +- platforma/settings.py | 73 +- platforma/static/css/dialogs.css | 12 +- platforma/static/css/master.css | 6 +- .../static/filebrowser/js/AddFileBrowser.js | 2 +- .../filebrowser/js/FB_FileBrowseField.js | 4 +- platforma/static/filebrowser/js/FB_TinyMCE.js | 6 +- .../static/filebrowser/js/TinyMCEAdmin.js | 34 +- .../scripts/jquery.uploadify.v2.1.0.min.js | 50 +- .../uploadify/example/scripts/swfobject.js | 4 +- .../uploadify/jquery.uploadify.v2.1.0.js | 514 +++++----- .../uploadify/jquery.uploadify.v2.1.0.min.js | 50 +- .../static/filebrowser/uploadify/swfobject.js | 4 +- platforma/static/icons/close.png | Bin 388 -> 669 bytes platforma/static/js/button_scripts.js | 14 +- platforma/static/js/jquery.autocomplete.js | 124 +-- platforma/static/js/jquery.blockui.js | 952 +++++++++--------- platforma/static/js/lib/codemirror/editor.js | 2 +- .../static/js/lib/codemirror/parsexml.js | 4 +- .../static/js/lib/codemirror/tokenize.js | 2 +- platforma/static/js/slugify.js | 4 +- platforma/static/js/wiki/base.js | 215 ++-- platforma/static/js/wiki/dialog_addtag.js | 61 ++ .../wiki/{save_dialog.js => dialog_save.js} | 40 +- .../static/js/wiki/{main.js => loader.js} | 92 +- .../{diff_view.js => view_column_diff.js} | 24 +- ...source_editor.js => view_editor_source.js} | 66 +- ...siwyg_editor.js => view_editor_wysiwyg.js} | 174 ++-- .../wiki/{scan_gallery.js => view_gallery.js} | 116 +-- .../wiki/{history_view.js => view_history.js} | 115 ++- .../wiki/{summary_view.js => view_summary.js} | 22 +- platforma/static/js/wiki/wikiapi.js | 260 +++-- platforma/static/js/wiki/xslt.js | 186 ++-- platforma/templates/404.html | 32 +- platforma/templates/500.html | 20 +- platforma/templates/503.html | 22 +- platforma/templates/admin/index.html | 2 +- .../templates/registration/head_login.html | 2 +- platforma/urls.py | 2 +- 70 files changed, 2211 insertions(+), 2124 deletions(-) create mode 100644 apps/wiki/constants.py create mode 100644 platforma/static/js/wiki/dialog_addtag.js rename platforma/static/js/wiki/{save_dialog.js => dialog_save.js} (79%) rename platforma/static/js/wiki/{main.js => loader.js} (92%) rename platforma/static/js/wiki/{diff_view.js => view_column_diff.js} (88%) rename platforma/static/js/wiki/{source_editor.js => view_editor_source.js} (84%) rename platforma/static/js/wiki/{wysiwyg_editor.js => view_editor_wysiwyg.js} (92%) rename platforma/static/js/wiki/{scan_gallery.js => view_gallery.js} (91%) rename platforma/static/js/wiki/{history_view.js => view_history.js} (73%) rename platforma/static/js/wiki/{summary_view.js => view_summary.js} (84%) diff --git a/apps/filebrowser/media/filebrowser/js/AddFileBrowser.js b/apps/filebrowser/media/filebrowser/js/AddFileBrowser.js index 3a994423..888885f5 100644 --- a/apps/filebrowser/media/filebrowser/js/AddFileBrowser.js +++ b/apps/filebrowser/media/filebrowser/js/AddFileBrowser.js @@ -4,7 +4,7 @@ var FileBrowser = { // change this thumb_prefix: 'thumb_', no_thumb: 'filebrowser/img/no_thumb.gif', - + init: function() { // Deduce admin_media_prefix by looking at the