make private works

This commit is contained in:
Sanj 2011-07-04 18:39:30 +05:30
parent ac35fdaf9d
commit 73cfc81f93

View File

@ -180,6 +180,10 @@ function getItemForm(f) {
} else { } else {
var url = "/files/makePublic/"; var url = "/files/makePublic/";
} }
var item = $('.selectedItem')
var f = item.data("data");
f.is_private = checked;
item.data("data", f);
var parent = $(this).parents(".itemForm"); var parent = $(this).parents(".itemForm");
var id = parent.find(".itemId").val(); var id = parent.find(".itemId").val();
var params = {'id': id} var params = {'id': id}