Changeset 15431 for events/phpframework
- Timestamp:
- 07/08/08 01:47:24 (5 years ago)
- Location:
- events/phpframework/piece_framework/trunk/web/frontend
- Files:
-
- 2 modified
-
htdocs/js/application.js (modified) (1 diff)
-
webapp/templates/Self/Form.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/piece_framework/trunk/web/frontend/htdocs/js/application.js
r15220 r15431 46 46 alert('ページをリロードして、もう一度試してください。'); 47 47 } 48 49 50 function updateStatusTextCharCounter(value, e) { 51 len = value.length; 52 jQuery('#js_textcount').html('' + (140-len)); 53 if (len > 140) { 54 if (jQuery("#commit").attr('disabled') != 'disabled') { 55 jQuery('#commit').attr('disabled', 'disabled') 56 } 57 } else { 58 if (jQuery("#commit").attr('disabled') == true) { 59 jQuery('#commit').removeAttr('disabled'); 60 } 61 62 if (len > 130) { 63 jQuery('#js_textcount').css('color', '#d40d12' ); 64 } else if (len > 120) { 65 jQuery('#js_textcount').css('color', '#5c0002' ); 66 } else { 67 jQuery('#js_textcount').css('color', '#cccccc' ); 68 } 69 } 70 } -
events/phpframework/piece_framework/trunk/web/frontend/webapp/templates/Self/Form.html
r15424 r15431 5 5 <span class="whatdoing">イマナニシテル?</span> 6 6 <span class="textCount" id="js_textcount">140</span> 7 <textarea class="message" name="status"></textarea> 7 <textarea 8 onkeyup="return updateStatusTextCharCounter(this.value, event);" 9 onfocus="return updateStatusTextCharCounter(this.value, event);" 10 onblur="return updateStatusTextCharCounter(this.value, event);" 11 class="message" name="status" id="status"></textarea> 8 12 <p class="btn btnSpace"> 9 <input name="commit" class="formBtn" type="submit" value="つぶやく" p:event="update" />13 <input name="commit" id="commit" class="formBtn" type="submit" value="つぶやく" p:event="update" /> 10 14 </p> 11 15 </div> … … 111 115 $(this).innerHTML = replace_url_to_link($(this).innerHTML); 112 116 }); 117 118 $('status').focus(); 119 updateStatusTextCharCounter($('status').value); 113 120 }); 114 121 </script>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)