Changeset 41 for branches/testa-single-bookmark/js/bookmarkmenu.js
- Timestamp:
- Aug 30, 2019 7:54:52 AM (6 years ago)
- File:
-
- 1 edited
-
branches/testa-single-bookmark/js/bookmarkmenu.js (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/testa-single-bookmark/js/bookmarkmenu.js
r36 r41 6 6 7 7 dlg(){ 8 console.log("BookmarkMenu dlg()")9 8 $( '#bookmark_displayname' ).prop( 'maxlength' , Globalx.bookmark_displayname_max_length) 10 9 $('#bookmarkDlg').dialog({ … … 30 29 add_bookmark() { 31 30 let part = Globalx.parts[ Globalx.index ] 32 console.log("add_bookmark part=" + part)33 31 $( '#bookmark_displayname' ).val( this.bookmark_mgr.get_restricted_display_name( Globalx[part].key ) ) 34 32 $( '#bookmark_path' ).val( Globalx[part].key ) … … 38 36 remove_bookmark() { 39 37 let part = Globalx.parts[ Globalx.index ] 40 console.log("remove_bookmark part=" + part)41 38 this.bookmark_mgr.remove( part, Globalx[part].key ) 42 39 this.rebuild_bookmark_menu(part) … … 46 43 let part = Globalx.parts[ Globalx.index ] 47 44 let bookmark_op_sel = Globalx[part].bookmark_op_sel 48 console.log("bookmark_op part=" + part + " bookmark_op_sel=" + bookmark_op_sel)49 45 if( $( bookmark_op_sel ).is(':checked') == true ){ 50 46 this.add_bookmark() … … 58 54 let bookmark_op_sel = Globalx[part].bookmark_op_sel 59 55 60 console.log( "set_click_handler() part=" + part + " bookmark_op_sel=" + bookmark_op_sel )61 56 $( bookmark_op_sel ).on( 'click' , () => { 62 57 console.log("bookmark_op_sel clicked") … … 74 69 let num = Globalx.num 75 70 let bookmark_sel = Globalx[part].bookmark_sel 76 console.log("BookmarkMenu rebuld_bookmark_menu num="+num+ " part="+part)77 71 $( bookmark_sel ).empty() 78 72 79 73 const array = this.bookmark_mgr.get_paths(part) 80 console.log("BookmarkMenu rebuld_bookmark_menu array=" + array )81 74 82 75 let content = null … … 88 81 $( bookmark_sel ).append( content ); 89 82 console.log( "bookmark_sel="+bookmark_sel) 90 item = $( bookmark_sel ). last()83 item = $( bookmark_sel ).children().last() 91 84 console.log( "item=" + item ) 92 85 item.on('click' , () => { … … 105 98 } 106 99 107 bookmark_action = ( part, key ) =>{100 bookmark_action ( part, key ) { 108 101 if( key === null || key === "" ){ 109 102 alert("illeagal key=" + key ) … … 121 114 122 115 $( Globalx[part].key_sel ).val( key ) 123 console.log("jsondata=" + jsondata)124 116 if( jsondata[key].length == 0 ){ 125 117 Globalx[part].key_indicate_file = true;
Note: See TracChangeset
for help on using the changeset viewer.
![(trac.ini の [header_logo] セクションを設定してください)](/python/trac/Flist/chrome/common/trac_logo_mini.png)