Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/Divi/epanel/js
File: layout.js
(function($){
[0] Fix | Delete
var initLayout = function() {
[1] Fix | Delete
var hash = window.location.hash.replace('#', '');
[2] Fix | Delete
var currentTab = $('ul.navigationTabs a')
[3] Fix | Delete
.bind('click', showTab)
[4] Fix | Delete
.filter('a[rel=' + hash + ']');
[5] Fix | Delete
if (currentTab.size() == 0) {
[6] Fix | Delete
currentTab = $('ul.navigationTabs a:first');
[7] Fix | Delete
}
[8] Fix | Delete
showTab.apply(currentTab.get(0));
[9] Fix | Delete
$('#colorpickerHolder').ColorPicker({flat: true});
[10] Fix | Delete
$('.colorpopup').ColorPicker({
[11] Fix | Delete
onSubmit: function(hsb, hex, rgb, el) {
[12] Fix | Delete
$(el).val(hex);
[13] Fix | Delete
$(el).ColorPickerHide();
[14] Fix | Delete
},
[15] Fix | Delete
onBeforeShow: function () {
[16] Fix | Delete
$(this).ColorPickerSetColor(this.value);
[17] Fix | Delete
}
[18] Fix | Delete
})
[19] Fix | Delete
};
[20] Fix | Delete
[21] Fix | Delete
var showTab = function(e) {
[22] Fix | Delete
var tabIndex = $('ul.navigationTabs a')
[23] Fix | Delete
.removeClass('active')
[24] Fix | Delete
.index(this);
[25] Fix | Delete
$(this)
[26] Fix | Delete
.addClass('active')
[27] Fix | Delete
.blur();
[28] Fix | Delete
$('div.tab')
[29] Fix | Delete
.hide()
[30] Fix | Delete
.eq(tabIndex)
[31] Fix | Delete
.show();
[32] Fix | Delete
};
[33] Fix | Delete
[34] Fix | Delete
EYE.register(initLayout, 'init');
[35] Fix | Delete
})(jQuery)
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function