fixed js bug Drupal.ajax undefined, fixe #81
This commit is contained in:
		@@ -519,14 +519,16 @@
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
      // @see http://www.jaypan.com/tutorial/calling-function-after-ajax-event-drupal-7
 | 
			
		||||
    	Drupal.ajax.prototype.commands.ajaxAfterAddedFilterLine = function(ajax, response, status){
 | 
			
		||||
    		// console.log('ajax after added filter line');
 | 
			
		||||
        initLayout();
 | 
			
		||||
    	};
 | 
			
		||||
      Drupal.ajax.prototype.commands.ajaxAfterRemovedFilterLine = function(ajax, response, status){
 | 
			
		||||
        // console.log('ajax after removed filter line');
 | 
			
		||||
        initLayout();
 | 
			
		||||
      };
 | 
			
		||||
      if(typeof Drupal.ajax !== "undefined"){
 | 
			
		||||
      	Drupal.ajax.prototype.commands.ajaxAfterAddedFilterLine = function(ajax, response, status){
 | 
			
		||||
      		// console.log('ajax after added filter line');
 | 
			
		||||
          initLayout();
 | 
			
		||||
      	};
 | 
			
		||||
        Drupal.ajax.prototype.commands.ajaxAfterRemovedFilterLine = function(ajax, response, status){
 | 
			
		||||
          // console.log('ajax after removed filter line');
 | 
			
		||||
          initLayout();
 | 
			
		||||
        };
 | 
			
		||||
      }
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    function onLoadingContent(event){
 | 
			
		||||
@@ -661,7 +663,7 @@
 | 
			
		||||
    // };
 | 
			
		||||
 | 
			
		||||
    MaterioBaseTheme.prototype.on_mousemove_card = function(event){
 | 
			
		||||
      //trace('on_mousemove_Card', event);
 | 
			
		||||
      // trace('on_mousemove_Card', event);
 | 
			
		||||
      focusCard($(this));
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user