File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ var keyboard = (function(){
3636} ;
3737// ctrl+alt+e
3838if ( event . ctrlKey && event . altKey && event . keyCode == 69 ) {
39- if ( state . get ( ) . bookmarks . show . link ) {
39+ if ( state . get ( ) . bookmarks . show . link && bookmarks . get ( ) . length > 0 ) {
4040if ( state . get ( ) . bookmarks . edit ) {
4141helper . setObject ( {
4242object : state . get ( ) ,
Original file line number Diff line number Diff line change @@ -101,11 +101,22 @@ var link = (function(){
101101
102102var remove = function ( bookmarkData ) {
103103bookmarks . remove ( bookmarkData . timeStamp ) ;
104+ _checkCount ( ) ;
104105data . save ( ) ;
105106clear ( ) ;
106107render ( ) ;
107108} ;
108109
110+ var _checkCount = function ( ) {
111+ if ( bookmarks . get ( ) . length <= 0 ) {
112+ helper . setObject ( {
113+ object : state . get ( ) ,
114+ path : "bookmarks.edit" ,
115+ newValue : false
116+ } ) ;
117+ } ;
118+ } ;
119+
109120var _makeLinkForm = function ( ) {
110121var form = helper . makeNode ( {
111122tag : "form" ,
Original file line number Diff line number Diff line change 11var version = ( function ( ) {
22
33// version is normally bumped when the state needs changing or any new functionality is added
4- var current = "2.9.4 " ;
4+ var current = "2.9.5 " ;
55
66var get = function ( ) {
77var number = current . split ( "." ) ;
You can’t perform that action at this time.
0 commit comments