diff skins/larry/templates/contactedit.html @ 8:bf99236cc5cd default tip

try to recover from upgrade fail
author Charlie Root
date Sat, 29 Dec 2018 07:07:34 -0500
parents 4681f974d28b
children
line wrap: on
line diff
--- a/skins/larry/templates/contactedit.html	Sat Dec 29 06:32:49 2018 -0500
+++ b/skins/larry/templates/contactedit.html	Sat Dec 29 07:07:34 2018 -0500
@@ -19,7 +19,7 @@
 		<roundcube:if condition="env:photocol" />
 		<roundcube:object name="fileDropArea" id="contactpic" />
 		<div class="formlinks">
-			<roundcube:button command="upload-photo" id="uploadformlink" type="link" label="replacephoto" class="iconlink upload disabled" classAct="iconlink upload active" onclick="UI.show_uploadform();return false" condition="env:photocol" /><br/>
+			<roundcube:button command="upload-photo" id="uploadformlink" type="link" label="replacephoto" class="iconlink upload disabled" classAct="iconlink upload active" onclick="rcmail.upload_input('upload-form')" condition="env:photocol" /><br/>
 			<roundcube:button command="delete-photo" type="link" label="delete" class="iconlink delete disabled" classAct="iconlink delete active" condition="env:photocol" />
 		</div>
 		<roundcube:endif />
@@ -40,13 +40,7 @@
 	<roundcube:button name="cancel" type="input" class="button" label="cancel" onclick="history.back()" condition="env:action=='add'" />
 </div>
 
-<div id="upload-dialog" class="propform popupdialog" title="<roundcube:label name='uploadphoto' />">
-	<roundcube:object name="photoUploadForm" id="upload-form" size="30" buttons="no" />
-	<div class="formbuttons">
-		<roundcube:button command="upload-photo" type="input" class="button mainaction" label="upload" />
-		<roundcube:button name="close" type="input" class="button" label="cancel" onclick="UI.show_uploadform()" />
-	</div>
-</div>
+<roundcube:object name="photoUploadForm" id="upload-form" mode="smart" />
 
 <roundcube:include file="/includes/footer.html" />