进行了一些小修复
This commit is contained in:
@@ -1885,6 +1885,7 @@ _win.bd.on('click', '[remote-box]', function () {
|
||||
jQuery.post(remote, null, function (data) {
|
||||
_this.html(data).removeAttr('remote-box');
|
||||
auto_fun();
|
||||
_this.trigger('aksrt:remote-loaded');
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -3580,9 +3581,19 @@ _win.bd.on('submit', '.main-search form', function () {
|
||||
//搜索功能
|
||||
_win.bd.on('click', '.main-search-btn', function () {
|
||||
var _this = jQuery(this);
|
||||
var _search_form = jQuery('.main-search form');
|
||||
jQuery('.main-search').addClass('show');
|
||||
|
||||
var _remote_search = jQuery('.main-search [remote-box]').first();
|
||||
if (_remote_search.length) {
|
||||
_remote_search.one('aksrt:remote-loaded', function () {
|
||||
_this.trigger('click');
|
||||
});
|
||||
_remote_search.trigger('click');
|
||||
return;
|
||||
}
|
||||
|
||||
var _search_form = jQuery('.main-search form');
|
||||
|
||||
if (_search_form.length) {
|
||||
var attr_ = 'search-';
|
||||
var obj = {
|
||||
@@ -4470,6 +4481,11 @@ function tilt_cases_init() {
|
||||
return;
|
||||
}
|
||||
|
||||
var cases = jQuery('.vanilla-tilt:not(.is-initialized)');
|
||||
if (!cases.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
function setTranslate3d(imgs, translate3d) {
|
||||
//先获取原有的transform
|
||||
var transform = imgs[0].style.transform;
|
||||
@@ -4483,7 +4499,7 @@ function tilt_cases_init() {
|
||||
}
|
||||
|
||||
tbquire(['tilt'], function () {
|
||||
jQuery('.vanilla-tilt:not(.is-initialized)').each(function () {
|
||||
cases.each(function () {
|
||||
var _this = jQuery(this);
|
||||
var imgs = _this.find('img');
|
||||
|
||||
@@ -4584,13 +4600,6 @@ jQuery(document).ready(function () {
|
||||
});
|
||||
}
|
||||
|
||||
setTimeout(function () {
|
||||
//获取登录用户数据,延迟2秒执行
|
||||
jQuery.post(_win.ajax_url, {
|
||||
action: 'get_current_user',
|
||||
});
|
||||
}, 1000);
|
||||
|
||||
//内容高度限制
|
||||
posts_limit_height();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user