Commit 7de0e32c979bca382b808f63d54dfd39f3aeefc4
1 parent
66117399
fixed
Showing
1 changed file
with
2 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/libs/jquery/jquery_plugin/color-picker/jquery.minicolors.min.js
... | ... | @@ -13,8 +13,8 @@ |
13 | 13 | } function E(a) { |
14 | 14 | var b = a.parent(); |
15 | 15 | a.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"); b.before(a).remove() |
16 | - } function C(a) { c("#modeleditstyle").draggable("disable"); var b = a.parent(), d = b.find(".minicolors-panel"), e = a.data("minicolors-settings"); !a.data("minicolors-initialized") || a.prop("disabled") || b.hasClass("minicolors-inline") || b.hasClass("minicolors-focus") || (z(), b.addClass("minicolors-focus"), d.stop(!0, !0).fadeIn(e.showSpeed, function () { e.show && e.show.call(a.get(0)) })) } | |
17 | - function z() { c(".minicolors-focus").each(function () { var a = c(this), b = a.find(".minicolors-input"), d = a.find(".minicolors-panel"), e = b.data("minicolors-settings"); d.fadeOut(e.hideSpeed, function () { c("#modeleditstyle").draggable("enable"); e.hide && e.hide.call(b.get(0)); a.removeClass("minicolors-focus") }) }) } function F(a, b, d) { | |
16 | + } function C(a) { c("#modeleditstyle").draggable("disable"); c("#annotationTextModal").draggable("disable"); var b = a.parent(), d = b.find(".minicolors-panel"), e = a.data("minicolors-settings"); !a.data("minicolors-initialized") || a.prop("disabled") || b.hasClass("minicolors-inline") || b.hasClass("minicolors-focus") || (z(), b.addClass("minicolors-focus"), d.stop(!0, !0).fadeIn(e.showSpeed, function () { e.show && e.show.call(a.get(0)) })) } | |
17 | + function z() { c(".minicolors-focus").each(function () { var a = c(this), b = a.find(".minicolors-input"), d = a.find(".minicolors-panel"), e = b.data("minicolors-settings"); d.fadeOut(e.hideSpeed, function () { c("#modeleditstyle").draggable("enable"); c("#annotationTextModal").draggable("enable"); e.hide && e.hide.call(b.get(0)); a.removeClass("minicolors-focus") }) }) } function F(a, b, d) { | |
18 | 18 | var e = a.parents(".minicolors").find(".minicolors-input"), c = e.data("minicolors-settings"), l = a.find("[class$=-picker]"), h = a.offset().left, k = a.offset().top, g = Math.round(b.pageX - h), f = Math.round(b.pageY - |
19 | 19 | k); d = d ? c.animationSpeed : 0; b.originalEvent.changedTouches && (g = b.originalEvent.changedTouches[0].pageX - h, f = b.originalEvent.changedTouches[0].pageY - k); 0 > g && (g = 0); 0 > f && (f = 0); g > a.width() && (g = a.width()); f > a.height() && (f = a.height()); a.parent().is(".minicolors-slider-wheel") && l.parent().is(".minicolors-grid") && (h = 75 - g, k = 75 - f, b = Math.sqrt(h * h + k * k), h = Math.atan2(k, h), 0 > h && (h += 2 * Math.PI), 75 < b && (b = 75, g = 75 - 75 * Math.cos(h), f = 75 - 75 * Math.sin(h)), g = Math.round(g), f = Math.round(f)); a.is(".minicolors-grid") ? l.stop(!0).animate({ |
20 | 20 | top: f + | ... | ... |