Mercurial > hg > extraction-interface
comparison develop/views/Extractapp/taggingtext.php @ 26:579f03f8bee5
merge table books_info into table books (execute Home/Test)
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 03 Mar 2015 10:33:42 +0100 |
parents | 4b6d2d7e706e |
children | 4a29bccb6c59 |
comparison
equal
deleted
inserted
replaced
25:4b6d2d7e706e | 26:579f03f8bee5 |
---|---|
6 $section_id = $viewmodel['section_id']; | 6 $section_id = $viewmodel['section_id']; |
7 $topiclistArray = $viewmodel['topiclistArray']; | 7 $topiclistArray = $viewmodel['topiclistArray']; |
8 $default_topic_id = $viewmodel['default_topic_id']; | 8 $default_topic_id = $viewmodel['default_topic_id']; |
9 $topic_name = $viewmodel['topic_name']; | 9 $topic_name = $viewmodel['topic_name']; |
10 $topic_tag = $viewmodel['topic_tag']; | 10 $topic_tag = $viewmodel['topic_tag']; |
11 $info = $viewmodel['info']; $messages = $viewmodel['messages']; | 11 $info = $viewmodel['info']; |
12 $messages = $viewmodel['messages']; | |
12 | 13 |
13 | 14 |
14 ?> | 15 ?> |
15 | 16 |
16 <html> | 17 <html> |
115 el.stop().animate({'top':finaldestination},0); | 116 el.stop().animate({'top':finaldestination},0); |
116 }); | 117 }); |
117 | 118 |
118 | 119 |
119 | 120 |
120 | 121 var info = JSON.parse('<?php echo json_encode($info) ?>'); |
122 // Popup to proceeding the saving situations | |
123 /* | |
124 if (info['current_fileId']) { | |
125 var retVal = confirm('There were something happened/someone editing in the between of time. | |
126 Please choose what you want to proceed the saving. | |
127 Click "OK" to force saving the current file.'); | |
128 if( retVal == true ){ | |
129 // TODO: force saving | |
130 alert("You do the force saving!"); | |
131 return true; | |
132 }else{ | |
133 // TODO: reload with the new file id (current_FileId) | |
134 | |
135 | |
136 alert("You will reload for the latest version!"); | |
137 return false; | |
138 } | |
139 | |
140 }; | |
141 | |
142 */ | |
121 | 143 |
122 | 144 |
123 // Popup choosing topic if first time to this section. without branchId | 145 // Popup choosing topic if first time to this section. without branchId |
124 var info = JSON.parse('<?php echo json_encode($info) ?>'); | |
125 if (info['file_id'] == 0) { // or info['branchId'] == 0, means new file | 146 if (info['file_id'] == 0) { // or info['branchId'] == 0, means new file |
126 // ask to choose topic | 147 // ask to choose topic |
127 $.ajax({ | 148 $.ajax({ |
128 | 149 |
129 }); | 150 }); |