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:
scyrma 2008-07-03 07:12:03 +00:00
parent d074c20e49
commit f8c9bb6bee
2 changed files with 4 additions and 11 deletions

View file

@ -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 {