From 4639fcf237c9ba232dd4d8d826731cc33d678e8e Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 6 Aug 2011 04:14:13 -0700 Subject: remove works --- static/script.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'static') diff --git a/static/script.js b/static/script.js index a958a44..354e030 100644 --- a/static/script.js +++ b/static/script.js @@ -174,3 +174,15 @@ function add(id, title) { } ); } + +function remove(id) { + var user = $('#user').val(); + params = { + 'pid': pid, + 'yid': id, + } + $.getJSON('/remove/', params, + function(data) { + } + ); +} -- cgit v1.2.3