prefs tab reloading fixes

master
Andrew Dolgov 14 years ago
parent 72cbe82890
commit e7435df04a

@ -208,11 +208,6 @@
action_param = '$action_param', action_param = '$action_param',
filter_param = '$filter_param' filter_param = '$filter_param'
WHERE id = '$filter_id' AND owner_uid = " . $_SESSION["uid"]); WHERE id = '$filter_id' AND owner_uid = " . $_SESSION["uid"]);
if (db_affected_rows($link, $result) != 0) {
print_notice(T_sprintf("Saved filter <b>%s</b>", htmlspecialchars($reg_exp)));
}
} }
if ($subop == "remove") { if ($subop == "remove") {

@ -16,8 +16,8 @@ function feedlist_callback2(transport) {
try { try {
var container = $('feedConfigTab'); dijit.byId('feedConfigTab').attr('content', transport.responseText);
container.innerHTML=transport.responseText;
selectTab("feedConfig", true); selectTab("feedConfig", true);
if (caller_subop) { if (caller_subop) {
@ -37,8 +37,7 @@ function feedlist_callback2(transport) {
} }
function filterlist_callback2(transport) { function filterlist_callback2(transport) {
var container = $('filterConfigTab'); dijit.byId('filterConfigTab').attr('content', transport.responseText);
container.innerHTML=transport.responseText;
notify(""); notify("");
remove_splash(); remove_splash();
} }
@ -70,14 +69,13 @@ function labellist_callback2(transport) {
try { try {
var container = $('labelConfigTab'); dijit.byId('labelConfigTab').attr('content', transport.responseText);
closeInfoBox(); closeInfoBox();
container.innerHTML=transport.responseText;
init_label_inline_editor(); init_label_inline_editor();
notify(""); notify("");
remove_splash(); remove_splash();
} catch (e) { } catch (e) {
exception_error("labellist_callback2", e); exception_error("labellist_callback2", e);
@ -86,12 +84,10 @@ function labellist_callback2(transport) {
function userlist_callback2(transport) { function userlist_callback2(transport) {
try { try {
var container = $('userConfigTab'); dijit.byId('userConfigTab').attr('content', transport.responseText);
if (transport.readyState == 4) {
container.innerHTML=transport.responseText; notify("");
notify(""); remove_splash();
remove_splash();
}
} catch (e) { } catch (e) {
exception_error("userlist_callback2", e); exception_error("userlist_callback2", e);
} }
@ -99,8 +95,8 @@ function userlist_callback2(transport) {
function prefslist_callback2(transport) { function prefslist_callback2(transport) {
try { try {
var container = $('genConfigTab'); dijit.byId('genConfigTab').attr('content', transport.responseText);
container.innerHTML=transport.responseText;
notify(""); notify("");
remove_splash(); remove_splash();
} catch (e) { } catch (e) {

Loading…
Cancel
Save