Fix show formatting help not appearing (#6423)

This commit is contained in:
Will Rossiter 2016-12-21 10:51:42 +13:00 committed by Christopher Joe
parent e893fc4c51
commit 7c76d2cb09
2 changed files with 13 additions and 3 deletions

View File

@ -1704,7 +1704,9 @@ n(166),a["default"].entwine("ss",function(e){e(".ss-toggle").entwine({onadd:func
}}})})},function(e,t,n){"use strict"
function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(1),a=i(r)
a["default"].entwine("ss",function(e){e(".memberdatetimeoptionset").entwine({onmatch:function t(){this.find(".toggle-content").hide(),this._super()}}),e(".memberdatetimeoptionset .toggle").entwine({onclick:function n(t){
return e(this).closest(".form__field-description").parent().find(".toggle-content").toggle(),!1}})})},function(e,t,n){(function(e){"use strict"
t.preventDefault()
var n=e(this).closest(".form__field-description").parent().find(".toggle-content")
n.is(":visible")?n.hide():n.show()}})})},function(e,t,n){(function(e){"use strict"
function t(e){return e&&e.__esModule?e:{"default":e}}var i=n(1),r=t(i),a=n(114),o=t(a)
n(196),n(197),r["default"].entwine("ss",function(t){var n,i
t(window).bind("resize.treedropdownfield",function(){var e=function o(){t(".TreeDropdownField").closePanel()}

View File

@ -11,8 +11,16 @@ $.entwine('ss', function($){
$('.memberdatetimeoptionset .toggle').entwine({
onclick: function(e) {
$(this).closest('.form__field-description').parent().find('.toggle-content').toggle();
return false;
e.preventDefault();
var content = $(this).closest('.form__field-description').parent()
.find('.toggle-content');
if(content.is(":visible")) {
content.hide();
} else {
content.show();
}
}
});