-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from brantje/stripOldSharing
Strip old sharing
- Loading branch information
Showing
18 changed files
with
74 additions
and
2,491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$(document).ready(function () { | ||
var isSingleViewMode = (app_config.user.view_mode === 'single'); | ||
var $body = $('body'); | ||
if(isSingleViewMode){ | ||
$('#ownnote').find('.view-container').width('200%'); | ||
} | ||
$body.on('click', '.file.pointer, #new', function (e) { | ||
if ($(window).width() <= 994 || isSingleViewMode) { | ||
setTimeout(function () { | ||
$('#ownnote').animate({scrollLeft: $(window).width()}, 750); | ||
}, 50); | ||
} | ||
}); | ||
$body.on('click', '#canceledit, #grouplist .group', function (e) { | ||
if ($(window).width() <= 994 || isSingleViewMode) { | ||
$('#ownnote').animate({scrollLeft: 0}, 750); | ||
} | ||
}); | ||
|
||
$body.on('click', '.toggle-view-mode', function () { | ||
if(app_config.user.view_mode === 'single') { | ||
$('#ownnote').find('.view-container').animate({width: '100%'}, 750); | ||
$(this).find('i').removeClass('fa-arrows-h').addClass('fa-columns'); | ||
isSingleViewMode = false; | ||
app_config.user.view_mode = 'col'; | ||
} else if(app_config.user.view_mode === 'col'){ | ||
$('#ownnote').find('.view-container').animate({width: '200%'}, 750); | ||
$(this).find('i').removeClass('fa-columns').addClass('fa-arrows-h'); | ||
isSingleViewMode = true; | ||
app_config.user.view_mode = 'single'; | ||
} | ||
}); | ||
}); |
Oops, something went wrong.