diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-20 21:51:02 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-21 19:47:43 +0100 |
commit | b9c6451f88caa35ab39b6468a99b147d7d7f4937 (patch) | |
tree | 746ac7dc1cfd9b9596e3992b33a8fdce7864111b /templates | |
parent | aca7700dd7519d45e677e18b1a0199f3712ce140 (diff) | |
download | archweb-b9c6451f88caa35ab39b6468a99b147d7d7f4937.tar.gz archweb-b9c6451f88caa35ab39b6468a99b147d7d7f4937.tar.xz |
Fix news preview with CSRF and AJAX in Django 1.2.5
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/news/add.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/news/add.html b/templates/news/add.html index f580e0d..bb866dc 100644 --- a/templates/news/add.html +++ b/templates/news/add.html @@ -23,14 +23,14 @@ <p> <label></label> <input title="Save changes" type="submit" value="Save" /> - <input id="previewbtn" title="Preview" type="button" value="Preview" /> + <input id="news-preview-button" title="Preview" type="button" value="Preview" /> </p> </form> </div> -<div class="news-article box" style="display:none;"> - <h2>News Preview: <span id="previewtitle"></span></h2> - <div id="previewdata" class="article-content"></div> +<div id="news-preview" class="news-article box" style="display:none;"> + <h2>News Preview: <span id="news-preview-title"></span></h2> + <div id="news-preview-data" class="article-content"></div> </div> {% load cdn %}{% jquery %} <script type="text/javascript" src="/media/archweb.js"></script> |