From a77664603b84b27fbd17d084dae7205c34fb16d8 Mon Sep 17 00:00:00 2001 From: vitalets <noginsk@rambler.ru> Date: Tue, 6 Aug 2013 11:00:34 +0400 Subject: [PATCH] add check for tooltip presence in jqueryUI build --- src/containers/editable-tooltip.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/containers/editable-tooltip.js b/src/containers/editable-tooltip.js index ddfbf6f..ca057d3 100644 --- a/src/containers/editable-tooltip.js +++ b/src/containers/editable-tooltip.js @@ -16,6 +16,12 @@ splitOptions: function() { this.containerOptions = {}; 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 var cDef = $.ui[this.containerName].prototype.options; for(var k in this.options) {