debugging click to refresh on live
authorMark <mark@nirph.com>
Mon, 19 Dec 2016 08:39:12 +0000 (10:39 +0200)
committerMark <mark@nirph.com>
Mon, 19 Dec 2016 08:39:12 +0000 (10:39 +0200)
public/js/app/api.js
public/js/app/portal-workspace/stockview.js

index c66c7bf..f2f7eb6 100644 (file)
         */
                execTask: function( id, data, options, callback, errorCallback, method, direct )
                {
         */
                execTask: function( id, data, options, callback, errorCallback, method, direct )
                {
+                       console.log('executetask',data);
                        if (!this.taskContracts[id])
                        {
                                console.log('! No contract for: ' + id);
                        if (!this.taskContracts[id])
                        {
                                console.log('! No contract for: ' + id);
                execTasks: function( contracts, callback )
                                //id, data, options, callback, errorCallback, method, direct )
                {
                execTasks: function( contracts, callback )
                                //id, data, options, callback, errorCallback, method, direct )
                {
-                       console.log('executetasks',data);
                        var gid = this.requestId;
                var requests = [];
                this.requests.push({});
                        var gid = this.requestId;
                var requests = [];
                this.requests.push({});
index 0203910..4807290 100644 (file)
                                }
                                $('#HPIbtnConfirm').prop('disabled', true);
                                var data = _w.stockview._prepStockUpdateData();
                                }
                                $('#HPIbtnConfirm').prop('disabled', true);
                                var data = _w.stockview._prepStockUpdateData();
-                               console.log('beforeupdatestock',data);
                                App.API.execTask(
                                                'updateStock:' + _w.stockview.itemId, {"Stock":data}, {},
                                                function()
                                App.API.execTask(
                                                'updateStock:' + _w.stockview.itemId, {"Stock":data}, {},
                                                function()
                                                                        'TransUnionForHPI', 'Stock', 'Utility.TransUnionForHPI', null,
                                                                        {'Filter' : {'username' : user ,'pass' : pass , 'stock' : _w.stockview.itemId}},
                                                                        function() {
                                                                        'TransUnionForHPI', 'Stock', 'Utility.TransUnionForHPI', null,
                                                                        {'Filter' : {'username' : user ,'pass' : pass , 'stock' : _w.stockview.itemId}},
                                                                        function() {
-                                                                               console.log('transunion',data);
                                                                                App.API.execTask(
                                                                                                'TransUnionForHPI',{}, {},
                                                                                                function(data)
                                                                                App.API.execTask(
                                                                                                'TransUnionForHPI',{}, {},
                                                                                                function(data)
                 }
                 $('#HPIAccidentBtnConfirm').prop('disabled', true);
                 var data = _w.stockview._prepStockUpdateData();
                 }
                 $('#HPIAccidentBtnConfirm').prop('disabled', true);
                 var data = _w.stockview._prepStockUpdateData();
-                               console.log('updatestock2',data);
+
                 App.API.execTask(
                     'updateStock:' + _w.stockview.itemId, {"Stock":data}, {},
                     function()
                 App.API.execTask(
                     'updateStock:' + _w.stockview.itemId, {"Stock":data}, {},
                     function()
                             'TransUnionForHPIAccident', 'Stock', 'Utility.TransUnionForHPIAccident', null,
                             {'Filter' : {'username' : user ,'pass' : pass , 'stock' : _w.stockview.itemId}},
                             function() {
                             'TransUnionForHPIAccident', 'Stock', 'Utility.TransUnionForHPIAccident', null,
                             {'Filter' : {'username' : user ,'pass' : pass , 'stock' : _w.stockview.itemId}},
                             function() {
-                                                               console.log('transunion2',data);
                                 App.API.execTask(
                                     'TransUnionForHPIAccident',{}, {},
                                     function(data)
                                 App.API.execTask(
                                     'TransUnionForHPIAccident',{}, {},
                                     function(data)
                                        return;
                                }
                                $('#btnSendToPg').prop('disabled', true);
                                        return;
                                }
                                $('#btnSendToPg').prop('disabled', true);
-                               console.log('beforeupdatestock3',data);
                                App.API.execTask(
                                        'updateStock:' + _w.stockview.itemId, {"Stock":_w.stockview._prepStockUpdateData()}, {},
                                        function () {
                                App.API.execTask(
                                        'updateStock:' + _w.stockview.itemId, {"Stock":_w.stockview._prepStockUpdateData()}, {},
                                        function () {
                                        var data = {};
                                        data.Stock = _w.stockview._prepStockUpdateData();
                                        data.Context = {endDate: endDate, reservePrice: reservePrice};
                                        var data = {};
                                        data.Stock = _w.stockview._prepStockUpdateData();
                                        data.Context = {endDate: endDate, reservePrice: reservePrice};
-                                       console.log('createstockauction',data);
                                        App.API.execTask(
                                                'createStockAuction', data, {},
                                                _w.stockview._onStockUpdated, _w.taskExecError
                                        App.API.execTask(
                                                'createStockAuction', data, {},
                                                _w.stockview._onStockUpdated, _w.taskExecError
                                                );
                                        }
                                        else
                                                );
                                        }
                                        else
-                                       {console.log('updatestock5',data);
+                                       {
                                                App.API.execTask(
                                                        'updateStock:' + _w.stockview.itemId, {"Stock":_w.stockview._prepStockUpdateData()}, {},
                                                        function () {
                                                App.API.execTask(
                                                        'updateStock:' + _w.stockview.itemId, {"Stock":_w.stockview._prepStockUpdateData()}, {},
                                                        function () {
 
                        _w.stockview.itemId = App.Util.getUrlParam('id');
                        if (0 == _w.stockview.itemId || null == _w.stockview.itemId)
 
                        _w.stockview.itemId = App.Util.getUrlParam('id');
                        if (0 == _w.stockview.itemId || null == _w.stockview.itemId)
-                       {console.log('createitems',data);
+                       {
                                App.API.getTask(
                                        'createStock', 'Stock', 'Stock.Create',
                                        null, {}, function(){}, _w.taskContractError
                                App.API.getTask(
                                        'createStock', 'Stock', 'Stock.Create',
                                        null, {}, function(){}, _w.taskContractError