Kawai Wiki

Rev

Rev 52 | Rev 54 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 53
Line 74... Line 74...
74
        function prepareListAllPagesDialog(myDialog) {
74
        function prepareListAllPagesDialog(myDialog) {
75
75
76
            options = {
76
            options = {
77
                autoOpen: false,
77
                autoOpen: false,
78
                width: 800,
78
                width: 800,
-
 
79
                height: 450,
79
                modal: true,
80
                modal: true,
80
                title: 'Pages:',
81
                title: 'Pages:',
81
                buttons: [
82
                buttons: [
82
                          {
83
                          {
83
                                text: "Update",
84
                                text: "Update",
Line 150... Line 151...
150
                    }
151
                    }
151
                    
152
                    
152
                    createdOnTitle = '';
153
                    createdOnTitle = '';
153
                    if (page.formattedCreatedOn != null) {
154
                    if (page.formattedCreatedOn != null) {
154
                    	createdOnTitle = ' title="' + page.formattedCreatedOn + '"';
155
                    	createdOnTitle = ' title="' + page.formattedCreatedOn + '"';
-
 
156
                    }
-
 
157
                    
-
 
158
                    viewCell = ' ';
-
 
159
                    if (page.CSS == false) {
-
 
160
                    	viewCell = '<a href="<mtw:contextPath/>/Page.mtw?name=' + page.name + '&lang=' + page.lang + '">View</a>';
155
                    }
161
                    }
156
162
157
                    tableData += '<tr>';
163
                    tableData += '<tr>';
158
                    tableData += '<td>' + page.name + '</td>';
164
                    tableData += '<td>' + page.name + '</td>';
159
                    tableData += '<td align="center">' + page.language + '</td>';
165
                    tableData += '<td align="center">' + page.language + '</td>';
160
                    tableData += '<td align="center">' + frontPage + '</td>';
166
                    tableData += '<td align="center">' + frontPage + '</td>';
161
                    tableData += '<td align="center">' + systemPage + '</td>';
167
                    tableData += '<td align="center">' + systemPage + '</td>';
162
                    tableData += '<td align="center"' + createdOnTitle + '>' + page.createdBy.username + '</td>';
168
                    tableData += '<td align="center"' + createdOnTitle + '>' + page.createdBy.username + '</td>';
163
                    tableData += '<td align="center"' + modifiedOnTitle + '>' + modifiedBy + '</td>';
169
                    tableData += '<td align="center"' + modifiedOnTitle + '>' + modifiedBy + '</td>';
164
                    tableData += '<td align="center"><a href="<mtw:contextPath/>/Page.mtw?name=' + page.name + '&lang=' + page.lang + '">View</a></td>';
-
 
-
 
170
                    tableData += '<td align="center">' + viewCell + '</td>';
165
                    tableData += '</tr>';
171
                    tableData += '</tr>';
166
                });
172
                });
167
173
168
                $('#listAllPagesTable').html(tableData);
174
                $('#listAllPagesTable').html(tableData);
169
175
Line 376... Line 382...
376
		</form>
382
		</form>
377
</div>
383
</div>
378
384
379
<!-- For displaying all pages -->
385
<!-- For displaying all pages -->
380
<div id="listAllPagesDialog" style="display: none;">
386
<div id="listAllPagesDialog" style="display: none;">
381
    <table border="1" cellspacing="5" cellpadding="5" id="listAllPagesTable">
-
 
-
 
387
    <table id="listAllPagesTable">
382
    </table>
388
    </table>
383
</div>
389
</div>
384
390
385
<!-- Create New Page -->
391
<!-- Create New Page -->
386
<div id="createNewPageDialog" style="display: none;">
392
<div id="createNewPageDialog" style="display: none;">