mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
grunt
This commit is contained in:
Vendored
+7
-3
@@ -45,7 +45,8 @@ var Tooltip = function ($) {
|
||||
selector: false,
|
||||
placement: 'top',
|
||||
offset: '0 0',
|
||||
constraints: []
|
||||
constraints: [],
|
||||
container: false
|
||||
};
|
||||
|
||||
var DefaultType = {
|
||||
@@ -58,7 +59,8 @@ var Tooltip = function ($) {
|
||||
selector: '(string|boolean)',
|
||||
placement: '(string|function)',
|
||||
offset: 'string',
|
||||
constraints: 'array'
|
||||
constraints: 'array',
|
||||
container: '(string|element|boolean)'
|
||||
};
|
||||
|
||||
var AttachmentMap = {
|
||||
@@ -234,7 +236,9 @@ var Tooltip = function ($) {
|
||||
|
||||
var attachment = this._getAttachment(placement);
|
||||
|
||||
$(tip).data(this.constructor.DATA_KEY, this).appendTo(document.body);
|
||||
var container = this.config.container === false ? document.body : $(this.config.container);
|
||||
|
||||
$(tip).data(this.constructor.DATA_KEY, this).appendTo(container);
|
||||
|
||||
$(this.element).trigger(this.constructor.Event.INSERTED);
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user