Merge branch 'MDL-37173-m' of git://github.com/andrewnicols/moodle
[moodle.git] / lib / form / filemanager.js
index a5531e0..86fc03a 100644 (file)
@@ -219,9 +219,9 @@ M.form_filemanager.init = function(Y, options) {
                 params: {'filepath':filepath},
                 callback: function(id, obj, args) {
                     scope.filecount = obj.filecount;
-                    scope.check_buttons();
                     scope.options = obj;
                     scope.lazyloading = {};
+                    scope.check_buttons();
                     scope.render(obj);
                 }
             }, true);