Răsfoiți Sursa

#3051 Asynchronous blocks

Alex Trofimov 6 ani în urmă
părinte
comite
b1ac7bd558

+ 5 - 3
inc/js/classes/BxDolMenuMoreAuto.js

@@ -57,9 +57,11 @@ BxDolMenuMoreAuto.prototype.init = function() {
            $this.update();
            $this.update();
         });
         });
 
 
-        oMenu.find(this._sClassItem).on('resize', function() {
-            $this.update(true);
-        });
+        setTimeout(function () {
+            oMenu.find(this._sClassItem).on('resize', function() {
+                $this.update(true);
+            });
+        }, 200);
     }
     }
 };
 };
 
 

Fișier diff suprimat deoarece este prea mare
+ 6 - 5
install/sql/system.sql


+ 1 - 0
modules/boonex/english/data/langs/system/en.xml

@@ -2788,6 +2788,7 @@ If it is not enabled then please consider implement this optimization, since it
     <string name="_sys_page_content_ph_loading_indicator"><![CDATA[With loading indicator]]></string>
     <string name="_sys_page_content_ph_loading_indicator"><![CDATA[With loading indicator]]></string>
     <string name="_sys_page_content_ph_text"><![CDATA[With text placeholder]]></string>
     <string name="_sys_page_content_ph_text"><![CDATA[With text placeholder]]></string>
     <string name="_sys_page_content_ph_image"><![CDATA[With image placeholder]]></string>
     <string name="_sys_page_content_ph_image"><![CDATA[With image placeholder]]></string>
+    <string name="_sys_page_content_ph_create_post"><![CDATA[With create post placeholder]]></string>
     <string name="_sys_page_content_ph_profile_units"><![CDATA[With profile units placeholder]]></string>
     <string name="_sys_page_content_ph_profile_units"><![CDATA[With profile units placeholder]]></string>
     <string name="_sys_page_content_ph_text_units_list"><![CDATA[With text units list placeholder]]></string>
     <string name="_sys_page_content_ph_text_units_list"><![CDATA[With text units list placeholder]]></string>
     <string name="_sys_page_content_ph_text_units_gallery"><![CDATA[With text units gallery placeholder]]></string>
     <string name="_sys_page_content_ph_text_units_gallery"><![CDATA[With text units gallery placeholder]]></string>

+ 1 - 0
modules/boonex/russian/data/langs/system/ru.xml

@@ -2739,6 +2739,7 @@
     <string name="_sys_page_content_ph_loading_indicator"><![CDATA[С индикатором загрузки]]></string>
     <string name="_sys_page_content_ph_loading_indicator"><![CDATA[С индикатором загрузки]]></string>
     <string name="_sys_page_content_ph_text"><![CDATA[С заполнителем в виде текста]]></string>
     <string name="_sys_page_content_ph_text"><![CDATA[С заполнителем в виде текста]]></string>
     <string name="_sys_page_content_ph_image"><![CDATA[С заполнителем в виде картинки]]></string>
     <string name="_sys_page_content_ph_image"><![CDATA[С заполнителем в виде картинки]]></string>
+    <string name="_sys_page_content_ph_create_post"><![CDATA[С заполнителем в виде создания поста]]></string>
     <string name="_sys_page_content_ph_profile_units"><![CDATA[С заполнителем в виде профайлов]]></string>
     <string name="_sys_page_content_ph_profile_units"><![CDATA[С заполнителем в виде профайлов]]></string>
     <string name="_sys_page_content_ph_text_units_list"><![CDATA[С заполнителем в виде списка текстовых блоков]]></string>
     <string name="_sys_page_content_ph_text_units_list"><![CDATA[С заполнителем в виде списка текстовых блоков]]></string>
     <string name="_sys_page_content_ph_text_units_gallery"><![CDATA[С заполнителем в виде галереи текстовых блоков]]></string>
     <string name="_sys_page_content_ph_text_units_gallery"><![CDATA[С заполнителем в виде галереи текстовых блоков]]></string>

+ 16 - 0
template/block_async_create_post.html

@@ -0,0 +1,16 @@
+
+<div class="sys-cpf-form sys-cpf-default">
+    <div class="sys-cpf-user">
+        <div class="bx-base-pofile-unit-thumb bx-def-thumb bx-def-thumb-size bx-def-box-sizing bx-cont-ph"></div>
+    </div>
+    <div class="sys-cpf-content bx-def-thumb-size-min-height bx-def-thumb-size-left-indent bx-def-font-grayed">
+        <div class="bx-def-thumb-size"><span class="bx-cont-ph" style="width:11rem;">&nbsp;</span></div>
+    </div>
+</div>
+
+<script>
+    var iBlockID = '__id__';
+    $(document).ready(function () {
+        getHtmlData($('#bx-page-block-' + iBlockID), bx_append_url_params(document.location.href, 'dynamic=tab&pageBlock=' + iBlockID), undefined, 'post', false, {includedCss: JSON.stringify(aIncludedCss), includedJs: JSON.stringify(aIncludedJs)}, false);
+    });
+</script>

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff