latest updates
[namibia] / public / js / app / portal-workspace / auction.js
index 2f28fe1..e213137 100644 (file)
                                        constructor: 'GridContextFilter',
                                        items: {
 
-                                               RefNum: {
-                                                       title: 'Search here:',
-                                                       style: 'filter-input-wrapper hidden-tablet hidden-phone',
-                                                       id: 'gridAuctionContext_RefNo',
-                                                       placeholder: 'Ref number',
-                                                       context: 'gridAuctionContext'
-                                               },
-                                               RegNum: {
-                                                       style: 'filter-input-wrapper hidden-tablet hidden-phone',
-                                                       id: 'gridAuctionContext_RegNo',
-                                                       placeholder: 'Registration number',
-                                                       context: 'gridAuctionContext'
-                                               },
-                                               DateFrom: {
-                                                       style: 'input-append date filter-input-wrapper-date mobile-width12p dfrom hidden-tablet hidden-phone',
-                                                       title: 'Search by date here',
-                                                       id: 'gridAuctionContext_DateFrom',
-                                                       placeholder: 'From',
-                                                       context: 'gridAuctionContext',
-                                                       append: '<i class="icon-calendar"></i>',
-                                                       readonly: true,
-                                                       bind: function () {
-                                                               $('#gridAuctionContext_DateFrom').change(function () {
-                                                                       _w.auction.dFrom = $(this).val();
-                                                               });
-                                                       }
-                                               },
-                                               DateTo: {
-                                                       style: 'input-append date filter-input-wrapper-date mobile-width12p dto hidden-tablet hidden-phone',
-                                                       id: 'gridAuctionContext_DateTo',
-                                                       placeholder: 'To',
-                                                       context: 'gridAuctionContext',
-                                                       append: '<i class="icon-calendar"></i>',
-                                                       readonly: true,
-                                                       bind: function () {
-                                                               $('#gridAuctionContext_DateTo').change(function () {
-                                                                       _w.auction.dTo = $(this).val();
-                                                               });
-                                                       }
-                                               },
+                                               //RefNum: {
+                                               //      title: 'Search here:',
+                                               //      style: 'filter-input-wrapper hidden-tablet hidden-phone',
+                                               //      id: 'gridAuctionContext_RefNo',
+                                               //      placeholder: 'Ref number',
+                                               //      context: 'gridAuctionContext'
+                                               //},
+                                               //RegNum: {
+                                               //      style: 'filter-input-wrapper hidden-tablet hidden-phone',
+                                               //      id: 'gridAuctionContext_RegNo',
+                                               //      placeholder: 'Registration number',
+                                               //      context: 'gridAuctionContext'
+                                               //},
+                                               //DateFrom: {
+                                               //      style: 'input-append date filter-input-wrapper-date mobile-width12p dfrom hidden-tablet hidden-phone',
+                                               //      title: 'Search by date here',
+                                               //      id: 'gridAuctionContext_DateFrom',
+                                               //      placeholder: 'From',
+                                               //      context: 'gridAuctionContext',
+                                               //      append: '<i class="icon-calendar"></i>',
+                                               //      readonly: true,
+                                               //      bind: function () {
+                                               //              $('#gridAuctionContext_DateFrom').change(function () {
+                                               //                      _w.auction.dFrom = $(this).val();
+                                               //              });
+                                               //      }
+                                               //},
+                                               //DateTo: {
+                                               //      style: 'input-append date filter-input-wrapper-date mobile-width12p dto hidden-tablet hidden-phone',
+                                               //      id: 'gridAuctionContext_DateTo',
+                                               //      placeholder: 'To',
+                                               //      context: 'gridAuctionContext',
+                                               //      append: '<i class="icon-calendar"></i>',
+                                               //      readonly: true,
+                                               //      bind: function () {
+                                               //              $('#gridAuctionContext_DateTo').change(function () {
+                                               //                      _w.auction.dTo = $(this).val();
+                                               //              });
+                                               //      }
+                                               //},
                                                MakeMobi: {
                                                        style: 'filter-input-wrapper filter-input-select',
                                                        placeholder: 'Make Mobi',
                                                        context: 'gridAuctionContext'
                                                },
                                                Buttons: {
-                                                       actions: true,
-                                                       searchId: 'btnSearch',
-                                                       bindSearch: _w.auction.searchAuctionGrid,
-                                                       clearId: 'btnClearSearch',
-                                                       bindClear: _w.auction.clearAuctionGridContext
+                                                       //actions: true,
+                                                       //searchId: 'btnSearch',
+                                                       //bindSearch: _w.auction.searchAuctionGrid,
+                                                       //clearId: 'btnClearSearch',
+                                                       //bindClear: _w.auction.clearAuctionGridContext
 
                                                }
                                        }
                                'gridColumnHeaders': {
                                        constructor: 'GridColumnHeader',
                                        items: {
-                                               Seller: {
-                                                       id: 'gridAuctionColumn_Seller',
-                                                       title: 'SELLER',
-                                                       orderAsc: {
-                                                               id: 'gridAuctionOrder_SellerAsc',
-                                                               bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'ASC')
-                                                       },
-                                                       orderDesc: {
-                                                               id: 'gridAuctionOrder_SellerDesc',
-                                                               bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'DESC')
-                                                       },
-                                                       style: 'hidden-phone'
-                                               },
+                                               //Seller: {
+                                               //      id: 'gridAuctionColumn_Seller',
+                                               //      title: 'SELLER',
+                                               //      orderAsc: {
+                                               //              id: 'gridAuctionOrder_SellerAsc',
+                                               //              bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'ASC')
+                                               //      },
+                                               //      orderDesc: {
+                                               //              id: 'gridAuctionOrder_SellerDesc',
+                                               //              bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.auctionCompanyName', 'DESC')
+                                               //      },
+                                               //      style: 'hidden-phone'
+                                               //},
                                                Make: {
                                                        id: 'gridAuctionColumn_Make',
                                                        title: 'MAKE',
                                                },
                                                Region: {
                                                        id: 'gridAuctionColumn_Retail',
-                                                       title: 'REGION',
+                                                       title: 'TOWN',
                                                        orderAsc: {
                                                                id: 'gridAuctionOrder_RegionAsc',
                                                                bind: $.proxy(_w.auction.orderAuctionGrid, this, 'auction.regionName', 'ASC')
                                'gridColumnFilters': {
                                        constructor: 'GridColumnFilter',
                                        items: {
-                                               Seller: {
-                                                       id: 'gridAuctionFilter_Seller',
-                                                       context: 'gridAuctionFilter'
-                                               },
+                                               //Seller: {
+                                               //      id: 'gridAuctionFilter_Seller',
+                                               //      context: 'gridAuctionFilter'
+                                               //},
                                                Make: {
                                                        id: 'gridAuctionFilter_Make',
                                                        context: 'gridAuctionFilter',
                                                });
                                        },
                                        style: {
-                                               Seller: 'hidden-phone',
+                                               Seller: 'hidden',
                                                Make: 'make hidden-phone',
                                                Model: 'hidden-phone',
                                                Type: 'type',