mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 06:25:27 +00:00
Merge pull request #14432 from brvphoenix/rss
WebUI: Properly decode strings
This commit is contained in:
commit
7373b60522
@ -11,7 +11,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
window.addEvent('domready', () => {
|
window.addEvent('domready', () => {
|
||||||
const paths = decodeURIComponent(new URI().getData('paths')).split('|');
|
const paths = new URI().getData('paths').split('|');
|
||||||
$('cancelBtn').focus();
|
$('cancelBtn').focus();
|
||||||
$('cancelBtn').addEvent('click', (e) => {
|
$('cancelBtn').addEvent('click', (e) => {
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
window.addEvent('domready', () => {
|
window.addEvent('domready', () => {
|
||||||
const rules = decodeURIComponent(new URI().getData('rules')).split('|');
|
const rules = new URI().getData('rules').split('|');
|
||||||
|
|
||||||
$('cancelBtn').focus();
|
$('cancelBtn').focus();
|
||||||
$('cancelBtn').addEvent('click', (e) => {
|
$('cancelBtn').addEvent('click', (e) => {
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
window.addEvent('domready', () => {
|
window.addEvent('domready', () => {
|
||||||
const rules = decodeURIComponent(new URI().getData('rules')).split('|');
|
const rules = new URI().getData('rules').split('|');
|
||||||
|
|
||||||
$('cancelBtn').focus();
|
$('cancelBtn').focus();
|
||||||
$('cancelBtn').addEvent('click', (e) => {
|
$('cancelBtn').addEvent('click', (e) => {
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
}).activate();
|
}).activate();
|
||||||
window.addEvent('domready', () => {
|
window.addEvent('domready', () => {
|
||||||
$('feedURL').focus();
|
$('feedURL').focus();
|
||||||
const path = decodeURIComponent(new URI().getData('path'));
|
const path = new URI().getData('path');
|
||||||
$('submitButton').addEvent('click', (e) => {
|
$('submitButton').addEvent('click', (e) => {
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
// check field
|
// check field
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
}).activate();
|
}).activate();
|
||||||
window.addEvent('domready', () => {
|
window.addEvent('domready', () => {
|
||||||
$('folderName').focus();
|
$('folderName').focus();
|
||||||
const path = decodeURIComponent(new URI().getData('path'));
|
const path = new URI().getData('path');
|
||||||
$('submitButton').addEvent('click', (e) => {
|
$('submitButton').addEvent('click', (e) => {
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
// check field
|
// check field
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
}
|
}
|
||||||
}).activate();
|
}).activate();
|
||||||
window.addEvent('domready', () => {
|
window.addEvent('domready', () => {
|
||||||
const oldPath = decodeURIComponent(new URI().getData('oldPath'));
|
const oldPath = new URI().getData('oldPath');
|
||||||
|
|
||||||
$('rename').value = oldPath;
|
$('rename').value = oldPath;
|
||||||
$('rename').focus();
|
$('rename').focus();
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
}
|
}
|
||||||
}).activate();
|
}).activate();
|
||||||
window.addEvent('domready', () => {
|
window.addEvent('domready', () => {
|
||||||
const oldName = decodeURIComponent(new URI().getData('rule'));
|
const oldName = new URI().getData('rule');
|
||||||
|
|
||||||
$('rename').value = oldName;
|
$('rename').value = oldName;
|
||||||
$('rename').focus();
|
$('rename').focus();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user