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