]> git.mxchange.org Git - friendica.git/commitdiff
Show error message if image exceeds limit + fix close button
authorJonny Tischbein <jonny_tischbein@systemli.org>
Mon, 29 Oct 2018 22:06:42 +0000 (23:06 +0100)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Mon, 29 Oct 2018 22:06:42 +0000 (23:06 +0100)
view/theme/frio/js/filebrowser.js
view/theme/frio/templates/filebrowser.tpl

index 270172072d5ac72073a58f6f80e353a877199114..ee0b985a61de8a8cfc19b250f7833ce5bc54c16f 100644 (file)
@@ -176,6 +176,7 @@ var FileBrowser = {
                                        },\r
                                        onComplete: function(file,response) {\r
                                                if (response['error'] != undefined) {\r
+                                                       $(".fbrowser-content").show();\r
                                                        $(".error span").html(response['error']);\r
                                                        $(".error").removeClass('hidden');\r
                                                        $(".fbrowser .profile-rotator-wrapper").hide();\r
index dc3c47a66a9ea05dcfec6805c561b7ec2c36596a..d452810c88a1d4453557f42372902e496fa2f585 100644 (file)
@@ -13,7 +13,7 @@
                <input id="fb-type" type="hidden" name="type" value="{{$type}}" />
 
                <div class="error hidden">
-                       <span></span> <button type="button" class="btn btn-link" class="close" aria-label="Close">X</a>
+                       <span></span> <button type="button" class="btn btn-link close" aria-label="Close">X</a>
                </div>
 
                {{* The breadcrumb navigation *}}