| to select the first option in a select using jquery: | $("#target option:first").attr('selected','selected'); |
| to get the value of the first option tag in a select using jquery | $("#target").val($("#target option:first").val()); |
| to remove the "selected" from any options that might already be selected | $('#target option[selected="selected"]').each( function() { $(this).removeAttr('selected'); } ); |
This option is implemented by checking whether the comment text has a @ and if so, we just indent it and hide the reply link from the user so that this comment cannot be commented. /home/webmaster/public_html/mod/thewire/views/default/object/thewire.php 1. check for the @ in the text [code] $haystack= $vars['entity']->description; $needle = "@"; if($haystack[0] == $needle) $shallIndent = TRUE; else $shallIndent = FALSE; [/code] 2. use the indentation for the div which is a comment or a reply to a post made earlier. [code] if($shallIndent) { ?> <!-- style="margin-left:50px"--> <div class="thewire-singlepage" style="margin-left:50px"> <?php } else { ?> <div class="thewire-singlepage"> ...
Comments
Post a Comment