Mercurial > hg > extraction-interface
diff develop/views/Extractapp/taggingtext.php @ 8:da10158c6d0a
add toc_correction status in books table. On TOC correction list page, providing the status checking box for users.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 09 Feb 2015 12:28:09 +0100 |
parents | 63e08b98032f |
children | 584b1623e9ef |
line wrap: on
line diff
--- a/develop/views/Extractapp/taggingtext.php Fri Feb 06 09:44:17 2015 +0100 +++ b/develop/views/Extractapp/taggingtext.php Mon Feb 09 12:28:09 2015 +0100 @@ -206,6 +206,20 @@ } +function smartRegexSave() { + var x; + var name=prompt("Please enter this Regex name",RegexLoadedName); + if (name!=null){ + $.ajax({ + type : 'POST', + url : '../../models/_extractapp_func.php', + async : false, + data : 'func=SmartRegexSave'+'&text='+encodeURIComponent($('#smartRegexShowDiv').html())+'&filename='+name + }).done(function(result) { + alert("Saved!"); + }); + } +} $(document).on("change", '#smartRegexPopUpSelectWord', function (e) {