MDL-53888 mod_url: Choose a link option now works.
authorAdrian Greeve <adrian@moodle.com>
Thu, 21 Apr 2016 02:31:51 +0000 (10:31 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 6 May 2016 01:27:28 +0000 (09:27 +0800)
Fixed a regression from MDL-50484.

lib/form/url.js

index b37f36c..c85326a 100644 (file)
@@ -8,8 +8,7 @@ M.form_url.init = function(Y, options) {
     Y.on('click', function(e, client_id) {
         e.preventDefault();
         M.core_filepicker.instances[client_id].show();
-    }, '#filepicker-button-'+options.client_id, null, options.client_id);
-
+    }, '#filepicker-button-js-'+options.client_id, null, options.client_id);
 };
 
 M.form_url.callback = function (params) {