Commits

Anonymous committed 86d8f22

js path tweak

  • Participants
  • Parent commits 75a513f
  • Branches mine

Comments (0)

Files changed (2)

markitup/settings.py

                                   getattr(settings, 'MARKITUP_FILTER', None))
 MARKITUP_AUTO_PREVIEW = getattr(settings, 'MARKITUP_AUTO_PREVIEW', False)
 MARKITUP_MEDIA_URL = getattr(settings, 'MARKITUP_MEDIA_URL',
-                             getattr(settings, 'STATIC_URL'+'js/',
-                             settings.MEDIA_URL+'js/')) # django < 1.3 fallback
-MARKITUP_SET = getattr(settings, 'MARKITUP_SET', 'markitup/sets/markdown')
-MARKITUP_SKIN = getattr(settings, 'MARKITUP_SKIN', 'markitup/skins/simple')
+                             getattr(settings, 'STATIC_URL',
+                             settings.MEDIA_URL)) # django < 1.3 fallback
+MARKITUP_SET = getattr(settings, 'MARKITUP_SET', 'js/markitup/sets/markdown')
+MARKITUP_SKIN = getattr(settings, 'MARKITUP_SKIN', 'js/markitup/skins/simple')
 JQUERY_URL = getattr(
     settings, 'JQUERY_URL',
     'http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js')

markitup/widgets.py

             css= {'screen': (posixpath.join(self.miu_skin, 'style.css'),
                              posixpath.join(self.miu_set, 'style.css'))},
             js=(absolute_jquery_url(),
-                absolute_url('markitup/jquery.markitup.js'),
+                absolute_url('js/markitup/jquery.markitup.js'),
                 posixpath.join(self.miu_set, 'set.js')))
     media = property(_media)