Index: moodle/mod/lamslesson/mod_form.php =================================================================== diff -u -r5977cea84c5550b8300ed41bf8ce6482ef7b6326 -r044bc381a9c59ee083f5271b39a36096b1f740a2 --- moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision 5977cea84c5550b8300ed41bf8ce6482ef7b6326) +++ moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision 044bc381a9c59ee083f5271b39a36096b1f740a2) @@ -101,20 +101,14 @@ js_writer::set_variable('currentsequence', $currentsequence)); $authorpreviewbutton .= html_writer::script('', $CFG->wwwroot.'/mod/lamslesson/preview.js'); - - $authorpreviewbutton .= html_writer::start_tag('div', array('id' => 'buttons', 'style' => 'float:right;')); + $authorpreviewbutton .= html_writer::start_tag('div', array('id' => 'buttons', 'style' => 'float:right')); + // Preview button - $authorpreviewbutton .= html_writer::start_tag('span', array('id' => 'previewbutton', 'style' => 'visibility:hidden;', 'class' => 'yui3-button yui3-link-button')); - $authorpreviewbutton .= html_writer::start_tag('span', array('class' => 'first-child')); - $authorpreviewbutton .= html_writer::link('#nogo', $openpreviewlabel, array('onclick' => js_writer::function_call('openPreview', array('1' => $previewurl, '2' => 'preview', '3' => 0)))); - $authorpreviewbutton .= html_writer::end_tag('span'); - $authorpreviewbutton .= html_writer::end_tag('span'); - //Authoring button - $authorpreviewbutton .= html_writer::start_tag('span', array('id' => 'authorbutton', 'class' => 'yui3-button yui3-link-button')); - $authorpreviewbutton .= html_writer::start_tag('span', array('class' => 'first-child')); - $authorpreviewbutton .= html_writer::link('#nogo', $openauthorlabel, array('onclick' => js_writer::function_call('openAuthor', array('1' => $authorurl, '2' => 'author', '3' => 0)))); - $authorpreviewbutton .= html_writer::end_tag('span'); - $authorpreviewbutton .= html_writer::end_tag('span'); + $authorpreviewbutton .= html_writer::link('#nogo', $openpreviewlabel, array('onclick' => js_writer::function_call('openPreview', array('1' => $previewurl, '2' => 'preview', '3' => 1280, '4' => 720)), 'id' => 'previewbutton', 'style' => 'visibility:hidden;', 'class' => 'btn btn-primary')); + + //Authoring button + $authorpreviewbutton .= html_writer::link('#nogo', $openauthorlabel, array('onclick' => js_writer::function_call('PopupCenter', array('1' => $authorurl, '2' => 'author', '3' => 1280, '4' => 720)), 'class' => 'btn btn-primary', 'id' => 'authorbutton')); + $authorpreviewbutton .= html_writer::end_tag('div'); }