MDL-41288 wiki: fix missing .rtl class for deleting comment button and improve page display for deleting comment

This commit is contained in:
Rossiani Wijaya
2013-09-13 12:56:41 +08:00
committed by Dan Poltawski
parent 14cdc25731
commit f7bfb405cb
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -1954,7 +1954,8 @@ class page_wiki_deletecomment extends page_wiki {
$deleteurl = new moodle_url('/mod/wiki/instancecomments.php', $optionsyes);
$return = new moodle_url('/mod/wiki/comments.php', array('pageid'=>$this->page->id));
echo html_writer::tag('p', $strdeletecheckfull, array('class' => 'bold'));
echo $OUTPUT->container_start('wiki-form-center');
echo html_writer::tag('p', $strdeletecheckfull);
echo $OUTPUT->container_start(false, 'wiki_deletecommentform');
echo '<form class="wiki_deletecomment_yes" action="' . $deleteurl . '" method="post" id="deletecomment">';
echo '<div><input type="submit" name="confirmdeletecomment" value="' . get_string('yes') . '" /></div>';
@@ -1963,6 +1964,7 @@ class page_wiki_deletecomment extends page_wiki {
echo '<div><input type="submit" name="norestore" value="' . get_string('no') . '" /></div>';
echo '</form>';
echo $OUTPUT->container_end();
echo $OUTPUT->container_end();
}
}
+2 -2
View File
@@ -146,11 +146,11 @@
}
.wiki_restore_yes, .wiki_deletecomment_yes,
.dir-rtl .wiki_restore_no, .wiki_deletecomment_no {
.dir-rtl .wiki_restore_no, .dir-rtl .wiki_deletecomment_no {
float: left;
}
.wiki_restore_no, .wiki_deletecomment_no,
.dir-rtl .wiki_restore_yes, .wiki_deletecomment_yes {
.dir-rtl .wiki_restore_yes, .dir-rtl .wiki_deletecomment_yes {
float: right;
}