代码更新
This commit is contained in:
@@ -137,9 +137,6 @@ $(function($) {
|
||||
$(this).addClass('active');
|
||||
writeStorage(storage, 'config-skin', $(this).data('skin'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
setTimeout(function() {
|
||||
$('#content-wrapper > .row').css({
|
||||
opacity: 1
|
||||
@@ -200,7 +197,6 @@ $(function($) {
|
||||
$('#make-small-nav').click(function(e) {
|
||||
$('#page-wrapper').toggleClass('nav-small');
|
||||
});
|
||||
|
||||
setContentBody();
|
||||
$(window).smartresize(function() {
|
||||
if ($(document).width() <= 991) {
|
||||
@@ -208,7 +204,6 @@ $(function($) {
|
||||
}
|
||||
setContentBody();
|
||||
});
|
||||
|
||||
$('.mobile-search').click(function(e) {
|
||||
e.preventDefault();
|
||||
$('.mobile-search').addClass('active');
|
||||
@@ -281,9 +276,9 @@ $.fn.removeClassPrefix = function(prefix) {
|
||||
return this;
|
||||
};
|
||||
|
||||
function setContentBody(){
|
||||
function setContentBody() {
|
||||
header_height = $('header#header-navbar').height();
|
||||
if ($(window).height() - header_height -50 > $('#content-wrapper').height()) {
|
||||
$('#content-wrapper').height($(window).height() - header_height -50);
|
||||
if ($(window).height() - header_height - 50 > $('#content-wrapper').height()) {
|
||||
$('#content-wrapper').height($(window).height() - header_height - 50);
|
||||
}
|
||||
}
|
||||
6
public/static/admin/js/main.js
Normal file
6
public/static/admin/js/main.js
Normal file
@@ -0,0 +1,6 @@
|
||||
require.config({
|
||||
paths:{
|
||||
'vue':'/static/js/vue.js',
|
||||
"jquery":'/static/libs/jquery/jquery.min.js'
|
||||
}
|
||||
});
|
||||
5
public/static/js/require.js
Normal file
5
public/static/js/require.js
Normal file
File diff suppressed because one or more lines are too long
11944
public/static/js/vue.js
Normal file
11944
public/static/js/vue.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user