Переглянути джерело

[fb] Reset file name input before opening the create new file pop-up

https://github.com/cloudera/hue/pull/268

Fix a bug about "file browser" -> "create" a "new file"
after judged same name,open the window again, emptied the contents of the file name.
Xhxiong 10 роки тому
батько
коміт
80e1a51f10

+ 1 - 0
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -1782,6 +1782,7 @@ from django.utils.translation import ugettext as _
       });
       });
 
 
       $(".create-file-link").click(function () {
       $(".create-file-link").click(function () {
+        $("#newFileNameInput").val('');
         $("#createFileModal").modal({
         $("#createFileModal").modal({
           keyboard:true,
           keyboard:true,
           show:true
           show:true