fix validation errors
authorChristian Weiske <christian.weiske@netresearch.de>
Thu, 26 Feb 2015 09:30:44 +0000 (10:30 +0100)
committerChristian Weiske <christian.weiske@netresearch.de>
Thu, 26 Feb 2015 09:30:44 +0000 (10:30 +0100)
data/templates/base.htm
data/templates/edit-file.htm

index fabfd52..330cec6 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html>
-<html>
 <head>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
   <base href="{{baseurl}}" />
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <meta charset="utf-8" />
   <link rel="stylesheet" href="css/bootstrap.min.css"/>
   <link rel="stylesheet" href="css/font-awesome.css"/>
   <link rel="stylesheet" href="css/phorkie.css"/>
index 5900086..f9ed68f 100644 (file)
@@ -16,7 +16,7 @@
     <div class="row-fluid">
      <div class="span6">
       <input type="hidden" name="files[{{fileid}}][original_name]" value="{{file.getFilename}}"/>
-      <input type="text" name="files[{{fileid}}][name]" id="filename_{{fileid}}" value="{{file.getFilename}}" placeholder="Filename (optional)" class="filename" onchange="filenameChange(this, {{fileid}})" onkeyup="filenameChange(this, {{fileid}})"/>
+      <input type="text" name="files[{{fileid}}][name]" id="filename_{{fileid}}" value="{{file.getFilename}}" placeholder="Filename (optional)" class="filename" onchange="filenameChange(this, '{{fileid}}')" onkeyup="filenameChange(this, '{{fileid}}')"/>
      </div>
      <div class="span6 typeselect" style="text-align: right" id="typeselect_{{fileid}}">
       <label for="type_{{fileid}}" class="inline">Type</label>
@@ -43,4 +43,3 @@
    </div><!-- /span12 -->
   </div><!-- /row-fluid -->
  </div>
-