';
diff --git a/assets/js/unmark.actions.js b/assets/js/unmark.actions.js
index 3115f632..52ecd7fd 100644
--- a/assets/js/unmark.actions.js
+++ b/assets/js/unmark.actions.js
@@ -67,31 +67,42 @@
unmark.interact_nav = function (e, elem_ckd) {
e.preventDefault();
- var panel_to_show = (elem_ckd.data('panel')) ? elem_ckd.data('panel') : '', // kept in data attribute
- panel_name = (panel_to_show !== '') ? panel_to_show.replace(/^#/, '') : '', // just removes #
- is_label_menu = (panel_name.indexOf('label') !== -1) ? true : false, // checks name of panel to see if this is label menu
- is_label_filter = (elem_ckd.attr('href').indexOf('label') !== -1) ? true : false, // checks href to see if this is label filter
- is_tag_menu = (panel_name.indexOf('tags') !== -1) ? true : false, // checks name of panel to see if it is tags menu
- is_tag_filter = (elem_ckd.attr('href').indexOf('tag') !== -1) ? true : false; // checks href to see if this is an actual hashtag
+ var panel_to_show = (elem_ckd.data('panel')) ? elem_ckd.data('panel') : '', // kept in data attribute
+ panel_name = (panel_to_show !== '') ? panel_to_show.replace(/^#/, '') : '', // just removes #
+ is_label_menu = (panel_name.indexOf('label') !== -1) ? true : false, // checks name of panel to see if this is label menu
+ is_label_filter = (elem_ckd.attr('href').indexOf('label') !== -1) ? true : false, // checks href to see if this is label filter
+ is_tag_menu = (panel_name.indexOf('tags') !== -1) ? true : false, // checks name of panel to see if it is tags menu
+ is_tag_filter = (elem_ckd.attr('href').indexOf('tag') !== -1) ? true : false, // checks href to see if this is an actual hashtag
+ is_archive_menu = (panel_name.indexOf('archive') !== -1) ? true : false, // checks panel name to see if this is the archive menu
+ hide_mobile_sub_menu = false; // on mobile, hide the submenu, default false
// This means one of the labels was clicked.
if ( is_label_menu || is_label_filter ) {
- panel_name = 'panel-label';
- panel_to_show = '#'+panel_name;
-
+ panel_name = 'panel-label';
+ panel_to_show = '#'+panel_name;
+ hide_mobile_sub_menu = true; // hiding submenu
}
// For the tag menu, or actual hashtags
if ( is_tag_menu || is_tag_filter ) {
- panel_name = 'panel-tags';
- panel_to_show = '#'+panel_name;
+ panel_name = 'panel-tags';
+ panel_to_show = '#'+panel_name;
+ if ( !is_tag_menu && is_tag_filter ) { // tag filter was clicked
+ hide_mobile_sub_menu = true;
+ } else if ( is_tag_menu && !is_tag_filter ) { // tag menu was clicked, but _Not_ tag filter
+ hide_mobile_sub_menu = false;
+ }
+ }
+
+ if ( is_archive_menu ) {
+ hide_mobile_sub_menu = true;
}
// Add / Remove Class for current navigation
$('.menu-item').removeClass('active-menu');
$('.navigation-content').find("[data-menu='" + panel_name + "']").addClass('active-menu');
- // For all panels run pjax manually.
+ // For all panels (except settings) run pjax manually.
if ( panel_to_show !== "#panel-settings" ) {
$.pjax({ url: elem_ckd.attr('href'), container: '.main-content', timeout:6000 });
}
@@ -104,7 +115,7 @@
// clicked on any main navigation item other than hashtags
// click on an actual hashtag
// click on an actual label
- if (Modernizr.mq('only screen and (max-width: 480px)') && panel_to_show !== '#panel-settings' && (is_label_menu || is_tag_filter || is_label_filter)) {
+ if (Modernizr.mq('only screen and (max-width: 480px)') && hide_mobile_sub_menu ) {
unmark.mobile_nav(true);
}
return false;
diff --git a/assets/js/unmark.init.js b/assets/js/unmark.init.js
index 7ec9a5dd..16005177 100644
--- a/assets/js/unmark.init.js
+++ b/assets/js/unmark.init.js
@@ -203,6 +203,15 @@
$(this).closest('.search-bar').fadeOut(300);
return false;
});
+ // Show & Hide Add Mark Bar
+ $(document).on('click', '.marks-heading-bar .add-mark-button', function(e) {
+ e.preventDefault();
+ $(this).closest('.marks-heading-bar').find('.add-mark-bar').fadeIn(300);
+ });
+ $(document).on('click', '.marks-heading-bar .add-mark-bar .close-button', function(e) {
+ e.preventDefault();
+ $(this).closest('.add-mark-bar').fadeOut(300);
+ });
};
diff --git a/package.json b/package.json
index 83960d46..899113d7 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "unmark",
"url": "http://unmark.it",
- "version": "1.8.0",
+ "version": "1.9.0",
"description": "The open source to-do application for bookmarks.",
"author": "https://unmark.it/",
"main": "Gruntfile.js",
diff --git a/readme.md b/readme.md
index 85a306ec..f6e4b100 100644
--- a/readme.md
+++ b/readme.md
@@ -18,7 +18,7 @@ Running Unmark is only recommended for intermediate users. This doesn't mean if
- Apache 2.x
- PHP 5.6 or greater
-- mySQL 5.5 or greater
+- mySQL 5.7 or greater
**Experimental: Docker**
If you're going to use Docker we've included the appropriate Docker Compose, Dockerfile, and PHP.ini files to do so. This is still in its experimental phase though. We will update this readme with better instructions.