From 1db95713a2c68a4f3aab38a74658ddba66692997 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 4 Jul 2011 21:25:49 +0530 Subject: [PATCH] fixed silly submit bug --- edgware/static/js/files/browse.js | 3 +- edgware/templates/create_article.html | 72 +++++++++++++++++---------- 2 files changed, 47 insertions(+), 28 deletions(-) diff --git a/edgware/static/js/files/browse.js b/edgware/static/js/files/browse.js index 658fe26..f658a0f 100644 --- a/edgware/static/js/files/browse.js +++ b/edgware/static/js/files/browse.js @@ -205,7 +205,8 @@ function getItemForm(f) { var $submit = $('').addClass("submitItem").attr("type", "submit").val("Submit").appendTo($submitP); var $submitStatus = $('').addClass("submitStatus").appendTo($submitP); $submit.click(function(e) { - if (typeof($(this).attr("disabled")) != 'undefined') { + if ($(this).attr("disabled")) { +// console.log($(this).attr("disabled")); return false; } var url = "/files/editFile/"; diff --git a/edgware/templates/create_article.html b/edgware/templates/create_article.html index d877be7..48ef3fb 100644 --- a/edgware/templates/create_article.html +++ b/edgware/templates/create_article.html @@ -1,6 +1,7 @@ -{% extends 'base.html' %} +{% extends 'main_base.html' %} -{% block head %} +{% block extra_head %} +