MDL-33509 forms: Change button type in url resource editing page
authorMihail Geshoski <mihail@moodle.com>
Tue, 3 Jul 2018 03:53:09 +0000 (11:53 +0800)
committerMihail Geshoski <mihail@moodle.com>
Tue, 3 Jul 2018 03:53:09 +0000 (11:53 +0800)
lib/form/url.php

index c114298..ddfc6a6 100644 (file)
@@ -144,7 +144,7 @@ class MoodleQuickForm_url extends HTML_QuickForm_text implements templatable {
         if (count($options->repositories) > 0) {
             $straddlink = get_string('choosealink', 'repository');
             $str .= <<<EOD
-<button id="filepicker-button-js-{$clientid}" class="visibleifjs btn btn-secondary">
+<button type="button" id="filepicker-button-js-{$clientid}" class="visibleifjs btn btn-secondary">
 $straddlink
 </button>
 EOD;