Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/admin_templates/incs/footer.tpl
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
<inp2:adm_AfterScript/> | <inp2:adm_AfterScript/> | ||||
<inp2:m_ifnot check="m_Param" name="noform" equals_to="yes"> | <inp2:m_ifnot check="m_Param" name="noform" equals_to="yes"> | ||||
<inp2:m_RenderElement name="kernel_form_end"/> | <inp2:m_RenderElement name="kernel_form_end"/> | ||||
</inp2:m_ifnot> | </inp2:m_ifnot> | ||||
<div id="nlsMenuPlace"></div> | <div id="nlsMenuPlace"></div> | ||||
<inp2:m_if check="m_Get" name="edit_field"> | |||||
<script type="text/javascript"> | |||||
<inp2:m_if check="adm_UsePopups"> | |||||
Application.setHook('m:OnAfterFormInit', function () { | |||||
var $row = get_control('<inp2:adm_PassedPrefixTag tag="InputName" name="#FIELD_NAME#" js_escape="1"/>', '<inp2:m_Get name="edit_field" js_escape="1"/>', 'row'); | |||||
$('#scroll_container_container').scrollTop($($row).offset().top - $('#scroll_container_container').offset().top); | |||||
}); | |||||
<inp2:m_else/> | |||||
$(document).ready(function () { | |||||
var $row = get_control('<inp2:adm_PassedPrefixTag tag="InputName" name="#FIELD_NAME#" js_escape="1"/>', '<inp2:m_Get name="edit_field" js_escape="1"/>', 'row'); | |||||
$(getFrame('main').document).scrollTop($($row).offset().top); | |||||
}); | |||||
</inp2:m_if> | |||||
</script> | |||||
</inp2:m_if> | |||||
</body> | </body> | ||||
</html> | </html> | ||||
No newline at end of file |