Plugin Directory

Changeset 2928429

Timestamp:
06/20/2023 07:59:02 AM (13 months ago)
Author:
soportecibeles
Message:

fix: manage error ajax response

Location:
cibeles-ai
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cibeles-ai/tags/1.8.1/js/classes/caip_Action.js

    r2923889 r2928429  
    135135                500: function(){
    136136                        child.responseText = '';
    137                         child.ajaxFunction();
     137                        child.ajaxFunction();
    138138                        alert('Disculpe, existió un problema ajax');
    139139                     }
     
    141141            error : function(xhr, status) {
    142142                child.responseText = '';
    143                 child.ajaxFunction();
    144                 alert('Disculpe, existió un problema ajax');
     143                child.ajaxFunction();
     144                alert('Disculpe, existió un ajax');
    145145            },
    146146            complete : function(xhr, status) {
  • cibeles-ai/tags/1.8.1/js/classes/youtube.js

    r2923889 r2928429  
    99        this.tituloYoutube = '';
    1010        this.descriptionYoutube = '';
    11         this.tokens = 1500;
     11        this.tokens = 500;
    1212        this.id = 'youtube';
    1313        this.divresult = '.result.youtube';
     
    135135                500: function(){
    136136                        este.responseText = '';
    137                         este.ajaxFunction();
    138                         alert('Disculpe, existió un problema ajax');
     137                        //este.ajaxFunction();
     138                        este.manageResponse();
     139                        alert('Disculpe, existió un problema ajax.');
    139140                     }
    140141            },
    141142            error : function(xhr, status) {
    142143                este.responseText = '';
    143                 este.ajaxFunction();
    144                 alert('Disculpe, existió un problema ajax');
     144                //este.ajaxFunction();
     145                este.manageResponse();
     146                alert('Disculpe, existió un error ajax.');
    145147            }
    146148        });
  • cibeles-ai/trunk/js/classes/caip_Action.js

    r2900336 r2928429  
    135135                500: function(){
    136136                        child.responseText = '';
    137                         child.ajaxFunction();
     137                        child.ajaxFunction();
    138138                        alert('Disculpe, existió un problema ajax');
    139139                     }
     
    141141            error : function(xhr, status) {
    142142                child.responseText = '';
    143                 child.ajaxFunction();
    144                 alert('Disculpe, existió un problema ajax');
     143                child.ajaxFunction();
     144                alert('Disculpe, existió un ajax');
    145145            },
    146146            complete : function(xhr, status) {
  • cibeles-ai/trunk/js/classes/youtube.js

    r2920103 r2928429  
    99        this.tituloYoutube = '';
    1010        this.descriptionYoutube = '';
    11         this.tokens = 1500;
     11        this.tokens = 500;
    1212        this.id = 'youtube';
    1313        this.divresult = '.result.youtube';
     
    135135                500: function(){
    136136                        este.responseText = '';
    137                         este.ajaxFunction();
    138                         alert('Disculpe, existió un problema ajax');
     137                        //este.ajaxFunction();
     138                        este.manageResponse();
     139                        alert('Disculpe, existió un problema ajax.');
    139140                     }
    140141            },
    141142            error : function(xhr, status) {
    142143                este.responseText = '';
    143                 este.ajaxFunction();
    144                 alert('Disculpe, existió un problema ajax');
     144                //este.ajaxFunction();
     145                este.manageResponse();
     146                alert('Disculpe, existió un error ajax.');
    145147            }
    146148        });
Note: See TracChangeset for help on using the changeset viewer.