* change the js::set for placeholders.

This commit is contained in:
wangchunsheng
2013-01-09 02:35:07 +00:00
parent 7e10192cbf
commit ef2c4cb87b
5 changed files with 8 additions and 10 deletions

View File

@@ -15,11 +15,9 @@
<?php include '../../common/view/autocomplete.html.php';?>
<?php include '../../common/view/alert.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('holders', json_encode($lang->bug->placeholder));?>
<script language='Javascript'>
userList = "<?php echo join(',', array_keys($users));?>".split(',');
page = 'create';
</script>
<?php js::set('holders', $lang->bug->placeholder, 'json');?>
<?php js::set('userList', array_keys($users), 'json');?>
<?php js::set('page', 'create');?>
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<table class='table-1'>
<caption><?php echo $lang->bug->create;?></caption>

View File

@@ -12,7 +12,7 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('holders ', json_encode($lang->doc->placeholder));?>
<?php js::set('holders ', $lang->doc->placeholder, 'json');?>
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<table class='table-1'>
<caption><?php echo $lang->doc->create;?></caption>

View File

@@ -32,7 +32,7 @@ $(document).ready(function()
<?php include '../../common/view/datepicker.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::import($jsRoot . 'misc/date.js');?>
<?php js::set('holders', json_encode($lang->project->placeholder));?>
<?php js::set('holders', $lang->project->placeholder, 'json');?>
<form method='post' target='hiddenwin' id='dataform'>
<table align='center' class='table-1 a-left'>
<caption>

View File

@@ -12,7 +12,7 @@
?>
<?php include './header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('holders', json_encode($lang->story->placeholder)); ?>
<?php js::set('holders', $lang->story->placeholder, 'json'); ?>
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<table align='center' class='table-1'>
<caption><?php echo $lang->story->create;?></caption>

View File

@@ -12,8 +12,8 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/datepicker.html.php';?>
<?php js::set('holders', json_encode($lang->user->placeholder));?>
<?php js::set('roleGroup', json_encode($roleGroup));?>
<?php js::set('holders', $lang->user->placeholder, 'json');?>
<?php js::set('roleGroup', $roleGroup, 'json');?>
<form method='post' target='hiddenwin' id='dataform'>
<table align='center' class='table-5'>
<caption><?php echo $lang->user->create;?></caption>