Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get popovers to work #760

Open
iancbaldwin82 opened this issue Nov 14, 2018 · 2 comments
Open

Can't get popovers to work #760

iancbaldwin82 opened this issue Nov 14, 2018 · 2 comments

Comments

@iancbaldwin82
Copy link

iancbaldwin82 commented Nov 14, 2018

Trying to use popovers instead of tooltips on the calendar items (the coloured dots in month view). The popover will never show, works fine outside the calendar

here is my event:
<a href="http://localhost:26650/Calendar/ModalDetails/75kA-O_RZyg" data-event-id="4" data-event-class="event-manual-event" class="pull-left event event-manual-event" data-toggle="popover" data-trigger="hover" data-content="testing" data-title="test" data-html="true" class="">popover</a>

and here is the updated function in bootstrap-calendar.js:
` Calendar.prototype._update = function() {
var self = this;

	$('[data-toggle="popover"]').popover({ container: 'body', placement: 'top' });		

	$('*[data-cal-date]').click(function() {
		var view = $(this).data('cal-view');
		self.options.day = $(this).data('cal-date');
		self.view(view);
	});
	$('.cal-cell').dblclick(function() {
		var view = $('[data-cal-date]', this).data('cal-view');
		self.options.day = $('[data-cal-date]', this).data('cal-date');
		self.view(view);
	});

	this['_update_' + this.options.view]();

	this._update_modal();

};`

I've added the line:
$('[data-toggle="popover"]').popover({ container: 'body', placement: 'top' });

@cablegunmaster
Copy link

still needed or can be closed?

@Neozxz
Copy link

Neozxz commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants