Rerun. Tabbed dialogs allowed non access pages.
[fa-stable.git] / js / inserts.js
index 0c991a86390794fae73e70a9c25e2a52dbd67c10..8f03de7f743e24fd4678e7b8761bc6bfee677549 100644 (file)
@@ -162,7 +162,7 @@ function _set_combo_select(e) {
                                event.returnValue = false;
                                return false;
                        }
-                   if (box && (key == 32) && (this.className == 'combo2')) {
+                   if (box && (key == 32) && (string_contains(this.className, 'combo2'))) {
                            this.style.display = 'none';
                            box.style.display = 'inline';
                                box.value='';
@@ -275,12 +275,12 @@ var inserts = {
        'input': function(e) {
                if(e.onfocus==undefined) {
                        e.onfocus = function() {
-                           save_focus(this);
-                               if (this.className == 'combo' || this.className == 'combo3')
+                               save_focus(this);
+                               if (string_contains(this.className, 'combo') || string_contains(this.className, 'combo3'))
                                        this.select();
                        };
                }
-               if (e.className == 'combo' || e.className == 'combo2' || e.className == 'combo3') {
+               if (string_contains(e.className, 'combo') || string_contains(e.className, 'combo2') || string_contains(e.className, 'combo3')) {
                                _set_combo_input(e);
                }
                else
@@ -467,7 +467,7 @@ var inserts = {
 // ?  var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
                    var url = tab.form.action
                    tab.onclick=function(){
-                   if (!_hotkeys.alt && !tab.disabled)
+                   if (!_hotkeys.alt && !this.disabled)
                                _expand(this);
                        return false;
                    }