Module form transition

Module form transition

by Tomoyuki Nakamura -
Number of replies: 0


Hello


I use Moodle 3.0 . 


I make "Opening Files with the OneDrive File Picker "(like a https://dev.onedrive.com/sdk/js-v7/js-picker-open.htm ) in form of module.

OneDrive File Picker button open new window for File Picker.

However this button carry out not only opening new window but also finishing form of module.


I don't want to finish form of module.

What should I do ? 



・Before onedrive button click 



・After onedrive button click 



・Source  mod_form.php (part of OneDrive File Picker)

$mform -> addElement ( 'html' , '<div class="row">');

$mform -> addElement ( 'html' ,'<input id="downloadLink" type="hidden" value="download" name="actionType" checked="checked"> ');

$mform -> addElement ( 'html' , '</div>');

$mform -> addElement ( 'html' , '<div class="row">');

$mform -> addElement ( 'html' ,'<button onclick="javascript:launchOneDrivePicker();" title="Open to OneDrive">');

$mform -> addElement ( 'html' ,'<img src="https://js.live.net/v5.0/images/SkyDrivePicker/SkyDriveIcon_white.png" style="vertical-align: middle; height: 16px;">');

$mform -> addElement ( 'html' ,'<font class="">Open to OneDrive</font>') ;  

$mform -> addElement ( 'html' ,'</button>');

$mform -> addElement ( 'html' , '</div>');



$mform -> addElement ( 'html' , '<div id="pickerConsole" class="console">');


$mform -> addElement ( 'html' , '</div>');


 



Average of ratings: -