]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing === and ident
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 5 Jul 2013 13:27:14 +0000 (15:27 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 5 Jul 2013 13:27:14 +0000 (15:27 +0200)
core/js/share.js

index ced1e0aa8ca9251feb869c7ee37f1bdb4a465433..21e352ee1c656bc94eb165eab4f221a38fc3ea31 100644 (file)
@@ -181,12 +181,12 @@ OC.Share={
                                html += '<div id="linkPass">';
                                html += '<input id="linkPassText" type="password" placeholder="'+t('core', 'Password')+'" />';
                                html += '</div>';
-                if (itemType == 'folder' && (possiblePermissions & OC.PERMISSION_CREATE)) {
-                    html += '<div id="allowPublicUploadWrapper" style="display:none;">';
-                    html += '<input type="checkbox" value="1" name="allowPublicUpload" id="sharingDialogAllowPublicUpload"' + ((allowPublicUploadStatus) ? 'checked="checked"' : '') + ' />';
-                    html += '<label for="sharingDialogAllowPublicUpload">' + t('core', 'Allow Public Upload') + '</label>';
-                    html += '</div>';
-                }
+                               if (itemType === 'folder' && (possiblePermissions & OC.PERMISSION_CREATE)) {
+                                       html += '<div id="allowPublicUploadWrapper" style="display:none;">';
+                                       html += '<input type="checkbox" value="1" name="allowPublicUpload" id="sharingDialogAllowPublicUpload"' + ((allowPublicUploadStatus) ? 'checked="checked"' : '') + ' />';
+                                       html += '<label for="sharingDialogAllowPublicUpload">' + t('core', 'Allow Public Upload') + '</label>';
+                                       html += '</div>';
+                               }
                                html += '</div><form id="emailPrivateLink" >';
                                html += '<input id="email" style="display:none; width:62%;" value="" placeholder="'+t('core', 'Email link to person')+'" type="text" />';
                                html += '<input id="emailButton" style="display:none;" type="submit" value="'+t('core', 'Send')+'" />';