Anand Doshi | c9d1ac4 | 2012-04-17 13:54:53 +0530 | [diff] [blame] | 1 | wn.provide('erpnext'); |
| 2 | erpnext.set_about = function() { |
| 3 | wn.provide('wn.app'); |
| 4 | $.extend(wn.app, { |
| 5 | name: 'ERPNext', |
| 6 | license: 'GNU/GPL - Usage Condition: All "erpnext" branding must be kept as it is', |
| 7 | source: 'https://github.com/webnotes/erpnext', |
| 8 | publisher: 'Web Notes Technologies Pvt Ltd, Mumbai', |
| 9 | copyright: '© Web Notes Technologies Pvt Ltd', |
Anand Doshi | 56205ae | 2012-04-30 16:54:31 +0530 | [diff] [blame] | 10 | version: '2' //+ '.' + window._version_number |
Anand Doshi | c9d1ac4 | 2012-04-17 13:54:53 +0530 | [diff] [blame] | 11 | }); |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 12 | } |
| 13 | |
Rushabh Mehta | 865c00a | 2012-01-24 14:33:21 +0530 | [diff] [blame] | 14 | wn.modules_path = 'erpnext'; |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 15 | |
| 16 | $(document).bind('toolbar_setup', function() { |
Rushabh Mehta | 6dde93d | 2012-05-01 14:18:47 +0530 | [diff] [blame] | 17 | $('.brand').html((wn.boot.website_settings.brand_html || 'erpnext') + |
Rushabh Mehta | 6f8e9e9 | 2012-05-01 13:41:44 +0530 | [diff] [blame] | 18 | ' <i class="icon-home icon-white navbar-icon-home" ></i>') |
Rushabh Mehta | 6dde93d | 2012-05-01 14:18:47 +0530 | [diff] [blame] | 19 | .css('max-width', '200px').css('overflow', 'hidden') |
Anand Doshi | ac14412 | 2012-02-27 19:16:24 +0530 | [diff] [blame] | 20 | .hover(function() { |
| 21 | $(this).find('.icon-home').addClass('navbar-icon-home-hover'); |
| 22 | }, function() { |
| 23 | $(this).find('.icon-home').removeClass('navbar-icon-home-hover'); |
| 24 | }); |
Anand Doshi | 859cb72 | 2012-04-10 11:35:19 +0530 | [diff] [blame] | 25 | }); |