mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Some code to get #384 working.
This commit is contained in:
		
							
								
								
									
										29
									
								
								public/js/ff/reports/account/all.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								public/js/ff/reports/account/all.js
									
									
									
									
										vendored
									
									
								
							| @@ -25,4 +25,33 @@ function loadAjaxPartial(holder, uri) { | ||||
|     }).fail(function () { | ||||
|         failAjaxPartial(uri, holder); | ||||
|     }); | ||||
| } | ||||
|  | ||||
| function failAjaxPartial(uri, holder) { | ||||
|     "use strict"; | ||||
|     var holderObject = $('#' + holder); | ||||
|     holderObject.parent().find('.overlay').remove(); | ||||
|     holderObject.addClass('general-chart-error'); | ||||
|  | ||||
| } | ||||
|  | ||||
| function displayAjaxPartial(data, holder) { | ||||
|     "use strict"; | ||||
|     var obj = $('#' + holder); | ||||
|     obj.html(data); | ||||
|     obj.parent().find('.overlay').remove(); | ||||
|  | ||||
|     // call some often needed recalculations and what-not: | ||||
|  | ||||
|     // find a sortable table and make it sortable: | ||||
|     if (typeof $.bootstrapSortable === "function") { | ||||
|         $.bootstrapSortable(true); | ||||
|     } | ||||
|  | ||||
|     // find the info click things and respond to them: | ||||
|     triggerInfoClick(); | ||||
|  | ||||
|     // trigger list thing | ||||
|     listLengthInitial(); | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user