@@ -28,14 +28,15 @@ function _RepConvGRC() {
28
28
. append (
29
29
$ ( '<a/>' , { 'href' :'#n' , 'class' :'grc_reload down_big reload' , 'style' :'float: right; height: 22px; margin: -1px 0 1px;' , 'rel' :RCGP . getID ( ) } )
30
30
. 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
+ // }
39
40
} )
40
41
) ;
41
42
}
@@ -836,7 +837,7 @@ function _RepConvGRC() {
836
837
837
838
RepConv . Debug && console . log ( 'Load wall...' ) ;
838
839
var unitDiff ;
839
- var hun = require ( "helpers/unit_numbers " ) ;
840
+ var hun = require ( "helpers/short_numbers " ) ;
840
841
$ . each ( RCGP . getJQElement ( ) . find ( $ ( 'div#building_wall li.odd' ) ) , function ( indLi , elemLi ) {
841
842
if ( indLi > 0 ) {
842
843
// lewa strona
@@ -904,7 +905,7 @@ function _RepConvGRC() {
904
905
}
905
906
} )
906
907
}
907
- var hun = require ( "helpers/unit_numbers " ) ;
908
+ var hun = require ( "helpers/short_numbers " ) ;
908
909
saveBtn . disable ( ! ( loadTimeStamp == _curTimestamp ) ) ;
909
910
$ . each ( RCGP . getJQElement ( ) . find ( $ ( 'div#building_wall li.odd' ) ) , function ( indLi , elemLi ) {
910
911
if ( indLi > 0 ) {
0 commit comments