mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-04 05:43:17 +00:00 
			
		
		
		
	fix filedrop trying to upload without write access
This commit is contained in:
		@@ -715,13 +715,12 @@ function up2k_init(subtle) {
 | 
				
			|||||||
        offdrag.bind(this)();
 | 
					        offdrag.bind(this)();
 | 
				
			||||||
        var dz = (this && this.getAttribute('id'));
 | 
					        var dz = (this && this.getAttribute('id'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch)) {
 | 
					        var err = this.getAttribute('err');
 | 
				
			||||||
            var err = this.getAttribute('err');
 | 
					        if (err)
 | 
				
			||||||
            if (err)
 | 
					            return modal.alert('sorry, ' + err);
 | 
				
			||||||
                return modal.alert('sorry, ' + err);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch))
 | 
				
			||||||
            tgl_fsearch();
 | 
					            tgl_fsearch();
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!QS('#op_up2k.act'))
 | 
					        if (!QS('#op_up2k.act'))
 | 
				
			||||||
            goto('up2k');
 | 
					            goto('up2k');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user