mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-29 08:07:05 -04:00
@@ -44,10 +44,7 @@ function post_giftcard_form_submit(response)
|
||||
|
||||
}
|
||||
else //refresh entire table
|
||||
{
|
||||
// reset page number when selecting a specific page number
|
||||
$('#limit_from').val("0");
|
||||
|
||||
{
|
||||
do_search(true,function()
|
||||
{
|
||||
//highlight new row
|
||||
|
||||
@@ -58,9 +58,6 @@ function post_item_kit_form_submit(response)
|
||||
}
|
||||
else //refresh entire table
|
||||
{
|
||||
// reset page number when selecting a specific page number
|
||||
$('#limit_from').val("0");
|
||||
|
||||
do_search(true,function()
|
||||
{
|
||||
//highlight new row
|
||||
|
||||
@@ -8,9 +8,9 @@ $(document).ready(function()
|
||||
enable_checkboxes();
|
||||
enable_row_selection();
|
||||
|
||||
enable_search({suggest_url : '<?php echo site_url("$controller_name/suggest_search")?>',
|
||||
confirm_search_message : '<?php echo $this->lang->line("common_confirm_search")?>',
|
||||
extra_params : {
|
||||
enable_search({suggest_url: '<?php echo site_url("$controller_name/suggest_search")?>',
|
||||
confirm_search_message: '<?php echo $this->lang->line("common_confirm_search")?>',
|
||||
extra_params: {
|
||||
'is_deleted' : function () {
|
||||
// the comparison is split in two parts: find the index of the selected and check the index against the index in the listed strings of the multiselect menu
|
||||
return $("#multi_filter li.selected").attr("data-original-index") == $("#filters option[value='is_deleted']").index() ? 1 : 0;
|
||||
|
||||
@@ -46,9 +46,6 @@ function post_person_form_submit(response)
|
||||
}
|
||||
else //refresh entire table
|
||||
{
|
||||
// reset page number when selecting a specific page number
|
||||
$('#limit_from').val("0");
|
||||
|
||||
do_search(true,function()
|
||||
{
|
||||
//highlight new row
|
||||
|
||||
@@ -8,7 +8,8 @@ $(document).ready(function()
|
||||
enable_row_selection();
|
||||
|
||||
// refresh payment summaries at page bottom when a search complete takes place
|
||||
var on_complete = function(response) {
|
||||
var on_complete = function(response)
|
||||
{
|
||||
$("#payment_summary").html(response.payment_summary);
|
||||
};
|
||||
|
||||
@@ -29,15 +30,18 @@ $(document).ready(function()
|
||||
//$('#filters').selectpicker('val', [<?php echo "'" . implode("','", $selected) . "'" ?>]);
|
||||
|
||||
// accept partial suggestion to trigger a search on enter press
|
||||
$('#search').keypress(function (e) {
|
||||
if (e.which == 13) {
|
||||
$('#search').keypress(function (e)
|
||||
{
|
||||
if (e.which == 13)
|
||||
{
|
||||
$('#search_form').submit();
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
// invoice edit related functionality that is currently disabled (see html)
|
||||
var show_renumber = function() {
|
||||
var show_renumber = function()
|
||||
{
|
||||
var value = $("#only_invoices").val();
|
||||
var $button = $("#update_invoice_numbers").parents("li");
|
||||
$button.toggle(value === "1");
|
||||
@@ -46,7 +50,8 @@ $(document).ready(function()
|
||||
$("#only_invoices").change(show_renumber);
|
||||
show_renumber();
|
||||
|
||||
$("#update_invoice_numbers").click(function() {
|
||||
$("#update_invoice_numbers").click(function()
|
||||
{
|
||||
$.ajax({url : "<?php echo site_url('sales') ?>/update_invoice_numbers", dataType: 'json', success : post_bulk_form_submit });
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -24,8 +24,7 @@ function init_table_sorting()
|
||||
{
|
||||
0: { sorter: 'false'},
|
||||
8: { sorter: 'false'}
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -47,9 +46,6 @@ function post_person_form_submit(response)
|
||||
}
|
||||
else //refresh entire table
|
||||
{
|
||||
// reset page number when selecting a specific page number
|
||||
$('#limit_from').val("0");
|
||||
|
||||
do_search(true,function()
|
||||
{
|
||||
//highlight new row
|
||||
|
||||
Reference in New Issue
Block a user