a broker system for Supercredit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3KB

  1. var uploader =
  2. {
  3. "view": "popup",
  4. "id": "upload_popup",
  5. "css": "upload_popup",
  6. "position": "center",
  7. head: "This window can be moved",
  8. close: true,
  9. "modal": true,
  10. "move": true,
  11. "width": 600,
  12. "body": {
  13. view: "form",
  14. rows: [
  15. {
  16. view: "list",
  17. id: "mylist",
  18. type: "uploader",
  19. minheight: 100,
  20. autoheight: true,
  21. borderless: true
  22. },
  23. {
  24. "view": "toolbar",
  25. "css": "webix_dark",
  26. "paddingX": 5,
  27. "cols": [
  28. { "view": "icon", "icon": "wxi-plus" },
  29. { "view": "label", "label": "Import Trails" },
  30. {
  31. view: "uploader",
  32. id: "uploader_1",
  33. value: "Select file",
  34. link: "mylist",
  35. upload: "php/upload.php",
  36. datatype: "json"
  37. },
  38. { "view": "button", "label": "Close", "width": 80, "click" : close_uploader },
  39. ]
  40. },
  41. ]
  42. }
  43. };
  44. var uploader_popup = webix.ui(uploader);
  45. function close_uploader(){
  46. uploader_popup.hide();
  47. }