This commit is contained in:
Alexey Kasyanchuk
2018-08-08 23:55:47 +03:00
parent 34cdc7fb09
commit ce618f4408
17 changed files with 67 additions and 66 deletions

View File

@ -155,15 +155,15 @@ class App extends Component {
}
document.addEventListener('dragover', (event) => {
event.stopPropagation();
event.preventDefault();
event.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.
}, false);
document.addEventListener('drop', (event) => {
event.stopPropagation();
event.stopPropagation();
event.preventDefault();
processTorrents(event.dataTransfer.files); // FileList object.
}, false);
event.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.
}, false);
document.addEventListener('drop', (event) => {
event.stopPropagation();
event.preventDefault();
processTorrents(event.dataTransfer.files); // FileList object.
}, false);
window.router()
appReady = true;

View File

@ -249,7 +249,7 @@ export default class ConfigPage extends Page {
null
}
{
this.removed > 0 && !this.toRemove && !this.toRemoveProbably
this.removed > 0 && !this.toRemove && !this.toRemoveProbably
?
<div style={{color: 'purple'}}>{this.realRemove ? __('removing') : __('calculation')}...: {this.removed}{this.removedMax > 0 ? '/' + this.removedMax : ''}</div>
:

View File

@ -58,13 +58,13 @@ class PagesPie extends Component {
{
this.pie.map(({Page, params}, index) => {
let focus = false;
if (index === this.pie.length-1) {
if (index === this.pie.length - 1) {
focus = true;
}
return (
<Page
focused={focus}
closeHandler={() => { index> 0 ? this.close() : null}}
closeHandler={() => { index > 0 ? this.close() : null}}
index={index}
key={index}
ref={index}

View File

@ -187,7 +187,7 @@ export default class Torrent extends Component {
componentDidMount()
{
scrollBack()
scrollBack()
this.downloading = (hash) => {
if(this.props.torrent.hash != hash)
@ -275,7 +275,7 @@ export default class Torrent extends Component {
return true;
}
*/
window.rememberYOffset = window.pageYOffset
window.rememberYOffset = window.pageYOffset
window.routerFix()
PagesPie.instance().open(TorrentPage, {replace: 'all', hash: torrent.hash, peer: torrent.peer})
}}