Skip to content

Commit cf85760

Browse files
authored
Merge pull request #77 from grcrt/fixWall
fix(wall): restores broken functionality
2 parents de96e12 + 463b753 commit cf85760

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

modules/RepConvGRC.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ function _RepConvGRC() {
2828
.append(
2929
$('<a/>',{'href':'#n','class':'grc_reload down_big reload', 'style':'float: right; height: 22px; margin: -1px 0 1px;','rel':RCGP.getID()})
3030
.click(function(){
31-
switch(Layout.wnd.getWindowById($(this).attr('rel')).getController()){
32-
case "building_barracks":
33-
BarracksWindowFactory.openBarracksWindow();
34-
break;
35-
case "building_docks":
36-
DocksWindowFactory.openDocksWindow();
37-
break;
38-
}
31+
Layout.wnd.getWindowById($(this).attr('rel')).reloadContent()
32+
// switch(Layout.wnd.getWindowById($(this).attr('rel')).getController()){
33+
// case "building_barracks":
34+
// BarracksWindowFactory.openBarracksWindow();
35+
// break;
36+
// case "building_docks":
37+
// DocksWindowFactory.openDocksWindow();
38+
// break;
39+
// }
3940
})
4041
);
4142
}
@@ -836,7 +837,7 @@ function _RepConvGRC() {
836837

837838
RepConv.Debug && console.log('Load wall...');
838839
var unitDiff;
839-
var hun = require("helpers/unit_numbers");
840+
var hun = require("helpers/short_numbers");
840841
$.each(RCGP.getJQElement().find($('div#building_wall li.odd')), function(indLi, elemLi) {
841842
if (indLi > 0) {
842843
// lewa strona
@@ -904,7 +905,7 @@ function _RepConvGRC() {
904905
}
905906
})
906907
}
907-
var hun = require("helpers/unit_numbers");
908+
var hun = require("helpers/short_numbers");
908909
saveBtn.disable(!(loadTimeStamp == _curTimestamp));
909910
$.each(RCGP.getJQElement().find($('div#building_wall li.odd')), function(indLi, elemLi) {
910911
if (indLi > 0) {

0 commit comments

Comments
 (0)