File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ class TagBookmarkBusiness implements ITagBookmarkBusiness {
204
204
e = list [ currentIndex ] ;
205
205
bookmark = BookmarkDAO . fromObject ( e ) ;
206
206
BusinessMediator . getBookmarkBusiness ( ) . engineBookmark ( bookmark ) ;
207
+ bookmark . setId ( SecurityHelper . disarm ( StringHelper . trim ( bookmark . getId ( ) ) ) ) ;
207
208
DataAccessObject . initialize (
208
209
( success ) => {
209
210
ActiveRecordObject . insert (
@@ -231,6 +232,7 @@ class TagBookmarkBusiness implements ITagBookmarkBusiness {
231
232
e = list [ currentIndex ] ;
232
233
tag = TagDAO . fromObject ( e ) ;
233
234
BusinessMediator . getTagBusiness ( ) . engineTag ( tag ) ;
235
+ tag . setId ( SecurityHelper . disarm ( StringHelper . trim ( tag . getId ( ) ) ) ) ;
234
236
DataAccessObject . initialize (
235
237
( success ) => {
236
238
ActiveRecordObject . insert (
Original file line number Diff line number Diff line change @@ -123,13 +123,6 @@ class TourPresenter extends YimelloPresenter {
123
123
return ;
124
124
}
125
125
126
- if ( ! TSObject . exists ( this . _tags ) ) {
127
- // First call, gather data
128
- this . _tags = DOMTree . findSingle ( '.js-slide .js-tag-list' ) ;
129
- TourPresenter . _tagID = 0 ;
130
- this . _currentTags = new ArrayList < TagDAO > ( ) ;
131
- }
132
-
133
126
// Start to build a new tag
134
127
tag =
135
128
DOMElement . fromString ( '<li><p>' + value + '</p></li>' ) ;
@@ -212,9 +205,11 @@ class TourPresenter extends YimelloPresenter {
212
205
* Prepares tag generator
213
206
*/
214
207
private _prepareTagGenerator ( ) : void {
215
- if ( ! TSObject . exists ( this . _tagInput ) ) {
216
- this . _tagInput = this . _slides . findSingle ( '.js-slide .js-tag-form input[name="tags"]' ) ;
217
- }
208
+ this . _tagInput = this . _slides . findSingle ( '.js-slide .js-tag-form input[name="tags"]' ) ;
209
+ this . _tags = DOMTree . findSingle ( '.js-slide .js-tag-list' ) ;
210
+ TourPresenter . _tagID = 0 ;
211
+ this . _currentTags = new ArrayList < TagDAO > ( ) ;
212
+
218
213
this . _tagInput . on (
219
214
DOMElementEvents . KeyDown ,
220
215
( e ) => {
You can’t perform that action at this time.
0 commit comments