Development

Changeset 8827

You must first sign up to be able to contribute.

Changeset 8827

Show
Ignore:
Timestamp:
05/07/08 10:41:21 (2 months ago)
Author:
FabianLange
Message:

remote_function will return a complete Javascript statement including the trailing semicolon. Fixes #3135

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/helper/JavascriptHelper.php

    r8718 r8827  
    266266    $options['form'] = true; 
    267267 
    268     $options_html['onsubmit'] = remote_function($options).'; return false;'; 
     268    $options_html['onsubmit'] = remote_function($options).' return false;'; 
    269269    $options_html['action'] = isset($options_html['action']) ? $options_html['action'] : url_for($options['url']); 
    270270    $options_html['method'] = isset($options_html['method']) ? $options_html['method'] : 'post'; 
     
    288288 
    289289    $options_html['type'] = 'button'; 
    290     $options_html['onclick'] = remote_function($options).'; return false;'; 
     290    $options_html['onclick'] = remote_function($options).' return false;'; 
    291291    $options_html['name'] = $name; 
    292292    $options_html['value'] = $value; 
     
    447447    } 
    448448 
    449     return $function
     449    return $function.';'
    450450  } 
    451451