 
       # reset form
       $scope.chatBid.creative.creative.text = ''
-      form.message.$pristine = true
-      form.$pristine = true
-      # console.log "buy success"
+      form.message.$dirty = false
 
     , (error) ->
         if (error.response.data.error.code == 20010)

            account_name: account_name,
            balance: balance,
            account_id: $scope.registered_accounts[account_name].id
      $scope.from.account ||= $scope.accounts[0] if $scope.accounts.length > 0

      if skip_once
        skip_once = false

angular.module("app").controller "TrollboxController", ($scope, $modal, $log, $q, RpcService, Wallet, WalletAPI, BlockchainAPI, Blockchain, Growl, Info, Utils, Observer, $timeout, $mdDialog, AD) ->
  chatAdPositionAcct    = Info.CHAT_ADD_POSITION_ACCT
  chatAdPricingID       = "plain1m"
  chatListLimit         = 50
