Skip to content

Commit

Permalink
Session: fix modal-dialog behaviour of "timed out" message
Browse files Browse the repository at this point in the history
Also corrected double spacing issues.
  • Loading branch information
patheard committed Oct 15, 2013
1 parent 25806b2 commit 5f9c0a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plugins/session-timeout/session-timeout.js
Expand Up @@ -114,9 +114,9 @@ var selector = ".wb-session-timeout",
$buttonSignin.data( "logouturl", settings.logouturl );

// Build the modal dialog
$document.trigger( "build.wb-modal", {
$document.trigger( "build.wb-modal", {
content: "<p>" + i18nText.timeoutAlready + "</p>",
buttons: $buttonSignin,
buttons: $buttonSignin,
deferred: building
});

Expand All @@ -129,6 +129,7 @@ var selector = ".wb-session-timeout",
setTimeout(function() {
// Open the popup
$document.trigger( "show.wb-modal", {
modal: true,
mainClass: "mfp-zoom-in",
items: { src: $modal, type: "inline" }
});
Expand All @@ -152,7 +153,7 @@ var selector = ".wb-session-timeout",
time = getTime( settings.reactionTime ),
content = i18nText.timeout
.replace( "#min#", "<span class='min'>" + time.minutes + "</span>" )
.replace( "#sec#", "<span class='sec'>" + time.seconds + "</span>" ),
.replace( "#sec#", "<span class='sec'>" + time.seconds + "</span>" ),
$modal = $( "#wb-session-modal" );

// Modal does not exists: build it
Expand Down

0 comments on commit 5f9c0a6

Please sign in to comment.