* Adjust code for task #91379 .
This commit is contained in:
+20
-23
@@ -244,10 +244,28 @@ $(function()
|
||||
}
|
||||
|
||||
refreshCheckbox()
|
||||
}).on('click', '#hisTrigger', function()
|
||||
{
|
||||
var $history = $('#history');
|
||||
var $icon = $(this);
|
||||
if($history.hasClass('hidden'))
|
||||
{
|
||||
$history.removeClass('hidden');
|
||||
$icon.addClass('text-primary');
|
||||
}
|
||||
else
|
||||
{
|
||||
$history.addClass('hidden');
|
||||
$icon.removeClass('text-primary');
|
||||
}
|
||||
}).on('click', '#closeBtn', function()
|
||||
{
|
||||
$('#history').addClass('hidden');
|
||||
$('#hisTrigger').removeClass('text-primary');
|
||||
});
|
||||
|
||||
$('#outline li.has-list').addClass('open in');
|
||||
$('#outline li.has-list>i+ul').prev('i').remove();
|
||||
$('#outline li.has-list > i + ul').prev('i').remove();
|
||||
$('.outline-toggle i.icon-menu-arrow-left').trigger('click');
|
||||
|
||||
$(document).on('click', '.detail-content a', function(event)
|
||||
@@ -268,7 +286,7 @@ $(function()
|
||||
if($.cookie('isFullScreen') == 1) fullScreen();
|
||||
$('#content [data-ride="tree"]').tree();
|
||||
$('#outline li.has-list').addClass('open in');
|
||||
$('#outline li.has-list>i+ul').prev('i').remove();
|
||||
$('#outline li.has-list > i + ul').prev('i').remove();
|
||||
if($('#markdownContent').val())
|
||||
{
|
||||
var simplemde = new SimpleMDE({element: $("#markdownContent")[0],toolbar:false, status: false});
|
||||
@@ -281,28 +299,7 @@ $(function()
|
||||
})
|
||||
|
||||
$('#history').append('<a id="closeBtn" href="###" class="btn btn-link"><i class="icon icon-close"></i></a>');
|
||||
$('#hisTrigger').on('click', function()
|
||||
{
|
||||
var $history = $('#history');
|
||||
var $icon = $(this);
|
||||
if($history.hasClass('hidden'))
|
||||
{
|
||||
$history.removeClass('hidden');
|
||||
$icon.addClass('text-primary');
|
||||
}
|
||||
else
|
||||
{
|
||||
$history.addClass('hidden');
|
||||
$icon.removeClass('text-primary');
|
||||
}
|
||||
})
|
||||
|
||||
$('#history').find('.btn.pull-right').removeClass('pull-right');
|
||||
$('#closeBtn').on('click', function()
|
||||
{
|
||||
$('#history').addClass('hidden');
|
||||
$('#hisTrigger').removeClass('text-primary');
|
||||
});
|
||||
$('#history').find('.btn.pull-right').removeClass('pull-right');
|
||||
if($('.files-list').length) $('#content .detail-content.article-content').css('height', 'calc(100vh - 300px)');
|
||||
$('.outline .outline-toggle i.icon-menu-arrow-left').trigger("click");
|
||||
|
||||
Reference in New Issue
Block a user