File tree 3 files changed +13
-6
lines changed
src/main/amp/config/alfresco/web-extension/site-webscripts/es/keensoft/sign
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 4
4
<modelVersion >4.0.0</modelVersion >
5
5
<groupId >es.keensoft.alfresco</groupId >
6
6
<artifactId >esign-cert-repo</artifactId >
7
- <version >1.0-SNAPSHOT </version >
7
+ <version >1.0.0 </version >
8
8
<name >esign-cert-repo Repository AMP project</name >
9
9
<packaging >amp</packaging >
10
10
<description >Manages the lifecycle of the esign-cert-repo Repository AMP (Alfresco Module Package)</description >
Original file line number Diff line number Diff line change 4
4
<modelVersion >4.0.0</modelVersion >
5
5
<groupId >es.keensoft.alfresco</groupId >
6
6
<artifactId >esign-cert-share</artifactId >
7
- <version >1.0-SNAPSHOT </version >
7
+ <version >1.0.0 </version >
8
8
<name >esign-cert-share AMP project</name >
9
9
<packaging >amp</packaging >
10
10
<description >Manages the lifecycle of the esign-cert-share AMP (Alfresco Module Package)</description >
Original file line number Diff line number Diff line change 26
26
<script type =" text/javascript" >// <![CDATA[
27
27
28
28
function show_signed (signatureBase64 , certificateB64 ) {
29
- signedData .value = signatureBase64;
30
- signerData .value = certificateB64;
29
+ var signForm = YAHOO .util .Dom .get (" signDialog-form" );
30
+ signForm .signedData .value = signatureBase64;
31
+ signForm .signerData .value = certificateB64;
31
32
YAHOO .util .Dom .get (" info" ).innerHTML = " ${msg(" signed" )}" ;
32
33
var submitButton = YAHOO .util .Dom .get (" signDialog-ok" );
33
34
submitButton .click ();
55
56
}
56
57
};
57
58
59
+ var running = false ;
58
60
function doSign () {
59
- window .clearInterval (loadingSignComponentInterval);
60
61
var signFrame = YAHOO .util .Dom .get (" sign-frame" );
61
62
var signForm = YAHOO .util .Dom .get (" signDialog-form" );
62
- signFrame .contentWindow .doSign (signForm .dataToSign , signForm .signedData , signForm .signerRole );
63
+ if (signFrame .contentWindow .doSign ) {
64
+ window .clearInterval (loadingSignComponentInterval);
65
+ if (! running) {
66
+ running = true ;
67
+ signFrame .contentWindow .doSign (signForm .dataToSign , signForm .signedData , signForm .signerRole );
68
+ }
69
+ }
63
70
};
64
71
65
72
// ]]> </script >
You can’t perform that action at this time.
0 commit comments