fix feed saving bug when categories are disabled (closes #20)
This commit is contained in:
parent
144c23f16e
commit
48fa05ad37
1 changed files with 5 additions and 1 deletions
6
prefs.js
6
prefs.js
|
@ -676,7 +676,11 @@ function feedEditSave() {
|
||||||
var purge_intl = document.getElementById("iedit_purgintl").value;
|
var purge_intl = document.getElementById("iedit_purgintl").value;
|
||||||
var fcat = document.getElementById("iedit_fcat");
|
var fcat = document.getElementById("iedit_fcat");
|
||||||
|
|
||||||
var fcat_id = fcat[fcat.selectedIndex].id;
|
var fcat_id = 0;
|
||||||
|
|
||||||
|
if (fcat) {
|
||||||
|
fcat_id = fcat[fcat.selectedIndex].id;
|
||||||
|
}
|
||||||
|
|
||||||
var pfeed = document.getElementById("iedit_parent_feed");
|
var pfeed = document.getElementById("iedit_parent_feed");
|
||||||
var parent_feed_id = pfeed[pfeed.selectedIndex].id;
|
var parent_feed_id = pfeed[pfeed.selectedIndex].id;
|
||||||
|
|
Loading…
Reference in a new issue