removed hardcoded fa-chevron icons from client js

v1.18.x
psychobunny 10 years ago
parent 7890c59dc5
commit b56e862838

@ -72,20 +72,20 @@ define('composer/resize', function() {
}
function toggleHeight(e) {
var triggerIconEl = $('.resizer i');
var resizer = $('.resizer');
if (e.clientY - resizeDown === 0){
var newPercentage = ($(window).height() - $('#header-menu').height() - 20) / $(window).height();
if (triggerIconEl.hasClass('fa-chevron-up')) {
if (!resizer.hasClass('maximized')) {
oldPercentage = getPercentage(postContainer);
doResize(postContainer, newPercentage);
triggerIconEl.addClass('fa-chevron-down').removeClass('fa-chevron-up');
resizer.addClass('maximized');
} else {
doResize(postContainer, oldPercentage);
triggerIconEl.addClass('fa-chevron-up').removeClass('fa-chevron-down');
resizer.removeClass('maximized');
}
} else {
triggerIconEl.addClass('fa-chevron-up').removeClass('fa-chevron-down');
resizer.removeClass('maximized');
}
}

Loading…
Cancel
Save