Ver código fonte

0063: Setting Up LDAP Authentication in Subsonic

i12bretro 4 anos atrás
pai
commit
6abf745de5
1 arquivos alterados com 10 adições e 6 exclusões
  1. 10 6
      0063.html

+ 10 - 6
0063.html

@@ -33,9 +33,13 @@
             $(document).on('click','input.copy-text',function(){
               theButton = $(this);
 														$('input.copy-text').attr('src','images/clipboard.png');
-							              $('span.copy-animation').removeClass('copy-animation');
+							              $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
               try {
-                $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
+                } else {
+                  $('#'+ theButton.attr('rel')).addClass('copy-animation');
+                }
                 navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
 																theButton.attr('src','images/clipboard_active.png');
 								              } catch(err) {
@@ -57,8 +61,8 @@
             });
 
             if(window.self !== window.top){
-              window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
-            }
+															window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
+							            }
           });
         </script>
         <link href="css/steps.css" rel="stylesheet" type="text/css" />
@@ -107,8 +111,8 @@
 	LDAP URL: ldap://i12bretro.local:389/dc=i12bretro,dc=local<br />
 	LDAP search filter: (&amp;(sAMAccountName={0})(&amp;(objectCategory=user)(memberof=cn=Subsonic Users,CN=Users,dc=i12bretro,dc=local)))<br />
 	LDAP manager DN (Optional): i12bretro.local\readonly_svc<br />
-	Password: <readonly_svc password=""><br />
-	Check the Automatically create users in Subsonic box</readonly_svc></li>
+	Password: %readonly_svc password%<br />
+	Check the Automatically create users in Subsonic box</li>
 	<li>Click the Save button</li>
 	<li>Click Users in the top navigation</li>
 	<li>Make sure the Select user dropdown says -- New user --</li>