Commits

Anonymous committed 28aa736

Fixed comment deleting problem (stripped table_prefix)

Comments (0)

Files changed (2)

 			
 			# execute query
 			# using SQL because Storm manual is incomplete...
-			db.store.execute("DELETE FROM `%scomments` WHERE id_ IN (%s)" % (config.database.table_prefix, id_),
-			noresult=True)
+			db.store.execute("DELETE FROM `comments` WHERE id_ IN (%s)" % id_, noresult=True)
 			
 			web.webapi.header("Content-Type","text/html; charset=utf-8") 
 			page_html = '<em class="confirmation">deleted</em>'
 					"form_type":"edit",
 					"date":article.timestamp,
 					"content":article.content,
-					"action":"%s%s/%s/%s/%s" % (config.general.base_url, date[0], date[1], date[2], article.url_id),
+					"action":"%s%s/%s/%s/%s.html" % (config.general.base_url, date[0], date[1], date[2], article.url_id),
 					"tags": article.tags,
 					"session":session,
 					}

static/js/_site.js

 jQuery(document).ready(function(){
 jQuery(".add_content_here .expand").click(function(event){
 	event.preventDefault();
-	jQuery(".add_content_here form").toggle("slow");
+	jQuery(".add_content_here form").toggle("fast");
 	jQuery(".add_content_here span.label").toggleClass("activated");
 });
 
 			event.preventDefault();
 			var answer = confirm("Cancel these changes?")
 			if (answer) {
+				jQuery("div.article").toggle('fast')
 				jQuery("div.article").html(jQuery("div.original_article").html());
+				jQuery("div.article").toggle('fast')
 			}
 		});
 		
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.