mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-14741:
* use a better name for a variable * remove extra browse button and simplify code. Fix by Mauno K.
This commit is contained in:
parent
d074c20e49
commit
f8c9bb6bee
2 changed files with 4 additions and 11 deletions
|
@ -44,11 +44,6 @@ tinyMCEPopup.onInit.add(FileBrowserDialogue.init, FileBrowserDialogue);
|
|||
|
||||
//<![CDATA[
|
||||
|
||||
function onCancel() {
|
||||
window.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
function checkvalue(elm,formname) {
|
||||
var el = document.getElementById(elm);
|
||||
if(!el.value) {
|
||||
|
@ -142,7 +137,7 @@ form { margin-bottom: 0px; margin-top: 0px; }
|
|||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" name="close" onclick="return onCancel();"><?php print_string("close","editor");?></button>
|
||||
<button type="button" name="close" onclick="tinyMCEPopup.close();"><?php print_string("close","editor");?></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -166,8 +161,6 @@ form { margin-bottom: 0px; margin-top: 0px; }
|
|||
<input type="hidden" name="sesskey" value="<?php p($USER->sesskey) ?>" />
|
||||
<input type="file" name="userfile" id="userfile" size="35" />
|
||||
<input name="save" type="submit" id="save" onclick="return checkvalue('userfile','uploader');" value="<?php print_string("upload","editor");?>" />
|
||||
|
||||
<input name="save" type="submit" id="save" onclick="return checkvalue('userfile','uploader');" value="Browse" />
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue