Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Iframe transport to work with older Opera versions

  • Loading branch information...
commit 25958f9e201c47e57b79bba26d083e0baa12db23 1 parent 3de48c6
@mpokrywka authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 js/jquery.iframe-transport.js
View
10 js/jquery.iframe-transport.js
@@ -57,6 +57,16 @@
iframe
.unbind('load')
.bind('load', function () {
+ // fix for old Opera versions (< 9.6) firing
+ // additional event on submit to iframe when no
+ // response has been received yet
+ try {
+ if (iframe.contents().get(0)
+ .location == "javascript:false;") {
+ return;
+ }
+ } catch (e) {
+ }
var response;
// Wrap in a try/catch block to catch exceptions thrown
// when trying to access cross-domain iframe contents:
Please sign in to comment.
Something went wrong with that request. Please try again.