|
@@ -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));
|
|
|
};
|
|
|
|