[Pkg-javascript-commits] [sockjs-client] 319/434: For some reason turning off 'disabling' didn't work on ie7.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 6dbc237a5082d52060b72f27fc027576ab297ef4
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Mon Jan 16 14:35:36 2012 +0000

    For some reason turning off 'disabling' didn't work on ie7.
---
 tests/html/example-cursors.html  | 7 +++----
 tests/html/smoke-reconnect.html  | 4 ++--
 tests/html/smoke-throughput.html | 4 ++--
 3 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/tests/html/example-cursors.html b/tests/html/example-cursors.html
index 887b8a7..b5a08fc 100644
--- a/tests/html/example-cursors.html
+++ b/tests/html/example-cursors.html
@@ -19,7 +19,6 @@
         border: 1px solid gray;
         z-index: -1;
       }
-
   </style>
 
 </head>
@@ -61,7 +60,7 @@
     var protocol;
     $('#connect').click(function() {
         $('#connect').attr('disabled', true);
-        $('#disconnect').attr('disabled', false);
+        $('#disconnect').each(function(_,e){e.disabled='';});
         var protocol = $('#transport').val() || undefined;
         if (protocol === 'not-websocket') {
             protocol = ['xdr-streaming',
@@ -90,7 +89,7 @@
     };
     var onclose = function(e) {
         log('disconnected ' + e);
-        $('#connect').attr('disabled', false);
+        $('#connect').each(function(_,e){e.disabled='';});
         $('#disconnect').attr('disabled', true);
     };
     var myself = (''+Math.random()).substr(2);
@@ -124,7 +123,7 @@
          }
          tref = setTimeout(poll, 200);
     };
-    $('#connect').attr('disabled', false);
+    $('#connect').each(function(_,e){e.disabled='';});
     $('#disconnect').attr('disabled', true);
 </script>
 </body>
diff --git a/tests/html/smoke-reconnect.html b/tests/html/smoke-reconnect.html
index 2adf62b..0765a34 100644
--- a/tests/html/smoke-reconnect.html
+++ b/tests/html/smoke-reconnect.html
@@ -62,7 +62,7 @@
             sjs.onclose = onclose;
         } else {
             log('[stopped] ' + e);
-            $('#connect').attr('disabled', false);
+            $('#connect').each(function(_,e){e.disabled='';});
             $('#disconnect').attr('disabled', true);
         }
     };
@@ -73,7 +73,7 @@
         log('[starting] ' + protocol);
         onclose({code:1000});
         $('#connect').attr('disabled', true);
-        $('#disconnect').attr('disabled', false);
+        $('#disconnect').each(function(_,e){e.disabled='';});
     });
     $('#disconnect').click(function() {
         $('#disconnect').attr('disabled', true);
diff --git a/tests/html/smoke-throughput.html b/tests/html/smoke-throughput.html
index 23bc5bc..4c2b482 100644
--- a/tests/html/smoke-throughput.html
+++ b/tests/html/smoke-throughput.html
@@ -50,7 +50,7 @@
     };
     function onclose(e) {
             log('disconnected ' + e);
-            $('#connect').attr('disabled', false);
+            $('#connect').each(function(_,e){e.disabled='';});
             $('#disconnect').attr('disabled', true);
     };
     var payload = Array(4096).join('x');
@@ -68,7 +68,7 @@
 
     $('#connect').click(function() {
         $('#connect').attr('disabled', true);
-        $('#disconnect').attr('disabled', false);
+        $('#disconnect').each(function(_,e){e.disabled='';});
         var protocol = $('#transport').val() || undefined;
         log('[connecting] ' + protocol);
         sjs = new SockJS(client_opts.url + '/echo', protocol, client_opts.sockjs_opts);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list