diff templates/reservationTable.html @ 165:3d4df1fe4166

merged with upstream
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 08 Apr 2010 04:22:20 +0900
parents 84220382fea8
children
line wrap: on
line diff
--- a/templates/reservationTable.html	Fri Apr 02 20:40:55 2010 +0900
+++ b/templates/reservationTable.html	Thu Apr 08 04:22:20 2010 +0900
@@ -15,12 +15,15 @@
 	var PRG = {
 		rec:function(id){
 			$.get(INISet.prgCancelURL, { reserve_id: id } ,function(data){
-				
+				$('#eraseDialog').html('キャンセル中......');
+				$('#eraseDialog').dialog('open','center');
 				if(data.match(/^error/i)){
+					$('#eraseDialog').dialog('close');
 					alert(data);
 				}
 				else {
 					$('#resid_' + id ).hide();
+					$('#eraseDialog').dialog('close');
 				}
 			});
 		},
@@ -60,6 +63,11 @@
 		var DG = $('#floatBox4Dialog');
 		DG.dialog({title:'予約編集',width:500});
 		DG.dialog('close');
+
+		var EG = $('#eraseDialog');
+		EG.dialog({title:'キャンセル',width:400});
+		EG.dialog('close');
+
 	});
 
 </script>
@@ -155,7 +163,7 @@
 {/if}
 
 <div id="floatBox4Dialog">jQuery UI Dialog</div>
-
+<div id="eraseDialog">jQuery UI Dialog</div>
 
 {literal}
 <script type="text/javascript">