Commit 50e8cecf authored by PkSM3's avatar PkSM3

[UPDATE] abstracts en cours

parent f005f878
...@@ -434,6 +434,9 @@ function Main_test( Data , SearchFilter ) { ...@@ -434,6 +434,9 @@ function Main_test( Data , SearchFilter ) {
pushState: false, pushState: false,
// sort: false //i need to fix the sorting function... the current one just sucks // sort: false //i need to fix the sorting function... the current one just sucks
}, },
// inputs: {
// queries: $('#searchAB')
// },
writers: { writers: {
_rowWriter: ulWriter _rowWriter: ulWriter
// _cellWriter: customCellWriter // _cellWriter: customCellWriter
...@@ -454,6 +457,19 @@ function Main_test( Data , SearchFilter ) { ...@@ -454,6 +457,19 @@ function Main_test( Data , SearchFilter ) {
var the_content = $("#filter_search").html(); var the_content = $("#filter_search").html();
$(""+the_content).insertAfter("#dynatable-query-search-my-ajax-table") $(""+the_content).insertAfter("#dynatable-query-search-my-ajax-table")
// $('#searchAB').click( function() {
// if($(this).is(':checked')) {
// console.log( "Do stuff")
// $("#dynatable-query-search-my-ajax-table").keyup(function (e) {
// if (e.keyCode == 13) {
// console.log("Do stuff: Just pressed ENTER")
// }
// })
// }
// });
// MyTable.data('dynatable').settings.inputs.queries = { $('#searchAB') }
// .insertAfter("#dynatable-query-search-my-ajax-table") // .insertAfter("#dynatable-query-search-my-ajax-table")
return "OK" return "OK"
...@@ -461,6 +477,7 @@ function Main_test( Data , SearchFilter ) { ...@@ -461,6 +477,7 @@ function Main_test( Data , SearchFilter ) {
function SearchFilters( elem ) { function SearchFilters( elem ) {
var MODE = elem.value; var MODE = elem.value;
...@@ -501,6 +518,7 @@ function SearchFilters( elem ) { ...@@ -501,6 +518,7 @@ function SearchFilters( elem ) {
// FIRST portion of code to be EXECUTED: // FIRST portion of code to be EXECUTED:
// (3) Get records and hyperdata for paginator // (3) Get records and hyperdata for paginator
$.ajax({ $.ajax({
......
...@@ -105,8 +105,8 @@ th a { ...@@ -105,8 +105,8 @@ th a {
<div id="filter_search" style="visibility:hidden"> <div id="filter_search" style="visibility:hidden">
<span style="font-size:70%;"> <span style="font-size:70%;">
<input title="Search in Titles" type="checkbox" checked onclick="return false">TI</input>&nbsp; <input title="Search in Titles" id="searchTI" name="searchTI" type="checkbox" checked onclick="return false">TI&nbsp;
<input title="Search in Abstracts" type="checkbox">AB</input> <input title="Search in Abstracts" id="searchAB" name="searchAB" type="checkbox">AB
</span>&nbsp;&nbsp; </span>&nbsp;&nbsp;
<select id="example-single-optgroups" onchange="SearchFilters(this);"> <select id="example-single-optgroups" onchange="SearchFilters(this);">
<!-- <optgroup label=""> --> <!-- <optgroup label=""> -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment