Changeset 25 for branches/testa/js/menux.js
- Timestamp:
- Aug 21, 2019 7:44:47 PM (6 years ago)
- File:
-
- 1 edited
-
branches/testa/js/menux.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/testa/js/menux.js
r23 r25 12 12 13 13 function menu_action( part, item_name , up_flag = false ) { 14 if( Globalx[part].key != '/' ){ 15 16 } 17 14 18 let realData = get_filelist( Globalx.num ) 15 19 Globalx[part].key_indicate_file = false; … … 121 125 function bookmark_op(part) { 122 126 if( $( Globalx[part].bookmark_op_sel ).is(':checked') == true ){ 123 console.log( Globalx[part].key +" add_bookmark" )124 127 add_bookmark(part) 125 128 } 126 129 else{ 127 console.log( Globalx[part].key +" remove_bookmark")128 130 remove_bookmark(part) 129 131 } … … 131 133 132 134 function add_bookmark( part ) { 133 Globalx[part].bookmark_mgr.add( Globalx[part].key )134 rebuild_bookmark_menu( part )135 135 $( '#bookmark_displayname' ).val( Globalx[part].bookmark_mgr.get_restricted_display_name( Globalx[part].key ) ) 136 136 $( '#bookmark_path' ).val( Globalx[part].key ) 137 137 $('#bookmarkDlg').dialog("open") 138 138 } 139 140 function register_bookmark_( part , path, displayname ) { 141 Globalx[part].bookmark_mgr.add( path , displayname ) 142 rebuild_bookmark_menu( part ) 139 143 } 140 144 … … 162 166 return 163 167 } 168 if(key === Globalx[part].key){ 169 return 170 } 171 164 172 let realData = get_filelist( Globalx.num ) 165 173 Globalx[part].key = key … … 176 184 }); 177 185 } 186 else{ 187 Globalx[part].key_indicate_file = false 188 Globalx[part].editor.getSession().setValue( "" ); 189 $( Globalx[part].textarea_sel ).val( "" ); 190 } 178 191 const bookmark_cb = $( Globalx[part].bookmark_op_sel ) 179 192 bookmark_cb.prop('checked', true) 193 194 $( Globalx[part].menu_sel ).empty() 195 196 make_menu_item_list(part, realData) 180 197 } 198
Note: See TracChangeset
for help on using the changeset viewer.
![(trac.ini の [header_logo] セクションを設定してください)](/python/trac/Flist/chrome/common/trac_logo_mini.png)