projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SwarmPlayer is now detected; CIS-LB random load balancer created
[living-lab-site.git]
/
application
/
views
/
video
/
comments_view.php
diff --git
a/application/views/video/comments_view.php
b/application/views/video/comments_view.php
index
f2b4145
..
f93c653
100644
(file)
--- a/
application/views/video/comments_view.php
+++ b/
application/views/video/comments_view.php
@@
-1,7
+1,11
@@
<h4><?php echo $this->lang->line('video_title_comment') ?>: </h4>
<?php echo form_open("video/comment/$video_id") ?>
<h4><?php echo $this->lang->line('video_title_comment') ?>: </h4>
<?php echo form_open("video/comment/$video_id") ?>
- <textarea name="comment" id="comment" rows="4" cols="56"><?php echo set_value('comment', '') ?></textarea>
+ <textarea name="comment" id="comment" rows="4" cols="56"><?php
+ if (validation_errors()):
+ echo set_value('comment', '');
+ endif;
+ ?></textarea>
<div><input type="button" id="button-post" value="<?php echo $this->lang->line('video_submit_post_comment') ?>" />
<span id="comment-chars-left">512</span> <?php echo $this->lang->line('ui_chars_left') ?>
<div><input type="button" id="button-post" value="<?php echo $this->lang->line('video_submit_post_comment') ?>" />
<span id="comment-chars-left">512</span> <?php echo $this->lang->line('ui_chars_left') ?>
@@
-57,12
+61,6
@@
<?php endif ?>
<script type="text/javascript">
<?php endif ?>
<script type="text/javascript">
-
- function updateCommentCharsLeft($textarea)
- {
-
- }
-
$(function() {
$('#button-post')
.click(function() {
$(function() {
$('#button-post')
.click(function() {
@@
-71,7
+69,6
@@
function(data) {
$('#video-comments').html(data);
});
function(data) {
$('#video-comments').html(data);
});
- $('#comment').val('');
});
$('.pagination')
});
$('.pagination')
@@
-134,7
+131,6
@@
$textarea.val($textarea.val().substring(0, 512));
$('#comment-chars-left').html('' + (512 - $textarea.val().length));
$textarea.val($textarea.val().substring(0, 512));
$('#comment-chars-left').html('' + (512 - $textarea.val().length));
- console.log(event.type);
});
});
</script>
\ No newline at end of file
});
});
</script>
\ No newline at end of file