Skip to content

Instantly share code, notes, and snippets.

@chadhutchins
Created October 4, 2012 20:01
Show Gist options
  • Save chadhutchins/3836053 to your computer and use it in GitHub Desktop.
Save chadhutchins/3836053 to your computer and use it in GitHub Desktop.
<?php
class Break_AjaxUI
{
static $first = false;
function echo_something($bean,$event,$arguments)
{
// echo something once
if (!self::$first && isset($_REQUEST['action'] && $_REQUEST['action']=='DetailView')
{
echo "<script>alert('echo echo echo');</script>";
self::$first = true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment