Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. @if (Html.IsDebug())
  2. {
  3. <script type="text/javascript"> isDebug = true; </script>
  4. }
  5. else
  6. {
  7. <script type="text/javascript"> isDebug = false; </script>
  8. }
  9.  
  10. <script>
  11. require.config({
  12.  
  13. baseUrl: '/scripts',
  14.  
  15. /* Setup aliases, just for ease. Without these, you could still just: require(['scripts/jquery.min']); */
  16. paths: {
  17. bootstrapDuallistbox: (isDebug) ? 'vendor/bootstrap/3.0.0/jquery.bootstrap-duallistbox' : 'vendor/bootstrap/3.0.0/jquery.bootstrap-duallistbox.min',
  18. common: (isDebug) ? '/Scripts/common' : '/Scripts/common.min',
  19. settings: (isDebug) ? '/Areas/Admin/Scripts/Settings':'/Areas/Admin/Scripts/Settings.min',
  20. },
  21. });
  22. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement