Exemple #1
0
        echo $inst . "\n";
    }
}
// =====================================================
// = Javascript for dialog window and any ajax request =
// =====================================================
?>
    $(function() {
            $("#loading").ajaxStart(function(){
              $('indicator').show().css(
                  'left:'+mouse.x + 'px',
                  'top:'+mouse.y + 'px')
             });
			$("#closepanel").click(function(){$("#messagePanel").hide("fast")});
<?php 
foreach (Mtpl::getJSinline('ready') as $inst) {
    echo $inst . "\n";
}
?>
    });
		</script>
	</head>
	<body>
		<div id="doc3">
      <div id="hd">
			  <h3><a href="<?php 
echo ROOT_ADMIN_URL . ROOT_ADMIN_SCRIPT;
?>
"><?php 
echo $adminTitle;
?>
Exemple #2
0
 public function getJSinlineblock($event = 'ready')
 {
     $out = '';
     foreach (Mtpl::getJSinline($event) as $line) {
         $out .= $line . "\n";
     }
     $out = trim($out);
     if (!empty($out)) {
         $out = '
 <script type="text/javascript">
 jQuery(function($) {
 ' . $out . '
 });
 </script>';
     }
     return $out;
 }