| 
														
															@@ -34,12 +34,15 @@ const Default = { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   content: '.card-body', 
														 | 
														
														 | 
														
															   content: '.card-body', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   loadInContent: true, 
														 | 
														
														 | 
														
															   loadInContent: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   loadOnInit: true, 
														 | 
														
														 | 
														
															   loadOnInit: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  loadErrorTemplate: true, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   responseType: '', 
														 | 
														
														 | 
														
															   responseType: '', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   overlayTemplate: '<div class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>', 
														 | 
														
														 | 
														
															   overlayTemplate: '<div class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  errorTemplate: '<span class="text-danger"></span>', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   onLoadStart() {}, 
														 | 
														
														 | 
														
															   onLoadStart() {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   onLoadDone(response) { 
														 | 
														
														 | 
														
															   onLoadDone(response) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return response 
														 | 
														
														 | 
														
															     return response 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  onLoadFail(_jqXHR, _textStatus, _errorThrown) {} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 class CardRefresh { 
														 | 
														
														 | 
														
															 class CardRefresh { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -74,6 +77,16 @@ class CardRefresh { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this._settings.onLoadDone.call($(this), response) 
														 | 
														
														 | 
														
															       this._settings.onLoadDone.call($(this), response) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this._removeOverlay() 
														 | 
														
														 | 
														
															       this._removeOverlay() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, this._settings.responseType !== '' && this._settings.responseType) 
														 | 
														
														 | 
														
															     }, this._settings.responseType !== '' && this._settings.responseType) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    .fail((jqXHR, textStatus, errorThrown) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this._removeOverlay() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      if (this._settings.loadErrorTemplate) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const msg = $(this._settings.errorTemplate).text(errorThrown) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        this._parent.find(this._settings.content).empty().append(msg) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this._settings.onLoadFail.call($(this), jqXHR, textStatus, errorThrown) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     $(this._element).trigger($.Event(EVENT_LOADED)) 
														 | 
														
														 | 
														
															     $(this._element).trigger($.Event(EVENT_LOADED)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 |