/*!
 * PopConfirm 0.1
 * http://anaelfavre.github.io/PopConfirm/
 *
 * Use jQuery & Bootstrap
 * http://jquery.com/
 * http://getbootstrap.com/
 *
 * Copyright 2014 Anael Favre and other contributors
 * Released under the MIT license
 * https://raw.github.com/AnaelFavre/PopConfirm/master/LICENCE
 */

(function($){
	$.fn.extend({
		popConfirm: function(options) {
			var defaults = {
				title: 'Confirmation',
				content: 'Are you really sure ?',
				placement: 'right'
			};
			var options =  $.extend(defaults, options);
			var last = null;
			
			return this.each(function() {
				var self = $(this);
				var arrayActions = [];
				
				// If there are jquery click events
				if (typeof(jQuery._data(this, "events")) != "undefined" && typeof(jQuery._data(this, "events")['click']) != "undefined") {
					
					// Save all click handlers
					for (var i = 0; i < jQuery._data(this, "events")['click'].length; i++) {
						arrayActions.push(jQuery._data(this, "events")['click'][i].handler);
					}
					
					// unbind it to prevent it firing
					$(self).unbind("click");
				}
				
				// If there are hard onclick attribute
				if(typeof self.attr('onclick') != 'undefined') {
					// Extracting the onclick code to evaluate and bring it into a closure
					var code = self.attr('onclick');
					arrayActions.push(function() {
						eval(code);
					});
					$(self).removeAttr('onclick');
				}
				
				// If there are href link defined
				if(typeof self.attr('href') != 'undefined') {
					// Assume there is a href attribute to redirect to
					arrayActions.push(function() {
						window.location.href = self.attr('href');
					});
				}
				
				// If the button is a submit one
				if(typeof self.attr('type') != 'undefined' && self.attr('type') == 'submit') {
					// Get the form related to this button then store submiting in closure
					var form = $(this).parents('form:first');
					arrayActions.push(function() {
						form.submit();
					});
				}
				
				self.popover({
					trigger: 'manual',
					title: options.title,
					html: true,
					placement: options.placement,
					content: options.content + '\
						<p class="button-group" style="margin-top: 10px; text-align: center;">\
							<button type="button" class="btn btn-small btn-danger confirm-dialog-btn-confirm">Oui</button>\
							<button type="button" class="btn btn-small confirm-dialog-btn-abord">Non</button>\
						</p>'
				}).click(function(e) {
					if(last && last !== self) last.popover('hide');
					last = self;
				});
				
				$(document).on('click', function(){
				    if (last) last.popover('hide');
				});

				self.bind('click', function(e) {
					e.preventDefault();
					e.stopPropagation();
					
					self.popover('show');
					
					self.next('.popover').find('.confirm-dialog-btn-confirm').bind('click', function(e) {
						for(var i = 0; i < arrayActions.length; i++) {
							arrayActions[i].apply(self);
						}
						
						self.popover('hide');
					});
					self.next('.popover').find('.confirm-dialog-btn-abord').bind('click', function(e) {
						self.popover('hide');
					});
				});
			});
		}
	});   
})(jQuery);
@@ -465,16 +465,57 @@
  'right'
+,%0A%09%09%09%09yesBtn:   'Yes',%0A%09%09%09%09noBtn:    'No'
 %0A%09%09%09%7D;%0A%09
@@ -2340,11 +2340,30 @@
 rm%22%3E
-Oui
+' + options.yesBtn + '
 %3C/bu
@@ -2449,11 +2449,29 @@
 rd%22%3E
-Non
+' + options.noBtn + '
 %3C/bu
@@ -3212,8 +3212,9 @@
 jQuery);
+%0A

Update jquery.popconfirm.js