File tree 6 files changed +11
-10
lines changed
6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 68
68
copyable_longTapHandler : function ( event ) {
69
69
event . preventDefault ( ) ;
70
70
event . stopPropagation ( ) ;
71
- var text = $ ( event . target ) . text ( ) ;
72
- window . app . copyToClipboard ( text ) ;
71
+ var type = $ ( event . target ) . attr ( 'data-type' ) ;
72
+ var key = _ . findWhere ( this . model . get ( "items" ) , { key : type } ) ;
73
+ window . app . copyToClipboard ( key . value ) ;
73
74
window . app . toastView . show ( "Copied to clipboard" ) ;
74
75
} ,
75
76
copyable_doubleTapHandler : function ( event ) {
Original file line number Diff line number Diff line change 86
86
this . trigger ( "deleteentry" ) ;
87
87
} ,
88
88
setTitle : function ( title ) {
89
- this . $ ( ".nav .title" ) . html ( title ) ;
89
+ this . $ ( ".nav .title" ) . text ( title ) ;
90
90
} ,
91
91
backButtonDisplay : function ( show ) {
92
92
if ( show ) {
Original file line number Diff line number Diff line change 1
1
{{? it.type === 'textarea' }}
2
2
< textarea name ="{{= it.id }} " rows ="3 " placeholder ="{{= it.placeholder }} "> {{= it.value }}</ textarea >
3
3
{{?? }}
4
- < input type ="{{= it.type || 'text' }} " autocorrect ="off " autocapitalize ="off " name ="{{= it.id }} " placeholder ="{{= it.placeholder }} " value ="{{= it.value }} " />
4
+ < input type ="{{= it.type || 'text' }} " autocorrect ="off " autocapitalize ="off " name ="{{= it.id }} " placeholder ="{{= it.placeholder }} " value ="{{! it.value }} " />
5
5
{{? }}
Original file line number Diff line number Diff line change 1
1
< form >
2
2
< ul class ="flat ">
3
3
< li class ="sep "> Label *</ li >
4
- < li class ="input "> < input type ="text " name ="label " placeholder ="A label to display " value ="{{= it.label || '' }} " /> </ li >
4
+ < li class ="input "> < input type ="text " name ="label " placeholder ="A label to display " value ="{{! it.label || '' }} " /> </ li >
5
5
</ ul >
6
6
< ul class ="editable flat "> </ ul >
7
7
< div > < p > < small > * All fields are optional except "label"</ small > </ p > </ div >
Original file line number Diff line number Diff line change 1
1
< a >
2
- < div > {{= it.label }}</ div >
2
+ < div > {{! it.label }}</ div >
3
3
< div > < span class ='small '> {{= it.type }}</ span > </ div >
4
- </ a >
4
+ </ a >
Original file line number Diff line number Diff line change 1
1
< ul >
2
- < li > < strong > {{= it.label }}</ strong > </ li >
2
+ < li > < strong > {{! it.label }}</ strong > </ li >
3
3
<!-- <li class="sep">Type</li>
4
4
<li><em>{{= it.type }}</em></li> -->
5
5
{{ _.each(it.items, function(item) { }}
6
6
{{? item.value }}< li class ="sep "> {{= item.key}}</ li >
7
7
< li > {{= item.type === 'textarea' ? '< pre > ' : ''}}
8
- < a class ="copyable {{= item.type || item.key.toLowerCase() }} ">
9
- {{= item.value }}
8
+ < a data-type =" {{= item.key }} " class ="copyable {{= item.type || item.key.toLowerCase() }} ">
9
+ {{! item.value }}
10
10
</ a >
11
11
{{= item.key === 'Password' ? '< a href ="# " class ="eye fa fa-eye "> </ a > ' : '' }}
12
12
{{= item.type === 'textarea' ? '</ pre > ' : ''}}</ li > {{? }}
You can’t perform that action at this time.
0 commit comments