Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 1279... Línea 1279...
1279
                var scope = this;
1279
                var scope = this;
1280
                var repository_id = this.active_repo.id;
1280
                var repository_id = this.active_repo.id;
1281
                var title = selectnode.one('.fp-saveas input').get('value');
1281
                var title = selectnode.one('.fp-saveas input').get('value');
1282
                var filesource = selectnode.one('form #filesource-'+client_id).get('value');
1282
                var filesource = selectnode.one('form #filesource-'+client_id).get('value');
1283
                var filesourcekey = selectnode.one('form #filesourcekey-'+client_id).get('value');
1283
                var filesourcekey = selectnode.one('form #filesourcekey-'+client_id).get('value');
-
 
1284
                var params = {
-
 
1285
                    'title': title,
-
 
1286
                    'source': filesource,
1284
                var params = {'title':title, 'source':filesource, 'savepath': this.options.savepath, sourcekey: filesourcekey};
1287
                    'savepath': this.options.savepath || '/',
-
 
1288
                    'sourcekey': filesourcekey,
-
 
1289
                };
1285
                var license = selectnode.one('.fp-setlicense select');
1290
                var license = selectnode.one('.fp-setlicense select');
1286
                if (license) {
1291
                if (license) {
1287
                    params['license'] = license.get('value');
1292
                    params['license'] = license.get('value');
1288
                    var origlicense = selectnode.one('.fp-license .fp-value');
1293
                    var origlicense = selectnode.one('.fp-license .fp-value');
1289
                    if (origlicense) {
1294
                    if (origlicense) {
Línea 1884... Línea 1889...
1884
                this.hide_header();
1889
                this.hide_header();
1885
                scope.request({
1890
                scope.request({
1886
                        scope: scope,
1891
                        scope: scope,
1887
                        action:'upload',
1892
                        action:'upload',
1888
                        client_id: client_id,
1893
                        client_id: client_id,
1889
                        params: {'savepath':scope.options.savepath},
1894
                        params: {'savepath': scope.options.savepath || '/'},
1890
                        repository_id: scope.active_repo.id,
1895
                        repository_id: scope.active_repo.id,
1891
                        form: {id: id, upload:true},
1896
                        form: {id: id, upload:true},
1892
                        onerror: function(id, o, args) {
1897
                        onerror: function(id, o, args) {
1893
                            scope.create_upload_form(data);
1898
                            scope.create_upload_form(data);
1894
                        },
1899
                        },