X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Flists%2Fsimplelist.js;h=147bd447d9ccdd610b1a5b0606590a17b5d2abe3;hb=7ebd2afa8c0c499cd12b55ed24381e787a352768;hp=6ea2a77d722f0e0cf3f2658269556eba0adcba10;hpb=433a5d301336bc9d402af49b2aceb257f57514bb;p=unfold.git diff --git a/plugins/lists/simplelist.js b/plugins/lists/simplelist.js index 6ea2a77d..147bd447 100644 --- a/plugins/lists/simplelist.js +++ b/plugins/lists/simplelist.js @@ -10,7 +10,7 @@ (function($){ var debug=false; - //debug=true + // debug=true $.fn.SimpleList = function( method ) { /* Method calling logic */ @@ -72,14 +72,14 @@ $plugindiv.closest('.need-spin').spin(false); if (rows.length == 0) { - if (use_datatables) datatables_set_message ("No result"); - else regular_set_message ("No result"); + if (use_datatables) datatables_set_message ($table, $tbody, myslice_warning("No result")); + else regular_set_message ($table, $tbody, myslice_warning("No result")); return; } if (typeof rows[0].error != 'undefined') { var error="ERROR: " + rows[0].error; - if (use_datatables) datatables_set_message (error); - else regular_set_message (error); + if (use_datatables) datatables_set_message ($table, $tbody, myslice_error(error)); + else regular_set_message ($table, $tbody, myslice_error(error)); return; } var options = $plugindiv.data().SimpleList;