/
home2
/
dakshskx
/
dakshaseo.com
/
admin
/
assets
/
scripts
/
custom
/
/home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom
mkdir
upload
Name
Size
Mode
Actions
calendar.js
7412
0644
edit
dl
rm
charts.js
31498
0644
edit
dl
rm
coming-soon.js
661
0644
edit
dl
rm
components-dropdowns.js
10383
0644
edit
dl
rm
components-editors.js
516
0644
edit
dl
rm
components-form-tools.js
19133
0644
edit
dl
rm
components-ion-sliders.js
2318
0644
edit
dl
rm
components-jqueryui-sliders.js
3680
0644
edit
dl
rm
components-knob-dials.js
546
0644
edit
dl
rm
components-nouisliders.js
1788
0644
edit
dl
rm
components-pickers.js
7852
0644
edit
dl
rm
contact-us.js
632
0644
edit
dl
rm
custom.js
553
0644
edit
dl
rm
ecommerce-index.js
8069
0644
edit
dl
rm
ecommerce-orders-view.js
7339
0644
edit
dl
rm
ecommerce-orders.js
2772
0644
edit
dl
rm
ecommerce-products-edit.js
6521
0644
edit
dl
rm
ecommerce-products.js
2789
0644
edit
dl
rm
form-dropzone.js
1434
0644
edit
dl
rm
form-editable.js
18643
0644
edit
dl
rm
form-fileupload.js
2722
0644
edit
dl
rm
form-image-crop.js
17044
0644
edit
dl
rm
form-samples.js
1484
0644
edit
dl
rm
form-validation.js
12008
0644
edit
dl
rm
form-wizard.js
10442
0644
edit
dl
rm
inbox.js
9643
0644
edit
dl
rm
index11.js
32605
0644
edit
dl
rm
lock.js
395
0644
edit
dl
rm
login-soft.js
8472
0644
edit
dl
rm
login.js
8332
0644
edit
dl
rm
maps-google.js
6153
0644
edit
dl
rm
maps-vector.js
1897
0644
edit
dl
rm
portfolio.js
192
0644
edit
dl
rm
portlet-draggable.js
655
0644
edit
dl
rm
search.js
287
0644
edit
dl
rm
table-advanced.js
4583
0644
edit
dl
rm
table-ajax.js
3364
0644
edit
dl
rm
table-editable.js
6191
0644
edit
dl
rm
table-managed.js
6084
0644
edit
dl
rm
tasks.js
383
0644
edit
dl
rm
ui-alert-dialog-api.js
3347
0644
edit
dl
rm
ui-blockui.js
3894
0644
edit
dl
rm
ui-datepaginator.js
805
0644
edit
dl
rm
ui-extended-modals.js
2564
0644
edit
dl
rm
ui-general.js
6624
0644
edit
dl
rm
ui-idletimeout.js
2330
0644
edit
dl
rm
ui-nestable.js
1591
0644
edit
dl
rm
ui-notific8.js
1472
0644
edit
dl
rm
ui-toastr.js
4990
0644
edit
dl
rm
ui-tree.js
6458
0644
edit
dl
rm
Edit:
/home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom/table-ajax.js
(3364B)
var TableAjax = function () { var initPickers = function () { //init date pickers $('.date-picker').datepicker({ rtl: App.isRTL(), autoclose: true }); } var handleRecords = function() { var grid = new Datatable(); grid.init({ src: $("#datatable_ajax"), onSuccess: function(grid) { // execute some code after table records loaded }, onError: function(grid) { // execute some code on network or other general error }, dataTable: { // here you can define a typical datatable settings from http://datatables.net/usage/options /* By default the ajax datatable's layout is horizontally scrollable and this can cause an issue of dropdown menu is used in the table rows which. Use below "sDom" value for the datatable layout if you want to have a dropdown menu for each row in the datatable. But this disables the horizontal scroll. */ //"sDom" : "<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r>t<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>", "aLengthMenu": [ [20, 50, 100, 150, -1], [20, 50, 100, 150, "All"] // change per page values here ], "iDisplayLength": 20, // default record count per page "bServerSide": true, // server side processing "sAjaxSource": "demo/table_ajax.php", // ajax source "aaSorting": [[ 1, "asc" ]] // set first column as a default sort by asc } }); // handle group actionsubmit button click grid.getTableWrapper().on('click', '.table-group-action-submit', function(e){ e.preventDefault(); var action = $(".table-group-action-input", grid.getTableWrapper()); if (action.val() != "" && grid.getSelectedRowsCount() > 0) { grid.addAjaxParam("sAction", "group_action"); grid.addAjaxParam("sGroupActionName", action.val()); var records = grid.getSelectedRows(); for (var i in records) { grid.addAjaxParam(records[i]["name"], records[i]["value"]); } grid.getDataTable().fnDraw(); grid.clearAjaxParams(); } else if (action.val() == "") { App.alert({type: 'danger', icon: 'warning', message: 'Please select an action', container: grid.getTableWrapper(), place: 'prepend'}); } else if (grid.getSelectedRowsCount() === 0) { App.alert({type: 'danger', icon: 'warning', message: 'No record selected', container: grid.getTableWrapper(), place: 'prepend'}); } }); } return { //main function to initiate the module init: function () { initPickers(); handleRecords(); } }; }();
Save
cmd:
run