From f4536cb584c788d30817065f649e31a999927e6c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 13 Dec 2013 04:55:32 +0400 Subject: [PATCH] added bookmarks to crop dialog... Signed-off-by: Alex A. Naanou --- ui/crop.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/ui/crop.js b/ui/crop.js index 61fb4657..09a6e6be 100755 --- a/ui/crop.js +++ b/ui/crop.js @@ -226,6 +226,8 @@ function cropImagesDialog(){ cfg[alg] = [ 'Marked images', 'Marked images (keep ribbons)', + 'Bookmarked images', + 'Bookmarked images (keep ribbons)', 'Current ribbon', 'Current ribbon and above | Will merge the images into a single ribbon.', 'Current ribbon and above (keep ribbons)' @@ -239,19 +241,25 @@ function cropImagesDialog(){ res = res[alg] // NOTE: these must be in order of least-specific last... - if(/Marked.*keep ribbons/i.test(res)){ + if(/Marked.*keep ribbons/.test(res)){ var method = toggleMarkedOnlyWithRibbonsView - } else if(/Marked/i.test(res)){ + } else if(/Marked/.test(res)){ var method = toggleMarkedOnlyView - } else if(/Current ribbon and above.*keep ribbons/i.test(res)){ + } else if(/Bookmarked.*keep ribbons/i.test(res)){ + var method = toggleBookmarkedOnlyWithRibbonsView + + } else if(/Bookmarked/.test(res)){ + var method = toggleBookmarkedOnlyView + + } else if(/Current ribbon and above.*keep ribbons/.test(res)){ var method = toggleCurrenAndAboveRibbonsMode - } else if(/Current ribbon and above/i.test(res)){ + } else if(/Current ribbon and above/.test(res)){ var method = toggleCurrenAndAboveRibbonMode - } else if(/Current ribbon/i.test(res)){ + } else if(/Current ribbon/.test(res)){ var method = toggleSingleRibbonMode }