1.4.6-rc
This commit is contained in:
dist
bootstrap-editable
jquery-editable
jquery-ui-datepicker
css
js
js
jqueryui-editable
14
dist/bootstrap-editable/js/bootstrap-editable.js
vendored
14
dist/bootstrap-editable/js/bootstrap-editable.js
vendored
@ -894,7 +894,8 @@ Applied as jQuery method.
|
||||
|
||||
//methods
|
||||
Popup.prototype = {
|
||||
containerName: null, //tbd in child class
|
||||
containerName: null, //method to call container on element
|
||||
containerDataName: null, //object name in element's .data()
|
||||
innerCss: null, //tbd in child class
|
||||
containerClass: 'editable-container editable-popup', //css class applied to container element
|
||||
init: function(element, options) {
|
||||
@ -995,7 +996,16 @@ Applied as jQuery method.
|
||||
|
||||
/* returns container object */
|
||||
container: function() {
|
||||
return this.$element.data(this.containerDataName || this.containerName);
|
||||
var container;
|
||||
//first, try get it by `containerDataName`
|
||||
if(this.containerDataName) {
|
||||
if(container = this.$element.data(this.containerDataName)) {
|
||||
return container;
|
||||
}
|
||||
}
|
||||
//second, try `containerName`
|
||||
container = this.$element.data(this.containerName);
|
||||
return container;
|
||||
},
|
||||
|
||||
/* call native method of underlying container, e.g. this.$element.popover('method') */
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user