Ver código fonte

Merge pull request #1199 from anandpdoshi/anand-july-15

Fixes to print item image in table and freeze attach button while uploading
version-14
Rushabh Mehta 10 anos atrás
pai
commit
d64dde68aa
2 arquivos alterados com 7 adições e 1 exclusões
  1. +2
    -1
      frappe/public/js/frappe/upload.js
  2. +5
    -0
      frappe/templates/styles/standard.css

+ 2
- 1
frappe/public/js/frappe/upload.js Ver arquivo

@@ -92,7 +92,8 @@ frappe.upload = {
var attachment = r.message;
opts.callback(attachment, r);
$(document).trigger("upload_complete", attachment);
}
},
btn: opts.btn
});
}
}


+ 5
- 0
frappe/templates/styles/standard.css Ver arquivo

@@ -24,6 +24,11 @@
.page-break:last-child {
border-bottom: 0px;
}

/* mozilla hack for images in table */
body:last-child .print-format td img {
width: 100% !important;
}
}

@media print {


Carregando…
Cancelar
Salvar