Skip to content

Instantly share code, notes, and snippets.

View codeleson's full-sized avatar

codeleson

View GitHub Profile
When i use pagination or sorting then my js code in work.
My js code
$('.delete').click(function(){
alert('hello');
});
I have using delete class on delete button.
And please tell me how to delete full row here my code is not working.
https://keenthemes.com/metronic/preview/?page=crud/metronic-datatable/locked/right&demo=default
@codeleson
codeleson / gist:c195fd49176f90f27a0469b86c6412bd
Created July 4, 2018 11:13
Please change below code according my code
/**** My code ***/
{
"meta": {
"page": 1,
"pages": 1,
"perpage": -1,
"total": 2,
"sort": "asc",
"field": "id"
},
@codeleson
codeleson / right.js
Created July 1, 2018 08:33
Please make for a right.js according my content.
{
"meta": {
"page": 1,
"pages": 1,
"perpage": -1,
"total": 2,
"sort": "asc",
"field": "id"
},
"data": [
my api url is http://genuinecodes.com/testing/ and using is on right.js but there is not working and console showing error
Uncaught TypeError: Cannot read property 'class' of undefined
at Object.template (right.js:124)
at HTMLTableCellElement.<anonymous> (scripts.bundle.js:1)
at Function.each (vendors.bundle.js:1)
at _.fn.init.each (vendors.bundle.js:1)
at HTMLTableRowElement.<anonymous> (scripts.bundle.js:1)
at Function.each (vendors.bundle.js:1)
at _.fn.init.each (vendors.bundle.js:1)
at Object.setupTemplateCell (scripts.bundle.js:1)
But my link is not working my link is http://localhost/smspanel2/data/.
this code is on my url page
$json = array(
'meta'=>array(
'page' => 1,
'pages'=> 1,
'perpage'=> -1,
'total' => count($data),
'sort' => 'asc',
@codeleson
codeleson / right.js
Created June 29, 2018 05:58
how to use my url given below code http://localhost/xxx/yyy/
var DefaultDatatableDemo = {
init: function() {
$(".m_datatable").mDatatable({
data: {
type: "remote",
source: {
read: {
url: "https://keenthemes.com/metronic/preview/inc/api/datatables/demos/default.php"
}
},