mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	closes #2717
This commit is contained in:
		@@ -53,8 +53,7 @@
 | 
			
		||||
						if (location === 'footer' && !$('#content [widget-area="footer"]').length) {
 | 
			
		||||
							$('#content').append($('<div class="row"><div widget-area="footer" class="col-xs-12"></div></div>'));
 | 
			
		||||
						} else if (location === 'sidebar' && !$('#content [widget-area="sidebar"]').length) {
 | 
			
		||||
							$('#content > *').wrapAll($('<div class="row"><div class="col-lg-9 col-xs-12"></div></div>'));
 | 
			
		||||
							$('#content').append($('<div class="row"><div widget-area="sidebar" class="col-lg-3 col-xs-12"></div></div>'));
 | 
			
		||||
							$('#content > *').wrapAll($('<div class="row"><div class="col-lg-9 col-xs-12"></div><div widget-area="sidebar" class="col-lg-3 col-xs-12"></div></div></div>'));
 | 
			
		||||
						} else if (location === 'header' && !$('#content [widget-area="header"]').length) {
 | 
			
		||||
							$('#content').prepend($('<div class="row"><div widget-area="header" class="col-xs-12"></div></div>'));
 | 
			
		||||
						}
 | 
			
		||||
@@ -69,11 +68,11 @@
 | 
			
		||||
						ajaxify.widgets.reposition(location);
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					$('#content [widget-area] img:not(.user-img)').addClass('img-responsive');	
 | 
			
		||||
					$('#content [widget-area] img:not(.user-img)').addClass('img-responsive');
 | 
			
		||||
				}
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				$(window).trigger('action:widgets.loaded', {});
 | 
			
		||||
				
 | 
			
		||||
 | 
			
		||||
				if (typeof callback === 'function') {
 | 
			
		||||
					callback();
 | 
			
		||||
				}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user