# HG changeset patch # User Mads Kiilerich # Date 2014-07-18 19:22:01 # Node ID a21668fe545b6ee4ba273d4609d4ae504e7ff796 # Parent 0529498575ce28072933f54801947fb275530054 comments: make preview button more obvious - show it next to other buttons diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -734,7 +734,9 @@ var injectInlineForm = function(tr){ $('#preview-box_'+lineno).addClass('unloaded'); $('#preview-box_'+lineno).html(_TM['Loading ...']); $('#edit-container_'+lineno).hide(); + $('#edit-btn_'+lineno).show(); $('#preview-container_'+lineno).show(); + $('#preview-btn_'+lineno).hide(); var url = pyroutes.url('changeset_comment_preview', {'repo_name': REPO_NAME}); var post_data = {'text': text}; @@ -745,7 +747,9 @@ var injectInlineForm = function(tr){ }) $('#edit-btn_'+lineno).click(function(e){ $('#edit-container_'+lineno).show(); + $('#edit-btn_'+lineno).hide(); $('#preview-container_'+lineno).hide(); + $('#preview-btn_'+lineno).show(); }) setTimeout(function(){ diff --git a/kallithea/templates/changeset/changeset_file_comment.html b/kallithea/templates/changeset/changeset_file_comment.html --- a/kallithea/templates/changeset/changeset_file_comment.html +++ b/kallithea/templates/changeset/changeset_file_comment.html @@ -60,35 +60,35 @@