Skip to content

Commit

Permalink
tweaked archive button behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron T. Maturen committed Jul 20, 2012
1 parent ad411f0 commit beb6e9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions hooks/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function HookInline_keywordsSearchAdditionalheaderjs()
data: { refs: resourceIds }
}).done(function( msg ) {
location.reload(true);
alert( "Deleted resources: " + msg );
});

});
Expand Down
3 changes: 1 addition & 2 deletions pages/archive_resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
require '../../../include/resource_functions.php';
$refs = explode(' ',str_replace('+',' ',$_REQUEST['refs']));
foreach($refs as $ref){
# echo sql_query("update resource set archive=2 where ref='$ref'");
delete_resource($ref);
}
echo 'marked as archived';
echo explode(', ', $refs);
?>

0 comments on commit beb6e9c

Please sign in to comment.