Skip to content

Instantly share code, notes, and snippets.

@jakuza
Created December 28, 2011 16:03

Revisions

  1. jakuza created this gist Dec 28, 2011.
    3 changes: 3 additions & 0 deletions String Replace
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    var base_edit_url = "{{ path('admin_sandbox_main_editablestaticcontent_edit', { 'id': "%%ID%%" }) }}";
    var edit_url = base_edit_url.replace("%%ID%%", data.rslt.obj.attr("id"));
    window.location = edit_url;