Commits

Ahmad Khayyat committed 143c59e

Use url template tag instead of hardcoded preview url

Comments (0)

Files changed (1)

mezzanine_pagedown/templates/mezzanine_pagedown/editor.html

       editor_{{ id }}.run();
       {% if server_side_preview %}
       preview = function() {
-        $.post('/pagedown/preview/',
+        $.post('{% url 'preview' %}',
           {text:$('#wmd-input-{{ id }}').val()},
           function(data,status) {
             $('#server-preview-{{ id }}').html(data);