diff --git a/Bootstrap.Admin/Bootstrap.Admin.csproj b/Bootstrap.Admin/Bootstrap.Admin.csproj
index 9b1d0b8f..b7de3fcb 100644
--- a/Bootstrap.Admin/Bootstrap.Admin.csproj
+++ b/Bootstrap.Admin/Bootstrap.Admin.csproj
@@ -125,6 +125,8 @@
+
+
@@ -173,6 +175,8 @@
+
+
diff --git a/Bootstrap.Admin/Content/css/tipso.css b/Bootstrap.Admin/Content/css/tipso.css
new file mode 100644
index 00000000..c530a673
--- /dev/null
+++ b/Bootstrap.Admin/Content/css/tipso.css
@@ -0,0 +1,72 @@
+/* Tipso Bubble Styles */
+.tipso_bubble, .tipso_bubble > .tipso_arrow {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+.tipso_bubble {
+ position: absolute;
+ text-align: center;
+ border-radius: 4px;
+ z-index: 9999;
+ padding: 10px;
+ filter: alpha(opacity=80);
+ opacity: 0.8;
+}
+
+.tipso_style {
+}
+
+span.tipso_style {
+ cursor: pointer;
+}
+
+/* Tipso Bubble Div */
+.tipso_bubble > .tipso_arrow {
+ position: absolute;
+ width: 0;
+ height: 0;
+ border: 8px solid;
+ pointer-events: none;
+}
+
+.tipso_bubble.top > .tipso_arrow {
+ border-top-color: #000;
+ border-right-color: transparent;
+ border-left-color: transparent;
+ border-bottom-color: transparent;
+ top: 100%;
+ left: 50%;
+ margin-left: -8px;
+}
+
+.tipso_bubble.bottom > .tipso_arrow {
+ border-bottom-color: #000;
+ border-right-color: transparent;
+ border-left-color: transparent;
+ border-top-color: transparent;
+ bottom: 100%;
+ left: 50%;
+ margin-left: -8px;
+}
+
+.tipso_bubble.left > .tipso_arrow {
+ border-left-color: #000;
+ border-top-color: transparent;
+ border-bottom-color: transparent;
+ border-right-color: transparent;
+ top: 50%;
+ left: 100%;
+ margin-top: -8px;
+}
+
+.tipso_bubble.right > .tipso_arrow {
+ border-right-color: #000;
+ border-top-color: transparent;
+ border-bottom-color: transparent;
+ border-left-color: transparent;
+ top: 50%;
+ right: 100%;
+ margin-top: -8px;
+}
diff --git a/Bootstrap.Admin/Content/css/tipso.min.css b/Bootstrap.Admin/Content/css/tipso.min.css
new file mode 100644
index 00000000..d9e07f3f
--- /dev/null
+++ b/Bootstrap.Admin/Content/css/tipso.min.css
@@ -0,0 +1 @@
+.tipso_bubble,.tipso_bubble>.tipso_arrow{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tipso_bubble{position:absolute;text-align:center;border-radius:6px;z-index:9999;padding:10px}.tipso_style{cursor:help;border-bottom:1px dotted}.tipso_bubble>.tipso_arrow{position:absolute;width:0;height:0;border:8px solid;pointer-events:none}.tipso_bubble.top>.tipso_arrow{border-color:#000 transparent transparent;top:100%;left:50%;margin-left:-8px}.tipso_bubble.bottom>.tipso_arrow{border-color:transparent transparent #000;bottom:100%;left:50%;margin-left:-8px}.tipso_bubble.left>.tipso_arrow{border-color:transparent transparent transparent #000;top:50%;left:100%;margin-top:-8px}.tipso_bubble.right>.tipso_arrow{border-color:transparent #000 transparent transparent;top:50%;right:100%;margin-top:-8px}
\ No newline at end of file
diff --git a/Bootstrap.Admin/Content/js/Longbow.Common.js b/Bootstrap.Admin/Content/js/Longbow.Common.js
index 2a0ba784..8638c516 100644
--- a/Bootstrap.Admin/Content/js/Longbow.Common.js
+++ b/Bootstrap.Admin/Content/js/Longbow.Common.js
@@ -147,22 +147,18 @@
messages: $.extend({}, messages),
highlight: function (element, errorClass, validClass) {
$(element).parents('.form-group').addClass(errorClass).removeClass(validClass);
+ $(element).tipso({
+ useTitle: false,
+ position: 'top',
+ background: '#a94442'
+ });
},
unhighlight: function (element, errorClass, validClass) {
$(element).parents('.form-group').removeClass(errorClass).addClass(validClass);
- $(element).popover('destroy');
+ $(element).tipso('hide').tipso('destroy');
},
errorPlacement: function (label, element) {
- $(element).popover('destroy');
- $(element).popover({
- animation: true,
- delay: { "show": 100, "hide": 100 },
- container: 'form',
- trigger: 'manual',
- content: $(label).text(),
- placement: 'auto'
- });
- $(element).popover('show');
+ $(element).tipso('update', 'content', $(label).text());
}
});
if (handler && $.isArray(handler.button)) {
diff --git a/Bootstrap.Admin/Content/js/common-scripts.js b/Bootstrap.Admin/Content/js/common-scripts.js
index cff1c0d1..3535cfe1 100644
--- a/Bootstrap.Admin/Content/js/common-scripts.js
+++ b/Bootstrap.Admin/Content/js/common-scripts.js
@@ -15,7 +15,7 @@
$('#main-content, .content-body, body').animate({
scrollTop: 0
}, 200);
- });
+ }).tipso({ position: 'left', background: '#333' });
// breadcrumb
var arch = $('#nav-accordion').find('a.active').last();
diff --git a/Bootstrap.Admin/Content/js/framework.js b/Bootstrap.Admin/Content/js/framework.js
index 5b4f696c..3cc571c4 100644
--- a/Bootstrap.Admin/Content/js/framework.js
+++ b/Bootstrap.Admin/Content/js/framework.js
@@ -35,7 +35,10 @@
if (that.options.validateForm && that.options.validateForm.constructor === String) {
var v = $('#' + that.options.validateForm);
var vf = v.validate();
- vf.currentElements.each(function () { $(this).popover('destroy'); })
+ vf.currentElements.each(function () {
+ var $this = $(this);
+ if ($this.hasClass('tipso_style')) $this.tipso('hide').tipso('destroy');
+ })
vf.resetForm();
v.find('div.form-group').removeClass("has-error has-success");
}
diff --git a/Bootstrap.Admin/Content/js/tipso.js b/Bootstrap.Admin/Content/js/tipso.js
new file mode 100644
index 00000000..8ea1a771
--- /dev/null
+++ b/Bootstrap.Admin/Content/js/tipso.js
@@ -0,0 +1,423 @@
+/*!
+ * tipso - A Lightweight Responsive jQuery Tooltip Plugin v1.0.1
+ * Copyright (c) 2014 Bojan Petkovski
+ * http://tipso.object505.com
+ * Licensed under the MIT license
+ * http://object505.mit-license.org/
+ */
+; (function ($, window, document, undefined) {
+ var pluginName = "tipso",
+ defaults = {
+ speed: 400,
+ background: '#55b555',
+ color: '#ffffff',
+ position: 'top',
+ width: 200,
+ delay: 200,
+ offsetX: 0,
+ offsetY: 0,
+ content: null,
+ ajaxContentUrl: null,
+ useTitle: true,
+ onBeforeShow: null,
+ onShow: null,
+ onHide: null
+ };
+
+ function Plugin(element, options) {
+ this.element = $(element);
+ this.settings = $.extend({}, defaults, options);
+ this._defaults = defaults;
+ this._name = pluginName;
+ this._title = this.element.attr('title');
+ this.mode = 'hide';
+ this.init();
+ }
+ $.extend(Plugin.prototype, {
+ init: function () {
+ var obj = this,
+ $e = this.element;
+ $e.addClass('tipso_style').removeAttr('title');
+ if (isTouchSupported()) {
+ $e.on('click' + '.' + pluginName, function (e) {
+ obj.mode == 'hide' ? obj.show() : obj.hide();
+ e.stopPropagation();
+ });
+ $(document).on('click', function () {
+ if (obj.mode == 'show') {
+ obj.hide();
+ }
+ });
+ } else {
+ $e.on('mouseover' + '.' + pluginName, function () {
+ obj.show();
+ });
+ $e.on('mouseout' + '.' + pluginName, function () {
+ obj.hide();
+ });
+ }
+ },
+ tooltip: function () {
+ if (!this.tipso_bubble) {
+ this.tipso_bubble = $(
+ '
'
+ );
+ }
+ return this.tipso_bubble;
+ },
+ show: function () {
+ var tipso_bubble = this.tooltip(),
+ obj = this,
+ $win = $(window);
+ if ($.isFunction(obj.settings.onBeforeShow)) {
+ obj.settings.onBeforeShow($(this));
+ }
+ tipso_bubble.css({
+ background: obj.settings.background,
+ color: obj.settings.color,
+ width: obj.settings.width
+ }).hide();
+ tipso_bubble.find('.tipso_content').html(obj.content());
+ reposition(obj);
+ $win.resize(function () {
+ reposition(obj);
+ });
+ obj.timeout = window.setTimeout(function () {
+ tipso_bubble.appendTo('body').stop(true, true).fadeIn(obj.settings
+ .speed, function () {
+ obj.mode = 'show';
+ if ($.isFunction(obj.settings.onShow)) {
+ obj.settings.onShow($(this));
+ }
+ });
+ }, obj.settings.delay);
+ },
+ hide: function () {
+ var obj = this,
+ tipso_bubble = this.tooltip();
+ window.clearTimeout(obj.timeout);
+ obj.timeout = null;
+ tipso_bubble.stop(true, true).fadeOut(obj.settings.speed,
+ function () {
+ $(this).remove();
+ if ($.isFunction(obj.settings.onHide) && obj.mode == 'show') {
+ obj.settings.onHide($(this));
+ }
+ obj.mode = 'hide';
+ });
+ },
+ destroy: function () {
+ var $e = this.element;
+ $e.off('.' + pluginName);
+ $e.removeData(pluginName);
+ $e.removeClass('tipso_style').attr('title', this._title);
+ },
+ content: function () {
+ var content,
+ $e = this.element,
+ obj = this,
+ title = this._title;
+ if (obj.settings.ajaxContentUrl) {
+ content = $.ajax({
+ type: "GET",
+ url: obj.settings.ajaxContentUrl,
+ async: false
+ }).responseText;
+ } else if (obj.settings.content) {
+ content = obj.settings.content;
+ } else {
+ if (obj.settings.useTitle === true) {
+ content = title;
+ } else {
+ content = $e.data('tipso');
+ }
+ }
+ return content;
+ },
+ update: function (key, value) {
+ var obj = this;
+ if (value) {
+ obj.settings[key] = value;
+ } else {
+ return obj.settings[key];
+ }
+ }
+ });
+
+ function isTouchSupported() {
+ var msTouchEnabled = window.navigator.msMaxTouchPoints;
+ var generalTouchEnabled = "ontouchstart" in document.createElement(
+ "div");
+ if (msTouchEnabled || generalTouchEnabled) {
+ return true;
+ }
+ return false;
+ }
+
+ function realHeight(obj) {
+ var clone = obj.clone();
+ clone.css("visibility", "hidden");
+ $('body').append(clone);
+ var height = clone.outerHeight();
+ clone.remove();
+ return height;
+ }
+
+ function reposition(thisthat) {
+ var tipso_bubble = thisthat.tooltip(),
+ $e = thisthat.element,
+ obj = thisthat,
+ $win = $(window),
+ arrow = 10,
+ pos_top, pos_left, diff;
+ switch (obj.settings.position) {
+ case 'top':
+ pos_left = $e.offset().left + ($e.outerWidth() / 2) - (tipso_bubble
+ .outerWidth() / 2);
+ pos_top = $e.offset().top - realHeight(tipso_bubble) - arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: -8
+ });
+ if (pos_top < $win.scrollTop()) {
+ pos_top = $e.offset().top + $e.outerHeight() + arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-bottom-color': obj.settings.background,
+ 'border-top-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('bottom');
+ } else {
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-top-color': obj.settings.background,
+ 'border-bottom-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('top');
+ }
+ break;
+ case 'bottom':
+ pos_left = $e.offset().left + ($e.outerWidth() / 2) - (tipso_bubble
+ .outerWidth() / 2);
+ pos_top = $e.offset().top + $e.outerHeight() + arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: -8
+ });
+ if (pos_top + realHeight(tipso_bubble) > $win.scrollTop() + $win.outerHeight()) {
+ pos_top = $e.offset().top - realHeight(tipso_bubble) - arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-top-color': obj.settings.background,
+ 'border-bottom-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('top');
+ } else {
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-bottom-color': obj.settings.background,
+ 'border-top-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass(obj.settings.position);
+ }
+ break;
+ case 'left':
+ pos_left = $e.offset().left - tipso_bubble.outerWidth() - arrow;
+ pos_top = $e.offset().top + ($e.outerHeight() / 2) - (realHeight(
+ tipso_bubble) / 2);
+ tipso_bubble.find('.tipso_arrow').css({
+ marginTop: -8,
+ marginLeft: ''
+ });
+ if (pos_left < $win.scrollLeft()) {
+ pos_left = $e.offset().left + $e.outerWidth() + arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-right-color': obj.settings.background,
+ 'border-left-color': 'transparent',
+ 'border-top-color': 'transparent',
+ 'border-bottom-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('right');
+ } else {
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-left-color': obj.settings.background,
+ 'border-right-color': 'transparent',
+ 'border-top-color': 'transparent',
+ 'border-bottom-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass(obj.settings.position);
+ }
+ break;
+ case 'right':
+ pos_left = $e.offset().left + $e.outerWidth() + arrow;
+ pos_top = $e.offset().top + ($e.outerHeight() / 2) - (realHeight(
+ tipso_bubble) / 2);
+ tipso_bubble.find('.tipso_arrow').css({
+ marginTop: -8,
+ marginLeft: ''
+ });
+ if (pos_left + arrow + obj.settings.width > $win.scrollLeft() +
+ $win.outerWidth()) {
+ pos_left = $e.offset().left - tipso_bubble.outerWidth() - arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-left-color': obj.settings.background,
+ 'border-right-color': 'transparent',
+ 'border-top-color': 'transparent',
+ 'border-bottom-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('left');
+ } else {
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-right-color': obj.settings.background,
+ 'border-left-color': 'transparent',
+ 'border-top-color': 'transparent',
+ 'border-bottom-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass(obj.settings.position);
+ }
+ break;
+ }
+ if (pos_left < $win.scrollLeft() && (obj.settings.position == 'bottom' ||
+ obj.settings.position == 'top')) {
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: pos_left - 8
+ });
+ pos_left = 0;
+ }
+ if (pos_left + obj.settings.width > $win.outerWidth() && (obj.settings.position ==
+ 'bottom' || obj.settings.position == 'top')) {
+ diff = $win.outerWidth() - (pos_left + obj.settings.width);
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: -diff - 8,
+ marginTop: ''
+ });
+ pos_left = pos_left + diff;
+ }
+ if (pos_left < $win.scrollLeft() && (obj.settings.position == 'left' ||
+ obj.settings.position == 'right')) {
+ pos_left = $e.offset().left + ($e.outerWidth() / 2) - (tipso_bubble.outerWidth() /
+ 2);
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: -8,
+ marginTop: ''
+ });
+ pos_top = $e.offset().top - realHeight(tipso_bubble) - arrow;
+ if (pos_top < $win.scrollTop()) {
+ pos_top = $e.offset().top + $e.outerHeight() + arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-bottom-color': obj.settings.background,
+ 'border-top-color': 'transparent',
+ 'border-left-color': 'transparent',
+ 'border-right-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('bottom');
+ } else {
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-top-color': obj.settings.background,
+ 'border-bottom-color': 'transparent',
+ 'border-left-color': 'transparent',
+ 'border-right-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('top');
+ }
+ if (pos_left + obj.settings.width > $win.outerWidth()) {
+ diff = $win.outerWidth() - (pos_left + obj.settings.width);
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: -diff - 8,
+ marginTop: ''
+ });
+ pos_left = pos_left + diff;
+ }
+ if (pos_left < $win.scrollLeft()) {
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: pos_left - 8
+ });
+ pos_left = 0;
+ }
+ }
+ if (pos_left + obj.settings.width > $win.outerWidth() && (obj.settings.position ==
+ 'left' || obj.settings.position == 'right')) {
+ pos_left = $e.offset().left + ($e.outerWidth() / 2) - (tipso_bubble.outerWidth() /
+ 2);
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: -8,
+ marginTop: ''
+ });
+ pos_top = $e.offset().top - realHeight(tipso_bubble) - arrow;
+ if (pos_top < $win.scrollTop()) {
+ pos_top = $e.offset().top + $e.outerHeight() + arrow;
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-bottom-color': obj.settings.background,
+ 'border-top-color': 'transparent',
+ 'border-left-color': 'transparent',
+ 'border-right-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('bottom');
+ } else {
+ tipso_bubble.find('.tipso_arrow').css({
+ 'border-top-color': obj.settings.background,
+ 'border-bottom-color': 'transparent',
+ 'border-left-color': 'transparent',
+ 'border-right-color': 'transparent'
+ });
+ tipso_bubble.removeClass('top bottom left right');
+ tipso_bubble.addClass('top');
+ }
+ if (pos_left + obj.settings.width > $win.outerWidth()) {
+ diff = $win.outerWidth() - (pos_left + obj.settings.width);
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: -diff - 8,
+ marginTop: ''
+ });
+ pos_left = pos_left + diff;
+ }
+ if (pos_left < $win.scrollLeft()) {
+ tipso_bubble.find('.tipso_arrow').css({
+ marginLeft: pos_left - 8
+ });
+ pos_left = 0;
+ }
+ }
+ tipso_bubble.css({
+ left: pos_left + obj.settings.offsetX,
+ top: pos_top + obj.settings.offsetY
+ });
+ }
+ $[pluginName] = $.fn[pluginName] = function (options) {
+ var args = arguments;
+ if (options === undefined || typeof options === 'object') {
+ if (!(this instanceof $)) {
+ $.extend(defaults, options);
+ }
+ return this.each(function () {
+ if (!$.data(this, 'plugin_' + pluginName)) {
+ $.data(this, 'plugin_' + pluginName, new Plugin(this, options));
+ }
+ });
+ } else if (typeof options === 'string' && options[0] !== '_' && options !==
+ 'init') {
+ var returns;
+ this.each(function () {
+ var instance = $.data(this, 'plugin_' + pluginName);
+ if (!instance) {
+ instance = $.data(this, 'plugin_' + pluginName, new Plugin(
+ this, options));
+ }
+ if (instance instanceof Plugin && typeof instance[options] ===
+ 'function') {
+ returns = instance[options].apply(instance, Array.prototype.slice
+ .call(args, 1));
+ }
+ if (options === 'destroy') {
+ $.data(this, 'plugin_' + pluginName, null);
+ }
+ });
+ return returns !== undefined ? returns : this;
+ }
+ };
+})(jQuery, window, document);
\ No newline at end of file
diff --git a/Bootstrap.Admin/Content/js/tipso.min.js b/Bootstrap.Admin/Content/js/tipso.min.js
new file mode 100644
index 00000000..b6573572
--- /dev/null
+++ b/Bootstrap.Admin/Content/js/tipso.min.js
@@ -0,0 +1,8 @@
+/*!
+ * tipso - A Lightweight Responsive jQuery Tooltip Plugin v1.0.1
+ * Copyright (c) 2014 Bojan Petkovski
+ * http://tipso.object505.com
+ * Licensed under the MIT license
+ * http://object505.mit-license.org/
+ */
+!function(t,o,s,e){function r(o,s){this.element=t(o),this.settings=t.extend({},l,s),this._defaults=l,this._name=d,this._title=this.element.attr("title"),this.mode="hide",this.init()}function i(){var t=o.navigator.msMaxTouchPoints,e="ontouchstart"in s.createElement("div");return t||e?!0:!1}function n(o){var s=o.clone();s.css("visibility","hidden"),t("body").append(s);var e=s.outerHeight();return s.remove(),e}function a(s){var e,r,i,a=s.tooltip(),d=s.element,l=s,f=t(o),p=10;switch(l.settings.position){case"top":r=d.offset().left+d.outerWidth()/2-a.outerWidth()/2,e=d.offset().top-n(a)-p,a.find(".tipso_arrow").css({marginLeft:-8}),ef.scrollTop()+f.outerHeight()?(e=d.offset().top-n(a)-p,a.find(".tipso_arrow").css({"border-top-color":l.settings.background,"border-bottom-color":"transparent"}),a.removeClass("top bottom left right"),a.addClass("top")):(a.find(".tipso_arrow").css({"border-bottom-color":l.settings.background,"border-top-color":"transparent"}),a.removeClass("top bottom left right"),a.addClass(l.settings.position));break;case"left":r=d.offset().left-a.outerWidth()-p,e=d.offset().top+d.outerHeight()/2-n(a)/2,a.find(".tipso_arrow").css({marginTop:-8,marginLeft:""}),rf.scrollLeft()+f.outerWidth()?(r=d.offset().left-a.outerWidth()-p,a.find(".tipso_arrow").css({"border-left-color":l.settings.background,"border-right-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),a.removeClass("top bottom left right"),a.addClass("left")):(a.find(".tipso_arrow").css({"border-right-color":l.settings.background,"border-left-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),a.removeClass("top bottom left right"),a.addClass(l.settings.position))}rf.outerWidth()&&("bottom"==l.settings.position||"top"==l.settings.position)&&(i=f.outerWidth()-(r+l.settings.width),a.find(".tipso_arrow").css({marginLeft:-i-8,marginTop:""}),r+=i),rf.outerWidth()&&(i=f.outerWidth()-(r+l.settings.width),a.find(".tipso_arrow").css({marginLeft:-i-8,marginTop:""}),r+=i),rf.outerWidth()&&("left"==l.settings.position||"right"==l.settings.position)&&(r=d.offset().left+d.outerWidth()/2-a.outerWidth()/2,a.find(".tipso_arrow").css({marginLeft:-8,marginTop:""}),e=d.offset().top-n(a)-p,ef.outerWidth()&&(i=f.outerWidth()-(r+l.settings.width),a.find(".tipso_arrow").css({marginLeft:-i-8,marginTop:""}),r+=i),r')),this.tipso_bubble},show:function(){var s=this.tooltip(),e=this,r=t(o);t.isFunction(e.settings.onBeforeShow)&&e.settings.onBeforeShow(t(this)),s.css({background:e.settings.background,color:e.settings.color,width:e.settings.width}).hide(),s.find(".tipso_content").html(e.content()),a(e),r.resize(function(){a(e)}),e.timeout=o.setTimeout(function(){s.appendTo("body").stop(!0,!0).fadeIn(e.settings.speed,function(){e.mode="show",t.isFunction(e.settings.onShow)&&e.settings.onShow(t(this))})},e.settings.delay)},hide:function(){var s=this,e=this.tooltip();o.clearTimeout(s.timeout),s.timeout=null,e.stop(!0,!0).fadeOut(s.settings.speed,function(){t(this).remove(),t.isFunction(s.settings.onHide)&&"show"==s.mode&&s.settings.onHide(t(this)),s.mode="hide"})},destroy:function(){var t=this.element;t.off("."+d),t.removeData(d),t.removeClass("tipso_style").attr("title",this._title)},content:function(){var o,s=this.element,e=this,r=this._title;return o=e.settings.ajaxContentUrl?t.ajax({type:"GET",url:e.settings.ajaxContentUrl,async:!1}).responseText:e.settings.content?e.settings.content:e.settings.useTitle===!0?r:s.data("tipso")},update:function(t,o){var s=this;return o?void(s.settings[t]=o):s.settings[t]}}),t[d]=t.fn[d]=function(o){var s=arguments;if(o===e||"object"==typeof o)return this instanceof t||t.extend(l,o),this.each(function(){t.data(this,"plugin_"+d)||t.data(this,"plugin_"+d,new r(this,o))});if("string"==typeof o&&"_"!==o[0]&&"init"!==o){var i;return this.each(function(){var e=t.data(this,"plugin_"+d);e||(e=t.data(this,"plugin_"+d,new r(this,o))),e instanceof r&&"function"==typeof e[o]&&(i=e[o].apply(e,Array.prototype.slice.call(s,1))),"destroy"===o&&t.data(this,"plugin_"+d,null)}),i!==e?i:this}}}(jQuery,window,document);
\ No newline at end of file
diff --git a/Bootstrap.Admin/Scripts/Profiles.js b/Bootstrap.Admin/Scripts/Profiles.js
index 99028c23..a5fcfe8e 100644
--- a/Bootstrap.Admin/Scripts/Profiles.js
+++ b/Bootstrap.Admin/Scripts/Profiles.js
@@ -90,7 +90,7 @@
if (result && options.key == '') {
result = $.parseJSON(result);
if ($.isArray(result)) {
- var html = '';
+ var html = '';
var content = result.sort(function (x, y) {
return x.Key > y.Key ? 1 : -1;
}).map(function (ele) {
@@ -134,15 +134,14 @@
}).join('');
$sortable.append($.format('{0}-{1}', options.item.Desc, options.item.Key));
$sortable.append(content);
- $('.tooltips').tooltip('destroy');
- $('.tooltips').tooltip();
+ $('.tipso_style').tipso();
}
}
}
});
}
- $('#refreshCache').click(function () { listCacheUrl(); }).trigger('click');
- $('#clearCache').click(function () { listCacheUrl({ clear: true }); });
+ $('#refreshCache').tipso({ position: 'left' }).click(function () { listCacheUrl(); }).trigger('click');
+ $('#clearCache').tipso({ position: 'left' }).click(function () { listCacheUrl({ clear: true }); });
$sortable.on('click', '.btn', function () {
console.log($(this).attr('data-key'));
listCache({ key: $(this).attr('data-key'), url: $(this).attr('data-url') });
diff --git a/Bootstrap.Admin/Scripts/_references.js b/Bootstrap.Admin/Scripts/_references.js
index c6947c29..e0a1650b 100644
Binary files a/Bootstrap.Admin/Scripts/_references.js and b/Bootstrap.Admin/Scripts/_references.js differ
diff --git a/Bootstrap.Admin/Views/Shared/Footer.cshtml b/Bootstrap.Admin/Views/Shared/Footer.cshtml
index 70299c6a..d1a25f16 100644
--- a/Bootstrap.Admin/Views/Shared/Footer.cshtml
+++ b/Bootstrap.Admin/Views/Shared/Footer.cshtml
@@ -2,7 +2,7 @@