<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<div class="xforms-login-detected-dialog modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-header">
<h4>Reloading form</h4>
</div>
<div class="modal-body">
<p>This form has to be reloaded. This most likely happened because your session has expired, which might take to the login page. (If you think that you shouldn't see this message and that the problem persists, please contact support.)</p>
</div>
<div class="modal-footer">
<button class="btn btn-primary">OK</button>
</div>
</div>
JavaScript
var dialogEl = $('.xforms-login-detected-dialog');
// Link dialog with title for ARIA
var title = dialogEl.find('h4');
if (_.isUndefined(title.attr('id'))) {
var titleId = _.uniqueId('xf-');
title.attr('id', titleId);
dialogEl.attr('aria-labelledby', titleId);
}
dialogEl.find('button').one('click.xf', function() {
window.location.href = window.location.href;
});
// Show modal dialog
dialogEl.modal({
backdrop: 'static', // Click on the background doesn't hide dialog
keyboard: false // Can't use esc to close the dialog
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.