ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 3500


Ignore:
Timestamp:
Jul 24, 2007, 1:04:21 PM (12 years ago)
Author:
maruyama
Message:

#901 日記カテゴリーが連結される

Location:
OpenPNE/branches/stable-2.8.x/webapp/modules/pc/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.8.x/webapp/modules/pc/templates/h_diary_add.tpl

    r2864 r3500  
    469469<div style="padding:4px 3px;">
    470470<input type="text" class="text" name="category" id="category" size="40" value="({$form_val.category})">
    471 <select onChange="if(selectedIndex){category.value += options[selectedIndex].value + ' '}">
     471<select onChange="if(selectedIndex){if(!category.value.match(/\s$/)){category.value += ' '}category.value += options[selectedIndex].value + ' ';}">
    472472<option>カテゴリを選択してください</option>
    473473({foreach from=$category_list item=value})
  • OpenPNE/branches/stable-2.8.x/webapp/modules/pc/templates/h_diary_edit.tpl

    r2864 r3500  
    488488<div style="padding:4px 3px;">
    489489<input type="text" name="category" id="category" size="40" value="({foreach from=$category item=item})({$item.category_name}) ({/foreach})">
    490 <select onChange="if(selectedIndex){category.value += options[selectedIndex].value + ' '}">
     490<select onChange="if(selectedIndex){if(!category.value.match(/\s$/)){category.value += ' '}category.value += options[selectedIndex].value + ' ';}">
    491491<option>カテゴリを選択してください
    492492({foreach from=$category_list item=value})
Note: See TracChangeset for help on using the changeset viewer.