Changeset 4825 in subversion for trunk/roundcubemail/program/include/rcube_template.php
- Timestamp:
- Jun 1, 2011 1:05:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_template.php
r4762 r4825 36 36 private $message = null; 37 37 private $js_env = array(); 38 private $js_labels = array(); 38 39 private $js_commands = array(); 39 40 private $object_handlers = array(); … … 231 232 232 233 foreach ($args as $name) { 233 $this-> command('add_label', $name, rcube_label($name));234 $this->js_labels[$name] = rcube_label($name); 234 235 } 235 236 } … … 267 268 $this->env = array(); 268 269 $this->js_env = array(); 270 $this->js_labels = array(); 269 271 $this->js_commands = array(); 270 272 $this->object_handlers = array(); … … 452 454 if (!$this->framed && !empty($this->js_env)) { 453 455 $out .= JS_OBJECT_NAME . '.set_env('.json_serialize($this->js_env).");\n"; 456 } 457 if (!empty($this->js_labels)) { 458 $this->command('add_label', $this->js_labels); 454 459 } 455 460 foreach ($this->js_commands as $i => $args) {
Note: See TracChangeset
for help on using the changeset viewer.
