我在客户网站上使用jvector maps映射,他们知道要我转换为Concrete5,以便他们可以自己编辑。一切正常,直到我尝试重新创建使用jVector映射的页面。当我弹出以下脚本时,当悬停时,该脚本允许我使用地图并为不同的部分加上颜色,从而使Concrete5 admin部分的“ edit”部分无法正常工作,这意味着我既看不到编辑栏/按钮,也看不到已经处于编辑模式,实际上无法单击可编辑区域。这是我正在谈论的脚本:
$(function(){
$('#world-map').vectorMap({
map: 'world_merc_en',
backgroundColor:'#FFF',
onRegionClick: function(event, code) {
if (code === 'US') {
window.location = 'espiner/index.php/global-medical-partners'
}else if (code === 'CA') {
window.location = 'espiner/index.php/medivogue'
}else if (code === 'ES') {
window.location = 'espiner/index.php/prim'
}else if (code === 'GB') {
window.location = 'espiner/index.php/fannin'
}else if (code === 'NO') {
window.location = 'espiner/index.php/endotech'
}else if (code === 'FI') {
window.location = 'espiner/index.php/endotec-oy'
} else if (code === 'NL') {
window.location = 'espiner/index.php/medicor'
}else if (code === 'DE') {
window.location = 'espiner/index.php/ifm-gerbershagen'
}else if (code === 'PL') {
window.location = 'espiner/index.php/surg-tech'
}else if (code === 'CH') {
window.location = 'espiner/index.php/rey-medical'
}else if (code === 'AT') {
window.location = 'espiner/index.php/dach-medical-group-gmbh'
}else if (code === 'IT') {
window.location = 'espiner/index.php/ab-medica-Spa'
}else if (code === 'HR') {
window.location = 'espiner/index.php/doctum'
}else if (code === 'GR') {
window.location = 'espiner/index.php/surgilife-ltd'
}else if (code === 'SA') {
window.location = 'espiner/index.php/trustmed'
}else if (code === 'CN') {
window.location = 'espiner/index.php/medical-distrubutor-alliance'
}else if (code === 'MY') {
window.location = 'espiner/index.php/wsm-medic-enterprise'
}else if (code === 'ES') {
window.location = 'espiner/index.php/prim'
}else if (code === 'AU') {
window.location = 'espiner/index.php/emt-Healthcare'
}else if (code === 'NZ') {
window.location = 'espiner/index.php/ebos-Healthcare'
}
},
regionStyle: {
initial: {
fill: '#b1b3b6',
stroke: '#FFF'
}
},
series: {
regions: [{
values: {
US:'#002E6D',
CA:'#002E6D',
ES:'#002E6D',
GB:'#002E6D',
NO:'#002E6D',
FI:'#002E6D',
NL:'#002E6D',
DE:'#002E6D',
PL:'#002E6D',
CH:'#002E6D',
AT:'#002E6D',
IT:'#002E6D',
HR:'#002E6D',
GR:'#002E6D',
SA:'#002E6D',
CN:'#002E6D',
MY:'#002E6D',
AU:'#002E6D',
NZ:'#002E6D',
XX:'#002E6D',
}
}]
}
});
});
任何人都可以帮助指出C5不喜欢的部分,我在想它的实际功能:
$('#world-map').vectorMap({
但不知道如何解决。
最佳答案
很多时候会发生此问题,因为脚本或其他代码段与C5的jquery并行地独立加载jQuery。您可能要检查情况并非如此。