RomanL 6 anos atrás
pai
commit
db319ea56e

+ 11 - 13
modules/base/profile/template/cover.html

@@ -41,17 +41,15 @@
     __picture_popup__
     __picture_popup__
 </div>
 </div>
 <script>
 <script>
-    var oThumb = $('.bx-base-pofile-cover .bx-base-pofile-cover-thumb img');
-    var oCover = $('.bx-base-pofile-cover .bx-base-pofile-cover-image img');
-
-    var oSource = null;
-    if(oThumb.length > 0)
-        oSource = oThumb;
-    else if(oCover.length > 0)
-        oSource = oCover;
-
-    if(oSource)
-        oSource.ready(function() {
-            window.scrollTo(0, oCover.offset().top + oCover.height() - $('.bx-header').height()- 135);
-        });
+    setTimeout(function () {
+        var sPath = '.bx-base-pofile-cover-wrapper .bx-base-pofile-unit-thumb';
+        console.log($(sPath).length);
+        console.log($(sPath).offset().top);
+        if ($(sPath).length) {
+            var body = $("html, body");
+            if (body.scrollTop() == 0) {
+                body.animate({ scrollTop: $(sPath).offset().top + "px" }, 'slow');
+            }
+        }
+    }, 500);
 </script>
 </script>

+ 0 - 9
modules/boonex/lucid/data/template/system/_header_js_custom.html

@@ -102,14 +102,5 @@
             });
             });
         }
         }
         /*--- Dropdown Menu: END ---*/
         /*--- Dropdown Menu: END ---*/
-
-        setTimeout(function () {
-            if ($('.bx-base-pofile-cover-image').length) {
-                var h = $('.bx-base-pofile-cover-image').height();
-                if ($("html, body").scrollTop() < h) {
-                    $("html, body").animate({ scrollTop: h + "px" }, 'slow');
-                }
-            }
-        }, 500);
     });
     });
 </script>
 </script>

+ 1 - 1
modules/boonex/posts/updates/9.0.11_10.0.0/source/install/langs/en.xml

@@ -26,7 +26,7 @@
     <string name="_bx_posts_form_entry_input_title_err"><![CDATA[Title is essential. Please, fill in this field]]></string>
     <string name="_bx_posts_form_entry_input_title_err"><![CDATA[Title is essential. Please, fill in this field]]></string>
     <string name="_bx_posts_form_entry_input_sys_cat"><![CDATA[Category]]></string>
     <string name="_bx_posts_form_entry_input_sys_cat"><![CDATA[Category]]></string>
     <string name="_bx_posts_form_entry_input_cat"><![CDATA[Category]]></string>
     <string name="_bx_posts_form_entry_input_cat"><![CDATA[Category]]></string>
-    <string name="_bx_posts_form_entry_input_cat_err"><![CDATA[Please select category]]></string>
+    <string name="_bx_posts_form_entry_input_cat_err"><![CDATA[Please, select category or create new]]></string>
     <string name="_bx_posts_form_entry_input_sys_text"><![CDATA[Text]]></string>
     <string name="_bx_posts_form_entry_input_sys_text"><![CDATA[Text]]></string>
     <string name="_bx_posts_form_entry_input_text"><![CDATA[Text]]></string>
     <string name="_bx_posts_form_entry_input_text"><![CDATA[Text]]></string>
     <string name="_bx_posts_form_entry_input_text_err"><![CDATA[Text field can't be empty]]></string>
     <string name="_bx_posts_form_entry_input_text_err"><![CDATA[Text field can't be empty]]></string>