diff develop/views/Extractapp/configtagsintopic.php @ 20:04db1dd9d10d

update topic_regex_relation table when saving (new) regex file
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 23 Feb 2015 14:34:43 +0100
parents f60969462226
children c805470cefee
line wrap: on
line diff
--- a/develop/views/Extractapp/configtagsintopic.php	Mon Feb 23 12:46:03 2015 +0100
+++ b/develop/views/Extractapp/configtagsintopic.php	Mon Feb 23 14:34:43 2015 +0100
@@ -54,7 +54,6 @@
 }
 
 function checkTopic(t) {
-	// TODO: save the modification into topic_tag_relation
 	var ids = [];
 
 	for (var i = 0; i < t.options.length; i++) {
@@ -78,10 +77,8 @@
 			alert("Updated!");
 		}
 	}).done(function(result) {
-
 	});
 
-
 }
 
 </script>
@@ -108,7 +105,7 @@
 							<?php 
 								foreach ($taglistArray as $taglistValue) {
 									if ($taglistValue['topic_id'] == $topic) {
-										echo "<option value='".$taglistValue['id']."' class='text-primary'>".$taglistValue['name']." (".$taglistValue['tag'].") "."</option>";
+										echo "<option value='".$taglistValue['id']."'>".$taglistValue['name']." (".$taglistValue['tag'].") "."</option>";
 									}
 								}
 							?>
@@ -124,7 +121,7 @@
 							<?php 
 								foreach ($taglistArray as $taglistValue) {
 									if ($taglistValue['topic_id'] != $topic) {
-										echo "<option value='".$taglistValue['id']."' class='text-muted'>".$taglistValue['name']." (".$taglistValue['tag'].") "."</option>";
+										echo "<option value='".$taglistValue['id']."'>".$taglistValue['name']." (".$taglistValue['tag'].") "."</option>";
 									}
 								}
 							?>