From e1f349982fc0fb1a6bc95ae7b87d1b2f76738543 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 4 Jul 2011 21:54:20 +0530 Subject: [PATCH] logout, publish, give class to private checkbox --- edgware/static/js/files/browse.js | 2 +- edgware/urls.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/edgware/static/js/files/browse.js b/edgware/static/js/files/browse.js index f658a0f..6aef683 100644 --- a/edgware/static/js/files/browse.js +++ b/edgware/static/js/files/browse.js @@ -174,7 +174,7 @@ function getItemForm(f) { if (f.can_edit) { var $pvt = $('

').addClass("editPrivate").appendTo($leftCol); var $privateLabel = $('').addClass("pvtLabel").text("Private ").appendTo($pvt); - var $pvtCheckbox = $('').attr("type", "checkbox").attr("checked", f.is_private).appendTo($pvt); + var $pvtCheckbox = $('').attr("type", "checkbox").addClass("privateCheck").attr("checked", f.is_private).appendTo($pvt); $pvtCheckbox.change(function() { var checked = $(this).is(":checked"); if (checked) { diff --git a/edgware/urls.py b/edgware/urls.py index 3de3756..5e9b238 100644 --- a/edgware/urls.py +++ b/edgware/urls.py @@ -3,6 +3,7 @@ from django.conf.urls.defaults import * import settings from django.contrib.auth.views import login +from django.contrib.auth.views import logout # uncomment the next two lines to enable the admin: from django.contrib import admin @@ -23,6 +24,7 @@ urlpatterns = patterns('', (r'^sandbox/faq$', 'main.views.faq'), (r'^sandbox/help$', 'main.views.help'), (r'^sandbox/account$', login), + (r'^sandbox/logout$', logout), (r'^$', 'django.views.generic.simple.redirect_to', {'url': '/slider/'}), (r'^robots.txt(?P)$', 'django.views.static.serve', { 'document_root' : "/home/itf/soc/edgware/static/txt/robots.txt" } ), # Uncomment the admin/doc line below and add 'django.contrib.admindocs'