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