             account.quantity_balance = data[market.asset_quantity_symbol] / market.quantity_precision
             account.short_balance = if market.inverted then account.base_balance else account.quantity_balance
         Observer.registerObserver(account_balances_observer)
-        q=[]
+        q = []
         q.push Blockchain.get_info().then (config) ->
             $scope.blockchain_symbol = config.symbol #XTS or BTSX
             WalletAPI.get_transaction_fee($scope.blockchain_symbol).then (blockchain_tx_fee) ->
                 Blockchain.get_asset(blockchain_tx_fee.asset_id).then (blockchain_tx_fee_asset) ->
                     $scope.blockchain_tx_fee = Utils.formatDecimal(
-                        blockchain_tx_fee.amount / blockchain_tx_fee_asset.precision, blockchain_tx_fee_asset.precision)
-                
+                            blockchain_tx_fee.amount / blockchain_tx_fee_asset.precision,
+                        blockchain_tx_fee_asset.precision)
+
         q.push WalletAPI.get_transaction_fee(market.asset_base_symbol).then (tx_fee) ->
             Blockchain.get_asset(tx_fee.asset_id).then (tx_fee_asset) ->
                 $scope.tx_fee = Utils.formatDecimal(tx_fee.amount / tx_fee_asset.precision, tx_fee_asset.precision)
-                
+
         $q.all(q).then()
-         
-    promise.catch (error) -> Growl.error("", error)
+
+    promise.catch (error) ->
+        Growl.error("", error)
     $scope.showLoadingIndicator(promise)
 
     Wallet.refresh_accounts().then ->

        short.cost = short.quantity * short.collateral_ratio
        $scope.short.cost = if short.cost == 0 then null else
            Utils.formatDecimal(short.cost, $scope.market.base_precision, true)
        
    $scope.short_total_change = ->
        short = $scope.short.clone_and_normalize()
        if short.cost and short.cost > 0

            when "market.buy" then .0001
            when "market.sell" then -.0001
            when "market.short" then -.0001
            else
                throw Error("Unknown $state.current.name", $state.current.name)

    $scope.grid_row_clicked = (row) ->
        #console.log "------ gridRowClicked ------>", row
