我在客户网站上使用jvector maps地图,他们知道我希望我转换为Concrete5,以便他们可以自行编辑。一切都很顺利,直到我尝试重新创建我使用jVector地图的页面。当我弹出下面的脚本,允许我使用地图和颜色不同的部分,当悬停停止concrete5管理部分的“编辑”部分从工作,这意味着我不能看到编辑栏/按钮或如果我是已经处于编辑模式,实际上无法点击可编辑区域。这是我正在谈论的剧本:
$(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({
但不知道如何绕过它。
答案 0 :(得分:0)
很多时候会出现这个问题,因为脚本或其他代码片段与C5的jquery并行独立加载jQuery。您可能想要检查情况并非如此。