forked from Business/BinStack
Code formatting
This commit is contained in:
parent
a4555e808d
commit
83149dd9eb
@ -2,6 +2,6 @@
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
$('#name').on('input propertychange paste', function() {
|
$('#name').on('input propertychange paste', function () {
|
||||||
$('#name_title').text($('#name').val());
|
$('#name_title').text($('#name').val());
|
||||||
});
|
});
|
@ -79,6 +79,6 @@ $("#assignedto").easyAutocomplete({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#name').on('input propertychange paste', function() {
|
$('#name').on('input propertychange paste', function () {
|
||||||
$('#name_title').text($('#name').val());
|
$('#name_title').text($('#name').val());
|
||||||
});
|
});
|
@ -2,6 +2,6 @@
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
$('#name').on('input propertychange paste', function() {
|
$('#name').on('input propertychange paste', function () {
|
||||||
$('#name_title').text($('#name').val());
|
$('#name_title').text($('#name').val());
|
||||||
});
|
});
|
@ -4,64 +4,64 @@
|
|||||||
|
|
||||||
var itemtable = $('#itemtable').DataTable({
|
var itemtable = $('#itemtable').DataTable({
|
||||||
responsive: {
|
responsive: {
|
||||||
details: {
|
details: {
|
||||||
display: $.fn.dataTable.Responsive.display.modal({
|
display: $.fn.dataTable.Responsive.display.modal({
|
||||||
header: function (row) {
|
header: function (row) {
|
||||||
var data = row.data();
|
var data = row.data();
|
||||||
return "<i class=\"fa fa-cube fa-fw\"></i> " + data[2];
|
return "<i class=\"fa fa-cube fa-fw\"></i> " + data[2];
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
renderer: $.fn.dataTable.Responsive.renderer.tableAll({
|
renderer: $.fn.dataTable.Responsive.renderer.tableAll({
|
||||||
tableClass: 'table'
|
tableClass: 'table'
|
||||||
}),
|
}),
|
||||||
type: "column"
|
type: "column"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
{
|
{
|
||||||
targets: 0,
|
targets: 0,
|
||||||
className: 'control',
|
className: 'control',
|
||||||
orderable: false
|
orderable: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
targets: 1,
|
targets: 1,
|
||||||
orderable: false
|
orderable: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
targets: 8,
|
targets: 8,
|
||||||
orderable: false
|
orderable: false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
order: [
|
order: [
|
||||||
[2, 'asc']
|
[2, 'asc']
|
||||||
],
|
],
|
||||||
serverSide: true,
|
serverSide: true,
|
||||||
ajax: {
|
ajax: {
|
||||||
url: "lib/getitemtable.php",
|
url: "lib/getitemtable.php",
|
||||||
data: function (d) {
|
data: function (d) {
|
||||||
if (filter == "stock") {
|
if (filter == "stock") {
|
||||||
d.show_want = 1;
|
d.show_want = 1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dataFilter: function (data) {
|
dataFilter: function (data) {
|
||||||
var json = jQuery.parseJSON(data);
|
var json = jQuery.parseJSON(data);
|
||||||
json.data = [];
|
json.data = [];
|
||||||
json.items.forEach(function (row) {
|
json.items.forEach(function (row) {
|
||||||
json.data.push([
|
json.data.push([
|
||||||
"",
|
"",
|
||||||
row.editbtn + " " + row.clonebtn,
|
row.editbtn + " " + row.clonebtn,
|
||||||
row.name,
|
row.name,
|
||||||
row.catname,
|
row.catname,
|
||||||
row.locname + " (" + row.loccode + ")",
|
row.locname + " (" + row.loccode + ")",
|
||||||
row.code1,
|
row.code1,
|
||||||
row.code2,
|
row.code2,
|
||||||
row.qty,
|
row.qty,
|
||||||
row.want,
|
row.want,
|
||||||
row.username
|
row.username
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
return JSON.stringify(json);
|
return JSON.stringify(json);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -69,9 +69,9 @@ $('#itemtable_filter').append("<span class=\"btn btn-default btn-sm mobile-app-s
|
|||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
if (search_preload_content !== false) {
|
if (search_preload_content !== false) {
|
||||||
var searchInput = $("#itemtable_filter label input");
|
var searchInput = $("#itemtable_filter label input");
|
||||||
$(searchInput).val(search_preload_content);
|
$(searchInput).val(search_preload_content);
|
||||||
$(searchInput).trigger("input");
|
$(searchInput).trigger("input");
|
||||||
$(searchInput).trigger("change");
|
$(searchInput).trigger("change");
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user