phpBB-Social-Network/phpBB-Social-Network — pull request #72 by Culprit-CZ (2012-10-15 06:44:26+00:00)
Title: Culprit cz bug collapse blur

##### 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))
```