Skip to content

Commit

Permalink
MDL-22864 Removed the JS confirm for delete as it never worked on the…
Browse files Browse the repository at this point in the history
… IMG
  • Loading branch information
moodler committed Jun 29, 2010
1 parent 82ff8eb commit 91663dc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions blog/external_blogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@
$editurl = new moodle_url('/blog/external_blog_edit.php', array('id' => $blog->id));
$editicon = $OUTPUT->action_icon($editurl, new pix_icon('t/edit', get_string('editexternalblog', 'blog')));

$deletelink = new moodle_url('/blog/external_blog_edit.php', array('id' => $blog->id, 'sesskey'=>sesskey()));
$action = new confirm_action(get_string('externalblogdeleteconfirm', 'blog'));
$deleteicon = $OUTPUT->action_icon($deletelink, new pix_icon('t/delete', get_string('deleteexternalblog', 'blog')), $action);
$deletelink = new moodle_url('/blog/external_blogs.php', array('delete' => $blog->id, 'sesskey'=>sesskey()));
$deleteicon = $OUTPUT->action_icon($deletelink, new pix_icon('t/delete', get_string('deleteexternalblog', 'blog')));

$table->data[] = new html_table_row(array($blog->name, $blog->url, userdate($blog->timefetched), $validicon, $editicon . $deleteicon));
$table->data[] = new html_table_row(array($blog->name, $blog->url, userdate($blog->timefetched), $validicon, $editicon . '&nbsp'. $deleteicon));
}
echo html_writer::table($table);
}
Expand Down

0 comments on commit 91663dc

Please sign in to comment.