diff --git a/js/backend.js b/js/backend.js index 24086671f918619203b8cfd9a717bdfedd966396..0763ab1ba47b15d5a91aedd9828f403d521fd108 100644 --- a/js/backend.js +++ b/js/backend.js @@ -135,9 +135,6 @@ function Pianos4Backend(params) layoutObj = mainDiv.layout({ defaults: { fxName: 'none', - // spacing_open: params.layoutBorderWidth, - // spacing_closed: params.layoutBorderWidth, - // applyDefaultStyles: true, }, center: { onresize: function() { onWindowSizeChanged(false); }, @@ -784,9 +781,6 @@ function Pianos4Backend(params) }); } - // for (var i in $.browser) - // log('$.browser.'+i+' = '+$.browser[i]); - return div; } @@ -894,7 +888,6 @@ function Pianos4Backend(params) break; case 'folder': - // if (params.user.tutor) constructor = Pianos4Backend.AdminFolder; opts = { id: id, @@ -1390,7 +1383,6 @@ function Pianos4Backend(params) $( "#get_default_password_list_for_users" ).remove(); } ); - var password_list_content = ""; $.ajax( { url: '?action=rpc&method=getDefaultPasswordForUsers', type: 'POST', @@ -1401,6 +1393,7 @@ function Pianos4Backend(params) success: function( data ){ if( ! data.error ) { + var password_list_content = ""; data.ret.forEach( function( user ){ password_list_content += user[ "username" ] + ";" + user[ "password" ] + "\n"; } );