phpBB-Social-Network/phpBB-Social-Network — pull request #60 by Culprit-CZ (2012-10-10 12:01:35+00:00)
Title: Remove double click to share & collapse by click outside

##### Need much more effective solution
added to elastic options
```js
parentElement
submitElement
```
When mouse is over ```submitElement``` than blur will not collapse.
```parentElement``` is necessary to select the ```submitElement```

Selector of the submitElement
```js
$(this).parents(parentElement).find(submitElement)
```
I did not find any better solution for create simplest DOM selector.

-
##### Here is attached diff for m.profile.js, other files have no problem with TABs vs SPACEs

```
--- a/root/socialnet/js/m.profile.js
+++ b/root/socialnet/js/m.profile.js
@@ -8,313 +8,319 @@
*/
(function($) {
$.sn.up = {
+	$.sn.comments.waterMark();
+
+	$("#sn-us-wallInput").watermark($.sn.us.watermark, {
+	useNative : false,
+	className : 'sn-us-watermark'
+	}).elastic({
+	parentElement: '.sn-us-share',
+	submitElement: '.sn-us-wallButton'
+	}).trigger('blur');
+	$.sn._resize();
+	$.sn._textExpander();

-	$.sn.comments.waterMark();
-	$("#sn-us-wallInput").watermark($.sn.us.watermark, {
-	useNative : false,
-	className : 'sn-us-watermark'
-	}).elastic().trigger('focusout');
}
}(jQuery))
```