• R/O
  • SSH
  • HTTPS

amateras: Commit


Commit MetaInfo

Revisión386 (tree)
Tiempo2011-05-16 03:11:50
Autortakezoe

Log Message

Implemented the "History" link in index.html.

Cambiar Resumen

Diferencia incremental

--- rdiff-backup-browser/branches/lift/rdiff-backup-browser/src/main/webapp/index.html (revision 385)
+++ rdiff-backup-browser/branches/lift/rdiff-backup-browser/src/main/webapp/index.html (revision 386)
@@ -67,8 +67,12 @@
6767 </lift:snippet>
6868 </div>
6969
70+<div id="history-dialog" title="History">
71+ <div id="history-body"></div>
72+</div>
7073
7174 <script type="text/javascript">
75+//<![CDATA[
7276 $(function(){
7377 $('#add-dialog').dialog({
7478 autoOpen: false,
@@ -80,6 +84,12 @@
8084 modal: true,
8185 width: 600,
8286 });
87+ $('#history-dialog').dialog({
88+ autoOpen: false,
89+ modal: true,
90+ width: 600,
91+ height: 400
92+ });
8393 });
8494
8595 function openAddDialog(){
@@ -98,6 +108,24 @@
98108 function confirmRemove(id){
99109 var dir = $('#directory_' + id).text();
100110 return confirm('Removes ' + dir + ', OK?');
101-}
111+}
112+
113+function openHistoryDialog(root){
114+ $('#history-dialog').dialog('open');
115+ showHistory(root);
116+}
117+
118+function showHistory(root){
119+ $('#history-body').html('<img src="images/ajax-indicator.gif"/> Now Loading...');
120+ $.ajax({
121+ url: 'history.html',
122+ cache: false,
123+ data: ({'root': root}),
124+ success: function(html){
125+ $('#history-body').html(html);
126+ }
127+ });
128+}
129+//]]>
102130 </script>
103131 </lift:surround>
Show on old repository browser