submit not calling ajax url - Page 2

submit not calling ajax url

2»

Answers

  • aczedaaczeda Posts: 3Questions: 0Answers: 0
    edited December 2020

    Finally I found solution, debugging code.

    This code fix the problem with Internet Explorer when you try to use Editor or Bubble. You must put this code after "dataTables.editor.min.js" has been defined:

            $.fn.DataTable.Editor.Field.prototype.processing = function (set) {
                if (set === undefined) {
                    return this.dom.processing.is(':visible');
                }
                this.dom.processing.css('display', set ? 'block' : 'none');
                this.s.host._event('processing-field', [set]);
    
                return this;
            }
    

    I hope this can help you

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    Yep, I'm seeing that too, thanks for reporting. I've raised it internally (DD-1776 for my reference) and we'll report back here when there's an update.

    Cheers,

    Colin

  • smoldovanskiysmoldovanskiy Posts: 59Questions: 7Answers: 0

    i have it working now. here is how I am calling it when from a clickabble div or td or anchor tag. they all are assigned editable class.

    THis is the main bit here:

    ;

    editor.inline(table.cell($(this).closest('td')).index(), {
                    onBlur: 'submit',
                    submit: 'changed',
                });
    

    ;

       $('#fees').on('click', 'tbody td div.editable', function (e) {
    
                $('.has-tooltip').tooltip('hide');
    
                $('.has-popover').popover('hide');
    
                editor.inline(table.cell($(this).closest('td')).index(), {
                    onBlur: 'submit',
                    submit: 'changed',
                });
            });
    
            $('#fees').on('click', 'tbody td.editaction', function (e) {
    
                $('.has-tooltip').tooltip('hide');
    
                $('.has-popover').popover('hide');
    
                editor.inline(table.cell(this).index(), {
                    onBlur: 'submit',
                    submit: 'changed',
                });
            });
    
            $('#fees').on('click', 'tbody td a.editable', function (e) {
    
                $('.has-tooltip').tooltip('hide');
    
                $('.has-popover').popover('hide');
    
                editor.inline(table.cell($(this).closest('td')).index(), {
                    onBlur: 'submit',
                    submit: 'changed',
                });
            });
    
  • smoldovanskiysmoldovanskiy Posts: 59Questions: 7Answers: 0

    editor is my variable name for that specific editor

    same with table, that's the variable for that specific table

    sorry I am just putting partial code here

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    Nice, thanks for posting,

    Colin

Sign In or Register to comment.