Exemplo n.º 1
0
/**
 * TODO documentation
 * @param string $type
 * @param string $pattern
 * @param string $id
 * @param array() $configurations
 */
function init_ui_effects($type, $pattern, $id, $configurations = array())
{
    $return = 'return false;';
    if (isset($configurations['continue']) && $configurations['continue'] === true) {
        $return = '';
    }
    return return_jquery($configurations, jquery_support($id, $type, $pattern) . $return);
}
/**
 * Loads and executes a JavaScript file using an HTTP GET request
 * @param array $arguments
 * array('url'      => The URL of the page to load
 *       'callback' => A function to be executed whenever the data is loaded successfully.)
 * @return string jQuery syntax
 */
function jquery_get_script($arguments = null)
{
    return return_jquery($arguments, jquery_support(null, 'getScript', ui_remote_arguments_pattern($arguments)));
}