Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions scripts/modules/login-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,24 @@ define(['shim!vendor/bootstrap/js/popover[shim!vendor/bootstrap/js/tooltip[modul
createPopover: function (e) {
// in the absence of JS or in a small viewport, these links go to the login page.
// Prevent them from going there!
var self = this;
if (usePopovers()) {
e.preventDefault();
// If the parent element's not positioned at least relative,
// the popover won't move with a window resize
//var pos = $parent.css('position');
//if (!pos || pos === "static") $parent.css('position', 'relative');
this.$el.popover({
//placement: "auto right",
animation: true,
html: true,
trigger: 'manual',
content: this.template,
container: 'body'
}).on('shown.bs.popover', this.onPopoverShow)
.popover('show');

}
// var self = this;
// if (usePopovers()) {
// e.preventDefault();
// // If the parent element's not positioned at least relative,
// // the popover won't move with a window resize
// //var pos = $parent.css('position');
// //if (!pos || pos === "static") $parent.css('position', 'relative');
// this.$el.popover({
// //placement: "auto right",
// animation: true,
// html: true,
// trigger: 'manual',
// content: this.template,
// container: 'body'
// }).on('shown.bs.popover', this.onPopoverShow)
// .popover('show');

// }
},
retrieveErrorLabel: function (xhr) {
var message = "";
Expand Down