Kawai Wiki

Rev

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

Rev 155 Rev 159
Line 347... Line 347...
347
                $('#editPageTextArea').val(data.page.body);
347
                $('#editPageTextArea').val(data.page.body);
348
                $('#editPageName').val(data.page.name);
348
                $('#editPageName').val(data.page.name);
349
                $('#editPageLang').val(data.page.lang);
349
                $('#editPageLang').val(data.page.lang);
350
350
351
                myDialog = $('#editPageDialog');
351
                myDialog = $('#editPageDialog');
352
                myDialog = prepareEditPageDialog(myDialog, 'Editing <i><font color="darkblue">' + pageName + "</font></i> in <i>" + data.page.language + "<i>...");
-
 
-
 
352
                myDialog = prepareEditPageDialog(myDialog, 'Editing <i><font color="darkblue">' + pageName + "</font></i> in <i>" + data.page.language.name + "<i>...");
353
                myDialog.dialog('open');
353
                myDialog.dialog('open');
354
            });
354
            });
355
            
355
            
356
            return false;
356
            return false;
357
        }
357
        }
Line 388... Line 388...
388
                    $('.showPageTitleCell').show();
388
                    $('.showPageTitleCell').show();
389
                    $('#showPageTitle').val(data.page.title);
389
                    $('#showPageTitle').val(data.page.title);
390
                }
390
                }
391
                $('#showPageTextArea').val(data.page.body);
391
                $('#showPageTextArea').val(data.page.body);
392
392
393
                theTitle = 'Showing <i><font color="darkblue">' + pageName + "</font></i> in <i>" + data.page.language + "<i>...";
-
 
-
 
393
                theTitle = 'Showing <i><font color="darkblue">' + pageName + "</font></i> in <i>" + data.page.language.name + "<i>...";
394
                if (revision > 0) {
394
                if (revision > 0) {
395
                    theTitle += ' (Revision #' + revision + ')';
395
                    theTitle += ' (Revision #' + revision + ')';
396
                }
396
                }
397
397
398
                myDialog = $('#showPageDialog');
398
                myDialog = $('#showPageDialog');
Line 428... Line 428...
428
                $('#editPageTextArea').val(data.page.body);
428
                $('#editPageTextArea').val(data.page.body);
429
                $('#editPageName').val(data.page.name);
429
                $('#editPageName').val(data.page.name);
430
                $('#editPageLang').val(data.page.lang);
430
                $('#editPageLang').val(data.page.lang);
431
431
432
                myDialog = $('#editPageDialog');
432
                myDialog = $('#editPageDialog');
433
                myDialog = prepareEditPageDialog(myDialog, 'Editing <i><font color="darkblue">' + pageName + "</font></i> in <i>" + data.page.language + "<i>...");
-
 
-
 
433
                myDialog = prepareEditPageDialog(myDialog, 'Editing <i><font color="darkblue">' + pageName + "</font></i> in <i>" + data.page.language.name + "<i>...");
434
                myDialog.dialog('open');
434
                myDialog.dialog('open');
435
            });
435
            });
436
            
436
            
437
            return false;
437
            return false;
438
        }
438
        }
Line 509... Line 509...
509
                    	if (page.frontPage == false) {
509
                    	if (page.frontPage == false) {
510
                    		radioCell = '<input tabindex="-1" type="radio" name="pageId" id="pageId" value="' + page.id + '" />';
510
                    		radioCell = '<input tabindex="-1" type="radio" name="pageId" id="pageId" value="' + page.id + '" />';
511
                    	}
511
                    	}
512
                    }
512
                    }
513
513
514
                    viewRevisionsCell = '<a title="View Revisions" class="revisionLink" tabindex="-1" href="#" onclick="return showListRevisionsDialog(\'' + page.name + '\',\'' + page.lang + '\',\'' + page.language + '\', true);"><img src="<mtw:contextPath/>/images/folder.png" height="24" height="20" border="0" /></a>';
-
 
-
 
514
                    viewRevisionsCell = '<a title="View Revisions" class="revisionLink" tabindex="-1" href="#" onclick="return showListRevisionsDialog(\'' + page.name + '\',\'' + page.lang + '\',\'' + page.language.name + '\', true);"><img src="<mtw:contextPath/>/images/folder.png" height="24" height="20" border="0" /></a>';
515
                    
515
                    
516
                    nameTitle = '';
516
                    nameTitle = '';
517
                    if (page.title != null && page.title != '') {
517
                    if (page.title != null && page.title != '') {
518
                    	nameTitle = ' title="' + page.title + '"';
518
                    	nameTitle = ' title="' + page.title + '"';
519
                    }
519
                    }
520
520
521
                    tableData += '<tr>';
521
                    tableData += '<tr>';
522
                    if (isAdmin) tableData += '<td>' + radioCell + '</td>';
522
                    if (isAdmin) tableData += '<td>' + radioCell + '</td>';
523
                    tableData += '<td' + nameTitle + '>' + pageName + '</td>';
523
                    tableData += '<td' + nameTitle + '>' + pageName + '</td>';
524
                    tableData += '<td align="center">' + page.language + '</td>';
-
 
-
 
524
                    tableData += '<td align="center">' + page.language.name + '</td>';
525
                    tableData += '<td align="center"' + createdOnTitle + '>' + page.createdBy.username + '</td>';
525
                    tableData += '<td align="center"' + createdOnTitle + '>' + page.createdBy.username + '</td>';
526
                    tableData += '<td align="center"' + modifiedOnTitle + '>' + modifiedBy + '</td>';
526
                    tableData += '<td align="center"' + modifiedOnTitle + '>' + modifiedBy + '</td>';
527
                    tableData += '<td align="center">' + viewCell + '</td>';
527
                    tableData += '<td align="center">' + viewCell + '</td>';
528
                    tableData += '<td align="center"><a tabindex="-1" title="View Html" href="#" onclick="return showShowPageDialog(\'' + page.name + '\',\'' + page.lang + '\', -1);"><img src="<mtw:contextPath/>/images/view.png" border="0" /></a></td>';
528
                    tableData += '<td align="center"><a tabindex="-1" title="View Html" href="#" onclick="return showShowPageDialog(\'' + page.name + '\',\'' + page.lang + '\', -1);"><img src="<mtw:contextPath/>/images/view.png" border="0" /></a></td>';
529
                    tableData += '<td align="center">' + viewRevisionsCell + '</td>';
529
                    tableData += '<td align="center">' + viewRevisionsCell + '</td>';