add check for tooltip presence in jqueryUI build
This commit is contained in:
parent
8baabe13cc
commit
a77664603b
@ -16,6 +16,12 @@
|
|||||||
splitOptions: function() {
|
splitOptions: function() {
|
||||||
this.containerOptions = {};
|
this.containerOptions = {};
|
||||||
this.formOptions = {};
|
this.formOptions = {};
|
||||||
|
|
||||||
|
//check that jQueryUI build contains tooltip widget
|
||||||
|
if(!$.ui[this.containerName]) {
|
||||||
|
$.error('Please use jQueryUI with "tooltip" widget! http://jqueryui.com/download');
|
||||||
|
return;
|
||||||
|
}
|
||||||
//defaults for tooltip
|
//defaults for tooltip
|
||||||
var cDef = $.ui[this.containerName].prototype.options;
|
var cDef = $.ui[this.containerName].prototype.options;
|
||||||
for(var k in this.options) {
|
for(var k in this.options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user