Added everything
This commit is contained in:
		
							
								
								
									
										14
									
								
								dashboard_static/lib/log.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								dashboard_static/lib/log.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| (function($, block) { | ||||
| block.fn.log = function(config) { | ||||
|     this.$element.addClass('block log').append('<ul>'); | ||||
|  | ||||
|     this.actions(function(e, message){ | ||||
|         $ul = $('ul:first-child', this); | ||||
|         $ul.append('<li>'); | ||||
|         $ul.find("> li:last-child").text(message.text); | ||||
|         $(this).scrollTop(1000000); | ||||
|     }); | ||||
|  | ||||
|     return this.$element; | ||||
| }; | ||||
| })(jQuery, block); | ||||
		Reference in New Issue
	
	Block a user