frontpages

This commit is contained in:
ashok sukumaran 2011-07-04 22:00:31 +05:30
commit 80dff86284
2 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,7 @@ function getItemForm(f) {
if (f.can_edit) { if (f.can_edit) {
var $pvt = $('<p />').addClass("editPrivate").appendTo($leftCol); var $pvt = $('<p />').addClass("editPrivate").appendTo($leftCol);
var $privateLabel = $('<span />').addClass("pvtLabel").text("Private ").appendTo($pvt); var $privateLabel = $('<span />').addClass("pvtLabel").text("Private ").appendTo($pvt);
var $pvtCheckbox = $('<input />').attr("type", "checkbox").attr("checked", f.is_private).appendTo($pvt); var $pvtCheckbox = $('<input />').attr("type", "checkbox").addClass("privateCheck").attr("checked", f.is_private).appendTo($pvt);
$pvtCheckbox.change(function() { $pvtCheckbox.change(function() {
var checked = $(this).is(":checked"); var checked = $(this).is(":checked");
if (checked) { if (checked) {

View File

@ -3,6 +3,7 @@
from django.conf.urls.defaults import * from django.conf.urls.defaults import *
import settings import settings
from django.contrib.auth.views import login from django.contrib.auth.views import login
from django.contrib.auth.views import logout
# uncomment the next two lines to enable the admin: # uncomment the next two lines to enable the admin:
from django.contrib import admin from django.contrib import admin
@ -23,6 +24,7 @@ urlpatterns = patterns('',
(r'^sandbox/faq$', 'main.views.faq'), (r'^sandbox/faq$', 'main.views.faq'),
(r'^sandbox/help$', 'main.views.help'), (r'^sandbox/help$', 'main.views.help'),
(r'^sandbox/account$', login), (r'^sandbox/account$', login),
(r'^sandbox/logout$', logout),
(r'^$', 'django.views.generic.simple.redirect_to', {'url': '/slider/'}), (r'^$', 'django.views.generic.simple.redirect_to', {'url': '/slider/'}),
(r'^robots.txt(?P<path>)$', 'django.views.static.serve', { 'document_root' : "/home/itf/soc/edgware/static/txt/robots.txt" } ), (r'^robots.txt(?P<path>)$', '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' # Uncomment the admin/doc line below and add 'django.contrib.admindocs'