]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4883 from nupplaphil/install_config
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Apr 2018 13:59:57 +0000 (09:59 -0400)
committerGitHub <noreply@github.com>
Sat, 21 Apr 2018 13:59:57 +0000 (09:59 -0400)
Moved .htconfig.php file & extracted Install business logic

view/theme/frio/css/style.css
view/theme/frio/js/filebrowser.js
view/theme/frio/js/modal.js
view/theme/frio/js/theme.js
view/theme/frio/templates/comment_item.tpl
view/theme/frio/templates/event_form.tpl
view/theme/frio/templates/prv_message.tpl

index 6f2a71ca44ed04e753dad08f446de2d2320f4d81..4295ecec626562c9135f80cfe4cb1f149acbf168 100644 (file)
@@ -2409,10 +2409,13 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
     height: 48px;
     width: 48px;
 }
-
 #prvmail-end {
     clear:both;
 }
+#modal #prvmail-text-edit-bb .bb-img {
+    display: none;
+}
+
 /* photos */
 .photo-album-actions {
     margin-bottom: 10px;
index 92f1412911c403a73bb520ea5b9bae6a16dfc0a1..270172072d5ac72073a58f6f80e353a877199114 100644 (file)
@@ -231,7 +231,6 @@ var FileBrowser = {
                $(".fbrowser .fbswitcher [data-mode=" + FileBrowser.type + "]").addClass("active");\r
                // We need to add the AjaxUpload to the button\r
                FileBrowser.uploadButtons();\r
-               \r
        },\r
 \r
        // Load new content (e.g. change photo album)\r
index 2b60049f1d4a37392cbd3e15f35e7a00939fc67b..56df75d7b68269fa5ea9ced61d7ad80b0e1998eb 100644 (file)
@@ -152,6 +152,7 @@ Dialog._load = function(url) {
        var jsbrowser = function() {
                FileBrowser.init(nickname, type, hash);
        };
+       loadScript("view/js/ajaxupload.js");
        loadScript("view/theme/frio/js/filebrowser.js", jsbrowser);
 };
 
index a8787a6eb5dced342fee554f28e0c3f198a75980..859df01613a7deec6d41f2210da6d072495af0a0 100644 (file)
@@ -446,8 +446,16 @@ function justifyPhotosAjax() {
        $('#photo-album-contents').justifiedGallery('norewind').on('jg.complete', function(e){ justifiedGalleryActive = false; });
 }
 
+// Load a js script to the html head.
 function loadScript(url, callback) {
-       // Adding the script tag to the head as suggested before
+       // Check if the script is already in the html head.
+       var oscript = $('head script[src="' + url + '"]');
+
+       // Delete the old script from head.
+       if (oscript.length > 0) {
+               oscript.remove();
+       }
+       // Adding the script tag to the head as suggested before.
        var head = document.getElementsByTagName('head')[0];
        var script = document.createElement('script');
        script.type = 'text/javascript';
@@ -458,7 +466,7 @@ function loadScript(url, callback) {
        script.onreadystatechange = callback;
        script.onload = callback;
 
-       // Fire the loading
+       // Fire the loading.
        head.appendChild(script);
 }
 
index 8729f487f0625fa166629374aa49edd72d0e7dd8..8d90394d580c64b7318288803ac329431f43dfe8 100644 (file)
@@ -33,7 +33,7 @@
                        {{/if}}
                        <ul class="comment-edit-bb-{{$id}} comment-icon-list nav nav-pills pull-right">
                                <li>
-                                       <button type="button" class="btn-link icon" style="cursor: pointer;" aria-label="{{$edimg}}" title="{{$edimg}}" data-role="insert-formatting" data-bbcode="img" data-id="{{$id}}">
+                                       <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" aria-label="{{$edimg}}" title="{{$edimg}}" data-role="insert-formatting" data-bbcode="img" data-id="{{$id}}">
                                                <i class="fa fa-picture-o"></i>
                                        </button>
                                </li>
index 39b08a7b0216ecea1785637cc66740bef5b62826..41b11c5bb781d8478e6b26886064d4f96d591e61 100644 (file)
@@ -79,7 +79,7 @@
                                <ul id="event-desc-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
                                        {{* commented out because it isn't implemented yet
                                        <li>
-                                               <button type="button" class="btn-link icon" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="desc">
+                                               <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="desc">
                                                        <i class="fa fa-picture-o"></i>
                                                </button>
                                        </li>
                                <ul id="comment-tools-loc" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
                                        {{* commented out because it isn't implemented yet
                                        <li>
-                                               <button type="button" class="btn-link icon" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="loc">
+                                               <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="loc">
                                                        <i class="fa fa-picture-o"></i>
                                                </button>
                                        </li>
index d80fcf6a12f71e1db4424f05f5e3f1d1c3c47fc8..4c90dcae6d8e09a084d444f60b9f316cad8753ae 100644 (file)
@@ -33,7 +33,7 @@
 
        <ul id="prvmail-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
                                <li>
-                                       <button type="button" class="btn-link icon" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="input">
+                                       <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="input">
                                                <i class="fa fa-picture-o" aria-hidden="true"></i>
                                        </button>
                                </li>