Rewrite FlagSet in order to run flag operation in constant time.
[platal.git] / htdocs / javascript / xorg.js
index c013d19..f82cc9f 100644 (file)
@@ -160,7 +160,7 @@ function popWin(theNode,w,h) {
 function goodiesPopup(node) {
     if (node.href.indexOf('ical') > -1) {
         __goodies_popup(node, __goodies_ical_sites, 'Calendrier iCal');
-    } else if (node.href.indexOf('rss') > -1 && (node.href.indexOf('xml') > -1 || node.href.indexOf('hash'))) {
+    } else if (node.href.indexOf('rss') > -1 && node.href.indexOf('prefs/rss') < 0 &&  (node.href.indexOf('xml') > -1 || node.href.indexOf('hash'))) {
         __goodies_popup(node, __goodies_rss_sites, 'Fil rss');
     }
 }
@@ -334,7 +334,7 @@ function checkPassword(box) {
     } else if (prop >= 40) {
         color = "#ff4";
         bgcolor = "#750";
-        ok = false;
+        ok = true;
     } else {
         color = "#f20";
         bgcolor = "#700";
@@ -348,7 +348,7 @@ function checkPassword(box) {
            .parent().stop()
                     .animate({ backgroundColor: bgcolor }, 750);
     var submitButton = $(":submit[@name='" + passwordprompt_submit + "']");
-    if (ok) {
+    if (ok && pass.length >= 6) {
         submitButton.removeAttr("disabled");
     } else {
         submitButton.attr("disabled", "disabled");