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

Changeset 3499


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

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

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

Legend:

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

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

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