mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Fix IE 8 issue on first loading.
This commit is contained in:
parent
cb8f1478f6
commit
b0d0715ad5
@ -16,6 +16,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/thirdparty.css">
|
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/thirdparty.css">
|
||||||
<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon">
|
||||||
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon">
|
||||||
|
<script type="text/javascript" src="${pageContext.request.contextPath}/js/core.js"></script>
|
||||||
<script type="text/javascript" src="${pageContext.request.contextPath}/js/wiseLibrary.js"></script>
|
<script type="text/javascript" src="${pageContext.request.contextPath}/js/wiseLibrary.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -24,8 +25,18 @@
|
|||||||
boxGenerator.render('recentFiles');
|
boxGenerator.render('recentFiles');
|
||||||
boxGenerator.render('recentItems');
|
boxGenerator.render('recentItems');
|
||||||
$('mydocs').makeRounded({radius: 16,borderColor: '#a7c6df',backgroundColor: '#c3def5'});
|
$('mydocs').makeRounded({radius: 16,borderColor: '#a7c6df',backgroundColor: '#c3def5'});
|
||||||
|
|
||||||
|
// IE Hack ....
|
||||||
|
function afterMindpotLibraryLoading(){};
|
||||||
|
|
||||||
|
if (core.UserAgent.isVMLSupported())
|
||||||
|
{
|
||||||
|
$import("../js/mindplot.vml.js");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@ -85,7 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="mydocs">
|
<div id="mydocs">
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<input id="selectedMapIds" type="hidden" value=""/>
|
<input id="selectedMapIds" type="hidden" value=""/>
|
||||||
|
|
||||||
<div class="leftMenu">
|
<div class="leftMenu">
|
||||||
@ -113,22 +124,22 @@
|
|||||||
<spring:message code="IMPORT_MINDMAP"/>
|
<spring:message code="IMPORT_MINDMAP"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<c:url value="mymaps.htm" var="shareMap">
|
<c:url value="mymaps.htm" var="shareMap">
|
||||||
<c:param name="action" value="collaborator"/>
|
<c:param name="action" value="collaborator"/>
|
||||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||||
</c:url>
|
</c:url>
|
||||||
<c:url value="mymaps.htm" var="deleteMapUrl">
|
<c:url value="mymaps.htm" var="deleteMapUrl">
|
||||||
<c:param name="action" value="delete"/>
|
<c:param name="action" value="delete"/>
|
||||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||||
</c:url>
|
</c:url>
|
||||||
<c:url value="mymaps.htm" var="changeStatus">
|
<c:url value="mymaps.htm" var="changeStatus">
|
||||||
<c:param name="action" value="changeStatus"/>
|
<c:param name="action" value="changeStatus"/>
|
||||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||||
</c:url>
|
</c:url>
|
||||||
<div id="docTable">
|
<div id="docTable">
|
||||||
<table>
|
<table>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col width="3%"/>
|
<col width="3%"/>
|
||||||
<col width="3%"/>
|
<col width="3%"/>
|
||||||
<col width="15%"/>
|
<col width="15%"/>
|
||||||
@ -137,8 +148,8 @@
|
|||||||
<col width="10%"/>
|
<col width="10%"/>
|
||||||
<col width="20%"/>
|
<col width="20%"/>
|
||||||
<col width="5%"/>
|
<col width="5%"/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">
|
<th style="text-align:center">
|
||||||
<input id="checkAll" type="checkbox" onchange="selectAllMaps(this);">
|
<input id="checkAll" type="checkbox" onchange="selectAllMaps(this);">
|
||||||
@ -165,15 +176,15 @@
|
|||||||
<th>
|
<th>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<c:forEach items="${wisemapsList}" var="mindmap">
|
<c:forEach items="${wisemapsList}" var="mindmap">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div align="center"><input type="checkbox" name="chk" id="chk${mindmap.id}"
|
<div align="center"><input type="checkbox" name="chk" id="chk${mindmap.id}"
|
||||||
onclick="addToSelectedMapList(this);"></div>
|
onclick="addToSelectedMapList(this);"></div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="leftMenu">
|
<div class="leftMenu">
|
||||||
<img src="../images/icon_list.png" border="0" class="button"
|
<img src="../images/icon_list.png" border="0" class="button"
|
||||||
style="display:block;">
|
style="display:block;">
|
||||||
@ -219,7 +230,8 @@
|
|||||||
title="<spring:message code="SHARE_DETAILS"/>">
|
title="<spring:message code="SHARE_DETAILS"/>">
|
||||||
<spring:message code="COLLABORATION"/>
|
<spring:message code="COLLABORATION"/>
|
||||||
</a>
|
</a>
|
||||||
<a class="subMenu2Sep" href="publish.htm?mapId=${mindmap.id}" rel="moodalbox 600px 400px wizard"
|
<a class="subMenu2Sep" href="publish.htm?mapId=${mindmap.id}"
|
||||||
|
rel="moodalbox 600px 400px wizard"
|
||||||
title="<spring:message code="PUBLISH_MSG"/>">
|
title="<spring:message code="PUBLISH_MSG"/>">
|
||||||
<spring:message code="PUBLISH"/>
|
<spring:message code="PUBLISH"/>
|
||||||
</a>
|
</a>
|
||||||
@ -233,8 +245,8 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div>
|
<div>
|
||||||
<div class="mapTitle">
|
<div class="mapTitle">
|
||||||
<a href="javascript:openMap('${mindmap.id}')">
|
<a href="javascript:openMap('${mindmap.id}')">
|
||||||
@ -245,11 +257,11 @@
|
|||||||
${mindmap.tags}
|
${mindmap.tags}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${mindmap.description}
|
${mindmap.description}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${not mindmap.public}">
|
<c:when test="${not mindmap.public}">
|
||||||
<img src="../images/key.png"
|
<img src="../images/key.png"
|
||||||
@ -263,19 +275,19 @@
|
|||||||
<spring:message code="PUBLIC"/>
|
<spring:message code="PUBLIC"/>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
<td>${mindmap.creationUser}</td>
|
<td>${mindmap.creationUser}</td>
|
||||||
<td>${mindmap.lastEditDate} by ${mindmap.lastEditor}</td>
|
<td>${mindmap.lastEditDate} by ${mindmap.lastEditor}</td>
|
||||||
<td><a href="${mapDetail}&mapId=${mindmap.id}">
|
<td><a href="${mapDetail}&mapId=${mindmap.id}">
|
||||||
<spring:message code="DETAIL"/>
|
<spring:message code="DETAIL"/>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="ds1" class="submenu" style="display:none;">
|
<div id="ds1" class="submenu" style="display:none;">
|
||||||
@ -318,30 +330,30 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function openMap(mapId) {
|
function openMap(mapId) {
|
||||||
document.openForm.mapId.value = mapId;
|
document.openForm.mapId.value = mapId;
|
||||||
document.openForm.submit();
|
document.openForm.submit();
|
||||||
}
|
}
|
||||||
function deleteOkButton(url)
|
function deleteOkButton(url)
|
||||||
{
|
{
|
||||||
var form = document.createElement('form');
|
var form = document.createElement('form');
|
||||||
form.method = 'post';
|
form.method = 'post';
|
||||||
form.action = url;
|
form.action = url;
|
||||||
document.body.appendChild(form);
|
document.body.appendChild(form);
|
||||||
form.submit();
|
form.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
Window.onDomReady(initDropDowns);
|
Window.onDomReady(initDropDowns);
|
||||||
function initDropDowns()
|
function initDropDowns()
|
||||||
{
|
{
|
||||||
$ES('li[rel="submenu"]', $(document.body)).each(function(el) {
|
$ES('li[rel="submenu"]', $(document.body)).each(function(el) {
|
||||||
var items = $E('ul', el);
|
var items = $E('ul', el);
|
||||||
el.addEvent('click', showMenu.bind(items));
|
el.addEvent('click', showMenu.bind(items));
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showMenu(evt)
|
function showMenu(evt)
|
||||||
{
|
{
|
||||||
if ($(document).onclick)
|
if ($(document).onclick)
|
||||||
{
|
{
|
||||||
$(document).fireEvent('click', 0);
|
$(document).fireEvent('click', 0);
|
||||||
@ -355,16 +367,16 @@ function showMenu(evt)
|
|||||||
var event = new Event(evt);
|
var event = new Event(evt);
|
||||||
event.stop();
|
event.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function hide()
|
function hide()
|
||||||
{
|
{
|
||||||
this.myEffect.start({'opacity':[1,0]});
|
this.myEffect.start({'opacity':[1,0]});
|
||||||
$(document).onclick = '';
|
$(document).onclick = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateLinks(el)
|
function updateLinks(el)
|
||||||
{
|
{
|
||||||
$ES('a', el).each(function(link) {
|
$ES('a', el).each(function(link) {
|
||||||
if (!link.ohref)
|
if (!link.ohref)
|
||||||
{
|
{
|
||||||
@ -372,16 +384,16 @@ function updateLinks(el)
|
|||||||
}
|
}
|
||||||
link.href = link.ohref + $('selectedMapIds').value;
|
link.href = link.ohref + $('selectedMapIds').value;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function openWizard(href, title, rel)
|
function openWizard(href, title, rel)
|
||||||
{
|
{
|
||||||
href = href + $('selectedMapIds').value;
|
href = href + $('selectedMapIds').value;
|
||||||
MOOdalBox.open(href, title, rel);
|
MOOdalBox.open(href, title, rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addToSelectedMapList(el)
|
function addToSelectedMapList(el)
|
||||||
{
|
{
|
||||||
var ids = $('selectedMapIds');
|
var ids = $('selectedMapIds');
|
||||||
var id = el.id.replace(/[^\d]/g, '');
|
var id = el.id.replace(/[^\d]/g, '');
|
||||||
|
|
||||||
@ -422,11 +434,11 @@ function addToSelectedMapList(el)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ids.setProperty("value", value);
|
ids.setProperty("value", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function selectAllMaps(elem)
|
function selectAllMaps(elem)
|
||||||
{
|
{
|
||||||
var value = elem.checked;
|
var value = elem.checked;
|
||||||
var ids = "";
|
var ids = "";
|
||||||
$ES('input[type="checkbox"]', $('docTable')).each(function(el) {
|
$ES('input[type="checkbox"]', $('docTable')).each(function(el) {
|
||||||
@ -454,12 +466,12 @@ function selectAllMaps(elem)
|
|||||||
{
|
{
|
||||||
allElems[i].checked = value;
|
allElems[i].checked = value;
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function printMap(mapId) {
|
function printMap(mapId) {
|
||||||
document.printForm.mapId.value = mapId;
|
document.printForm.mapId.value = mapId;
|
||||||
document.printForm.submit();
|
document.printForm.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
Loading…
Reference in New Issue
Block a user