     reset()
 
 
-
   clip = new ZeroClipboard($("#copyclipboard"), { moviePath: "/assets/flash/ZeroClipboard.swf" })
   clip.glue($("#copyclipboard"));
 
 $("#copyclipboard").on(
   'mouseover'
   (event) ->
-    $("#copyclipboard").attr("data-clipboard-text",""+window.location);
+    $("#copyclipboard").attr("data-clipboard-text", "" + window.location);
 
 )
)

resulteditor = ace.edit "resulteditor"
resulteditor.setTheme  "ace/theme/monokai"
resulteditor.getSession().setMode  "ace/mode/xml"

$("#autotransform").click ->
  autotransform = !autotransform;

  jsRoutes.controllers.Application.save().ajax(
    data: $("#files").serialize()
    success: (data) ->
      if data[1] == 0
        window.history.pushState("", "XSL Transform", "/" + data[0]);
      else
        window.history.pushState("", "XSL Transform", "/" + data[0] + "/" + data[1]);
      $("#id_slug").val(data[0]);
      $("#save").find("span").html("Update");
    error: (err) ->
      console.log err
      $("#alert").find("h4").html("Save oeps");
