Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"MDL-23506, avoid upload without file attached"
  • Loading branch information
Dongsheng Cai committed Jul 24, 2010
1 parent 704333a commit 2a03b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repository/filepicker.js
Expand Up @@ -1011,6 +1011,9 @@ M.core_filepicker.init = function(Y, options) {
e.preventDefault();
var license = Y.one('#select-license-'+client_id).get('value');
YAHOO.util.Cookie.set('recentlicense', license);
if (!Y.one('#'+id+'_file').get('value')) {
return false;
}
Y.use('io-upload-iframe', function() {
scope.request({
scope: scope,
Expand Down

0 comments on commit 2a03b97

Please sign in to comment.