]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs tab reloading fixes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Nov 2010 13:11:13 +0000 (16:11 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Nov 2010 13:11:13 +0000 (16:11 +0300)
modules/pref-filters.php
prefs.js

index d796d84e44a3e1720d79cf9e603f75556983d48f..7b64b2a8f997a781d0dd1d9cf1ca8d17ac2ba9c5 100644 (file)
                                        action_param = '$action_param',
                                        filter_param = '$filter_param'
                                        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") {
index db84a210d3f702aff7414cf4042c666ba3be0bec..de19eaeb9d3d362206896180188b142a06ba451c 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -16,8 +16,8 @@ function feedlist_callback2(transport) {
 
        try {   
 
-               var container = $('feedConfigTab');     
-               container.innerHTML=transport.responseText;
+               dijit.byId('feedConfigTab').attr('content', transport.responseText); 
+
                selectTab("feedConfig", true);
 
                if (caller_subop) {
@@ -37,8 +37,7 @@ function feedlist_callback2(transport) {
 }
 
 function filterlist_callback2(transport) {
-       var container = $('filterConfigTab');
-       container.innerHTML=transport.responseText;
+       dijit.byId('filterConfigTab').attr('content', transport.responseText); 
        notify("");
        remove_splash();
 }
@@ -70,14 +69,13 @@ function labellist_callback2(transport) {
 
        try {
 
-               var container = $('labelConfigTab');
-                       closeInfoBox();
-                       container.innerHTML=transport.responseText;
+               dijit.byId('labelConfigTab').attr('content', transport.responseText); 
+               closeInfoBox();
 
-                       init_label_inline_editor();
+               init_label_inline_editor();
        
-                       notify("");
-                       remove_splash();
+               notify("");
+               remove_splash();
 
        } catch (e) {
                exception_error("labellist_callback2", e);
@@ -86,12 +84,10 @@ function labellist_callback2(transport) {
 
 function userlist_callback2(transport) {
        try {
-               var container = $('userConfigTab');
-               if (transport.readyState == 4) {
-                       container.innerHTML=transport.responseText;
-                       notify("");
-                       remove_splash();
-               }
+               dijit.byId('userConfigTab').attr('content', transport.responseText); 
+
+               notify("");
+               remove_splash();
        } catch (e) {
                exception_error("userlist_callback2", e);
        }
@@ -99,8 +95,8 @@ function userlist_callback2(transport) {
 
 function prefslist_callback2(transport) {
        try {
-               var container = $('genConfigTab');
-               container.innerHTML=transport.responseText;
+               dijit.byId('genConfigTab').attr('content', transport.responseText); 
+
                notify("");
                remove_splash();
        } catch (e) {