Changeset View
Changeset View
Standalone View
Standalone View
core/admin_templates/incs/grid_blocks.tpl
Show First 20 Lines • Show All 733 Lines • ▼ Show 20 Line(s) | |||||
Grids['<inp2:m_param name="PrefixSpecial"/>'].InitItems(); | Grids['<inp2:m_param name="PrefixSpecial"/>'].InitItems(); | ||||
<inp2:m_if check="m_Param" name="selector" equals_to="radio"> | <inp2:m_if check="m_Param" name="selector" equals_to="radio"> | ||||
Grids['<inp2:m_param name="PrefixSpecial"/>'].EnableRadioMode(); | Grids['<inp2:m_param name="PrefixSpecial"/>'].EnableRadioMode(); | ||||
</inp2:m_if> | </inp2:m_if> | ||||
<inp2:m_if check="{$PrefixSpecial}_UseAutoRefresh"> | <inp2:m_if check="{$PrefixSpecial}_UseAutoRefresh"> | ||||
function refresh_grid() { | function refresh_grid() { | ||||
// Don't refresh grid, that has open modal windows. | |||||
if ( $modal_windows && TB.windowMetaData.length > 1 ) { | |||||
return; | |||||
} | |||||
// window.location.reload(); | // window.location.reload(); | ||||
var $window_url = window.location.href; | var $window_url = window.location.href; | ||||
if ($window_url.indexOf('skip_session_refresh=1') == -1) { | if ($window_url.indexOf('skip_session_refresh=1') == -1) { | ||||
$window_url += '&skip_session_refresh=1'; | $window_url += '&skip_session_refresh=1'; | ||||
} | } | ||||
window.location.href = $window_url; | window.location.href = $window_url; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |