MDL-41288 wiki: fix missing .rtl class for deleting comment button and improve page...
authorRossiani Wijaya <rwijaya@moodle.com>
Fri, 13 Sep 2013 04:47:49 +0000 (12:47 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 13 Sep 2013 04:56:41 +0000 (12:56 +0800)
mod/wiki/pagelib.php
mod/wiki/styles.css

index c3f3018..d4946a6 100644 (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();
     }
 }
 
index 1d205b7..7c4dbc3 100644 (file)
 }
 
 .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;
 }