save point
This commit is contained in:
parent
17f2dfe1d1
commit
ce08699104
5 changed files with 47 additions and 30 deletions
|
@ -149,7 +149,7 @@ $(function() {
|
|||
});
|
||||
|
||||
$('#add-filter').live('change', function() {
|
||||
var div = $(this).parents('div.filters:first');
|
||||
var div = $(this).parents('div.filterset:first');
|
||||
var filter = div.find('#filter-'+$(this).val());
|
||||
filter.find(':first-child').attr('checked', true);
|
||||
filter.show();
|
||||
|
@ -238,7 +238,7 @@ $(function() {
|
|||
});
|
||||
});
|
||||
} else {
|
||||
location.href = div.attr('objurl') + '?uuid=' + get_uuid(this);
|
||||
location.href = div.attr('objurl').replace(/%7Buuid%7D/, get_uuid(this));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -273,8 +273,7 @@ $(function() {
|
|||
if (confirm("Do you really wish to delete this object?")) {
|
||||
var grid = $(this).parents('div.grid:first');
|
||||
var url = grid.attr('delurl');
|
||||
// alert(url + '?uuid=' + get_uuid(this) + '&delete=true');
|
||||
location.href = url + '?uuid=' + get_uuid(this) + '&delete=true';
|
||||
location.href = url.replace(/%7Buuid%7D/, get_uuid(this));
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue