Revision edbf465c

View differences:

src/sunstone/public/app/tabs/groups-tab/datatable.js
77 77
   */
78 78

  
79 79
  function _elementArray(element_json) {
80
    this.totalGroups++;
81

  
80 82
    var element = element_json[XML_ROOT];
81 83

  
82 84
    var users_str = "0";
src/sunstone/public/app/tabs/vdcs-tab/datatable.js
57 57
      "you_selected_multiple": Locale.tr("You selected the following VDCs:")
58 58
    };
59 59

  
60
    this.totalElements = 0;
61

  
60 62
    TabDataTable.call(this);
61 63
  }
62 64

  
63 65
  Table.prototype = Object.create(TabDataTable.prototype);
64 66
  Table.prototype.constructor = Table;
65 67
  Table.prototype.elementArray = _elementArray;
68
  Table.prototype.preUpdateView = _preUpdateView;
69
  Table.prototype.postUpdateView = _postUpdateView;
66 70

  
67 71
  return Table;
68 72

  
......
71 75
   */
72 76

  
73 77
  function _elementArray(element_json) {
78
    this.totalElements++;
79

  
74 80
    var element = element_json[XML_ROOT];
75 81

  
76 82
    return [
......
96 102

  
97 103
    return l;
98 104
  }
105

  
106
  function _preUpdateView() {
107
    this.totalElements = 0;
108
  }
109

  
110
  function _postUpdateView() {
111
    $(".total_vdcs").text(this.totalElements);
112
  }
99 113
});

Also available in: Unified diff