Kawai Wiki

Compare Revisions

Ignore whitespace Rev 54 → Rev 55

/trunk/src/main/webapp/images/view.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/trunk/src/main/webapp/show_page.jsp
81,10 → 81,14
title: 'Pages:',
buttons: [
{
text: "Update",
text: "FrontPage",
click: function() { $('#editPageForm').submit(); }
},
{
text: "Delete",
click: function() { $('#editPageForm').submit(); }
},
{
text: "Close",
click: function() { $(this).dialog("close"); }
}
119,30 → 123,29
 
tableData = '';
tableData += '<tr>';
tableData += '<th>&nbsp;</th>';
tableData += '<th>Name</th>';
tableData += '<th>Language</th>';
tableData += '<th>Front Page</th>';
tableData += '<th>System Page</th>';
tableData += '<th>Created By</th>';
tableData += '<th>Modified By</th>';
tableData += '<th>&nbsp;</th>';
tableData += '</tr>';
 
$.each(data.pages, function(i,page) {
pageName = page.name;
 
modifiedBy = '';
if (page.modifiedById > 0) {
modifiedBy = page.modifiedBy.username;
}
 
systemPage = '';
if (page.systemPage == true) {
systemPage = 'X';
pageName = '*' + pageName;
}
 
frontPage = '';
if (page.frontPage == true) {
frontPage = 'X';
pageName = '[' + pageName + ']';
}
modifiedOnTitle = '';
155,9 → 158,13
createdOnTitle = ' title="' + page.formattedCreatedOn + '"';
}
radioCell = '&nbsp;';
viewCell = '&nbsp;';
if (page.CSS == false) {
viewCell = '<a href="<mtw:contextPath/>/Page.mtw?name=' + page.name + '&lang=' + page.lang + '">View</a>';
if (page.CSS == false && page.systemPage == false) {
viewCell = '<a href="<mtw:contextPath/>/Page.mtw?name=' + page.name + '&lang=' + page.lang + '"><img src="<mtw:contextPath/>/images/view.png" /></a>';
if (page.frontPage == false) {
radioCell = '<input type="radio" name="pageId" id="pageId" value="' + page.id + '" />';
}
}
nameTitle = '';
166,10 → 173,9
}
 
tableData += '<tr>';
tableData += '<td' + nameTitle + '>' + page.name + '</td>';
tableData += '<td>' + radioCell + '</td>';
tableData += '<td' + nameTitle + '>' + pageName + '</td>';
tableData += '<td align="center">' + page.language + '</td>';
tableData += '<td align="center">' + frontPage + '</td>';
tableData += '<td align="center">' + systemPage + '</td>';
tableData += '<td align="center"' + createdOnTitle + '>' + page.createdBy.username + '</td>';
tableData += '<td align="center"' + modifiedOnTitle + '>' + modifiedBy + '</td>';
tableData += '<td align="center">' + viewCell + '</td>';