index + db
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
$(document).ready(function(){
|
||||
$('.delete, .regex, .collate').click(function(e) {
|
||||
var li = $(this).parent("li");
|
||||
var reg = li.children(".regex_input")[0].value;
|
||||
var col = li.children(".collate_input")[0].value;
|
||||
$.post('/index-master', {'action': $(this).attr('class'), 'kw': li.data("kw"), 'reg': reg, 'col': col}, function(d) {
|
||||
if(d === 'ok') {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user