mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-10-29 17:13:26 -04:00 
			
		
		
		
	Move utils.js to browserify/require() format
This commit is contained in:
		| @@ -2,6 +2,8 @@ var React = require('react'); | ||||
|  | ||||
| var Combobox = require('react-widgets').Combobox; | ||||
|  | ||||
| var getAccountDisplayList = require('./utils.js').getAccountDisplayList; | ||||
|  | ||||
| module.exports = React.createClass({ | ||||
| 	displayName: "AccountCombobox", | ||||
| 	getDefaultProps: function() { | ||||
|   | ||||
| @@ -33,6 +33,8 @@ var TransactionStatusList = models.TransactionStatusList; | ||||
| var TransactionStatusMap = models.TransactionStatusMap; | ||||
| var Error = models.Error; | ||||
|  | ||||
| var getAccountDisplayName = require('./utils.js').getAccountDisplayName; | ||||
|  | ||||
| var AccountCombobox = require('./AccountCombobox.js'); | ||||
|  | ||||
| const TransactionRow = React.createClass({ | ||||
|   | ||||
| @@ -11,7 +11,6 @@ | ||||
| <script src="static/external/big/big.min.js"></script> | ||||
| <script src="static/external/classnames/index.js"></script> | ||||
|  | ||||
| <script type="text/javascript" src="static/utils.js"></script> | ||||
| <script type="text/javascript" src="static/bundle.js"></script> | ||||
|  | ||||
| </head> | ||||
|   | ||||
| @@ -25,3 +25,8 @@ const getAccountDisplayName = function(account, account_map) { | ||||
| 	} | ||||
| 	return name; | ||||
| }; | ||||
|  | ||||
| module.exports = { | ||||
| 	getAccountDisplayList: getAccountDisplayList, | ||||
| 	getAccountDisplayName: getAccountDisplayName | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user