diff --git a/web/skins/classic/views/js/monitor.js b/web/skins/classic/views/js/monitor.js index a9eb62789..44db1e607 100644 --- a/web/skins/classic/views/js/monitor.js +++ b/web/skins/classic/views/js/monitor.js @@ -46,3 +46,12 @@ function loadLocations( element ) } } } + +function initPage() +{ + console.log( "T:"+$('contentForm').elements['newMonitor[Protocol]'].getTag() ); + if ( $('contentForm').elements['newMonitor[Protocol]'].getTag() == 'select' ) + updateMethods( $('contentForm').elements['newMonitor[Protocol]'] ); +} + +window.addEvent( 'domready', initPage ); diff --git a/web/skins/classic/views/js/monitor.js.php b/web/skins/classic/views/js/monitor.js.php index d3d86e778..da2d7eb84 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -1,4 +1,3 @@ -