Changeset 3497
- Timestamp:
- 02/18/07 10:52:59 (2 years ago)
- Files:
-
- branches/1.0/lib/helper/JavascriptHelper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/helper/JavascriptHelper.php
r3214 r3497 991 991 } 992 992 993 if options[:with] && !options[:with].include?("=") 994 options[:with] = "'#{options[:with]}=' + value" 995 else 996 options[:with] ||= 'value' if options[:update] 997 end 998 993 999 function _build_observer($klass, $name, $options = array()) 994 1000 { … … 1001 1007 1002 1008 $javascript = 'new '.$klass.'("'.$name.'", '; 1003 if (isset($options['frequency']) )1009 if (isset($options['frequency']) && $options['frequency'] > 0) 1004 1010 { 1005 1011 $javascript .= $options['frequency'].", ";