File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 location . href = location . origin + '/error.html' ;
2222 }
2323 }
24+ ( function addTrailingSlash ( ) {
25+ var path = window . location . pathname ;
26+ if ( path . indexOf ( '/preview' ) !== - 1 && ! path . endsWith ( '/' ) ) {
27+ var newUrl = window . location . origin + path + '/' ;
28+ window . location . replace ( newUrl ) ;
29+ }
30+ } ) ( ) ;
2431 </ script >
2532 < link rel ="shortcut icon " type ="image/x-icon " href ="../../../favicon.ico ">
2633 < link href ="../../../common/index.css " rel ="stylesheet " />
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ import { SignatureDialog } from './../extensions/report-item-extensions/signatur
4949import './../extensions/report-item-extensions/shape.reportitem.css' ;
5050import { EJShape } from './../extensions/report-item-extensions/shape.reportitem' ;
5151
52+ //PDF signature
53+ import './../extensions/report-item-extensions/pdf.signature.reportitem.css' ;
54+ import { EJPDFSignature } from './../extensions/report-item-extensions/pdf.signature.reportitem' ;
55+
5256//globals
5357import './../../../src/controls/globals' ;
5458
@@ -70,6 +74,9 @@ let htmlDocument = 'EJHtmlDocument';
7074window [ pdfDocument ] = EJPdfDocument ;
7175window [ htmlDocument ] = EJHtmlDocument ;
7276
77+ let pdfSignature = 'EJPDFSignature' ;
78+ window [ pdfSignature ] = EJPDFSignature ;
79+
7380//code-mirror
7481import 'codemirror/lib/codemirror' ;
7582import 'codemirror/addon/hint/show-hint' ;
Original file line number Diff line number Diff line change 2121 location . href = location . origin + '/error.html' ;
2222 }
2323 }
24+ ( function addTrailingSlash ( ) {
25+ var path = window . location . pathname ;
26+ if ( path === '/report-designer' ) {
27+ var newUrl = window . location . origin + path + '/' + window . location . search ;
28+ window . location . replace ( newUrl ) ;
29+ }
30+ } ) ( ) ;
2431 </ script >
2532 < link href ="../favicon.ico " type ="image/x-icon " rel ="shortcut icon " />
2633 < link href ="../common/index.css " rel ="stylesheet " />
Original file line number Diff line number Diff line change @@ -45,11 +45,22 @@ $(function () {
4545 className : 'EJSignature' ,
4646 imageClass : 'customitem-signature' ,
4747 displayName : 'Electronic' ,
48- category : 'Signature ' ,
48+ category : 'Signatures ' ,
4949 toolTip :{
5050 requirements : 'Add a report item to the designer area.' ,
5151 description : 'This report item is used to add a graphic signature.' ,
52- title : 'Signature'
52+ title : 'Electronic Signature'
53+ }
54+ } , {
55+ name : 'PDFSignature' ,
56+ className : 'EJPDFSignature' ,
57+ imageClass : 'customitem-pdfsignature' ,
58+ displayName : 'PDF' ,
59+ category : 'Signatures' ,
60+ toolTip :{
61+ requirements : 'Add a report item to the designer area.' ,
62+ description : 'This report item is used to add a digital PDF signature.' ,
63+ title : 'PDF Signature'
5364 }
5465 } , {
5566 name : 'Shape' ,
Original file line number Diff line number Diff line change 2121 location . href = location . origin + '/error.html' ;
2222 }
2323 }
24+ ( function addTrailingSlash ( ) {
25+ var path = window . location . pathname ;
26+ if ( path === '/report-designer/rdlc' ) {
27+ var newUrl = window . location . origin + path + '/' + window . location . search ;
28+ window . location . replace ( newUrl ) ;
29+ }
30+ } ) ( ) ;
2431 </ script >
2532 < link href ="../../favicon.ico " type ="image/x-icon " rel ="shortcut icon " />
2633 < link href ="../../common/index.css " rel ="stylesheet " />
Original file line number Diff line number Diff line change @@ -45,11 +45,22 @@ $(function () {
4545 className : 'EJSignature' ,
4646 imageClass : 'customitem-signature' ,
4747 displayName : 'Electronic' ,
48- category : 'Signature ' ,
48+ category : 'Signatures ' ,
4949 toolTip :{
5050 requirements : 'Add a report item to the designer area.' ,
5151 description : 'This report item is used to add a graphic signature.' ,
52- title : 'Signature'
52+ title : 'Electronic Signature'
53+ }
54+ } , {
55+ name : 'PDFSignature' ,
56+ className : 'EJPDFSignature' ,
57+ imageClass : 'customitem-pdfsignature' ,
58+ displayName : 'PDF' ,
59+ category : 'Signatures' ,
60+ toolTip :{
61+ requirements : 'Add a report item to the designer area.' ,
62+ description : 'This report item is used to add a digital PDF signature.' ,
63+ title : 'PDF Signature'
5364 }
5465 } , {
5566 name : 'Shape' ,
Original file line number Diff line number Diff line change 2828 location . href = location . origin + '/error.html' ;
2929 }
3030 }
31+ function addTrailingSlash ( ) {
32+ var path = window . location . href ;
33+ if ( path && path !== '/' && ! path . endsWith ( '/' ) ) {
34+ var newUrl = path + '/' ;
35+ window . location . replace ( newUrl ) ;
36+ }
37+ }
38+ addTrailingSlash ( ) ;
39+ window . addEventListener ( 'hashchange' , addTrailingSlash , false ) ;
3140 </ script >
3241 < link rel ="stylesheet " href ="app.css " />
3342 < link rel ="shortcut icon " type ="image/x-icon " href ="favicon.ico " />
Original file line number Diff line number Diff line change 11{
22 "name" : " javascript-samples" ,
3- "version" : " 11 .1.10 " ,
3+ "version" : " 12 .1.12 " ,
44 "description" : " " ,
55 "author" : " " ,
66 "license" : " ISC" ,
3939 },
4040 "dependencies" : {
4141 "@babel/polyfill" : " 7.2.5" ,
42- "@boldreports/javascript-reporting-controls" : " 11 .1.10 " ,
43- "@boldreports/javascript-reporting-extensions" : " 11 .1.10 " ,
42+ "@boldreports/javascript-reporting-controls" : " 12 .1.12 " ,
43+ "@boldreports/javascript-reporting-extensions" : " 12 .1.12 " ,
4444 "codemirror" : " 5.58.2" ,
4545 "hasher" : " 1.2.0" ,
4646 "jquery" : " 3.6.0" ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export class MainContent {
5252 const curRouterIndex = curRouterData . curIndex ;
5353 const sampleData = curRouterData . isFirst ? samples [ data . samples . length - 1 ] : samples [ curRouterIndex - 1 ] ;
5454 const reportPath = sampleData . routerPath ? ( sampleData . basePath + '/' + sampleData . routerPath ) : sampleData . basePath ;
55- hasher . setHash ( reportPath ) ;
55+ hasher . setHash ( reportPath + "/" ) ;
5656 }
5757
5858 onTabNext ( ) {
@@ -62,7 +62,7 @@ export class MainContent {
6262 const curRouterIndex = curRouterData . curIndex ;
6363 const sampleData = curRouterData . isLast ? samples [ 0 ] : samples [ curRouterIndex + 1 ] ;
6464 const reportPath = sampleData . routerPath ? ( sampleData . basePath + '/' + sampleData . routerPath ) : sampleData . basePath ;
65- hasher . setHash ( reportPath ) ;
65+ hasher . setHash ( reportPath + "/" ) ;
6666 }
6767
6868 getCurRouterData ( ) {
You can’t perform that action at this time.
0 commit comments