From fada354813a278bd67108abc85ada6c9d0894543 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 23 Nov 2016 13:33:14 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index 4170fc98..f89acb19 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -860,7 +860,7 @@ module.ViewerActions = actions.Actions({ // ribbon rotation... ribbonRotation: ['- Interface/', function(a){ - if(a){ + if(arguments.length > 0){ this.ribbons.rotate(a) } else { @@ -871,6 +871,8 @@ module.ViewerActions = actions.Actions({ function(a){ this.ribbonRotation('+='+ (a || 10)) }], rotateRibbonCCW: ['Interface/Rotate ribbon coounter clockwise', function(a){ this.ribbonRotation('-='+ (a || 10)) }], + resetRibbonRotation: ['Interface/Reset ribbon rotation', + function(){ this.ribbonRotation(0) }], // tags...