2017-03-10 9 views
-1

私は無料のDNNプラットフォーム9.0.1を実行しています。左側のPersonabarが左から右にスライドするのを止めたいと思います。私はページをリフレッシュした瞬間から静的で見えるようにしたい。私は左のプロパティをオーバーライドするCSSを追加しようとしましたが、それは助けになりませんでした。スライドを実行しているJavaScriptコードはどこですか?私はそれを削除したい。dotnetnuke stop personabar sliding

+0

私はこれが現代のDNNフレームワークの中核に組み込まれていると信じており、これを止めるための設定はありません。 – blackhawk

答えて

1

私はそれを行う方法を見つけました。他の誰かがそれに悩まされている場合は、ここでアニメーションを停止する方法があります。

$personaBar.css({ left: -100 }); 
$parentBody.animate({ marginLeft: personaBarMenuWidth }, 200, 'linear', onShownPersonaBar); 
$personaBar.animate({ left: 0 }, 200, 'linear', callback); 

に...

//$personaBar.css({ left: -100 }); 
//$parentBody.animate({ marginLeft: personaBarMenuWidth }, 0, 'linear', onShownPersonaBar); 
//$personaBar.animate({ left: 0 }, 0, 'linear', callback); 

onShownPersonaBar(); 
callback(); 

...と私: '/DesktopModules/admin/Dnn.PersonaBar/scripts/main.js' は、

は、私は次のように変更しましたCSSの '.personabar'ルールを 'left:0;'に変更しました。