##// END OF EJS Templates
pullrequest: use simple link for 'Change style'...
Mads Kiilerich -
r3593:716ac765 beta
parent child Browse files
Show More
@@ -134,15 +134,14 b''
134 134 %if c.rhodecode_user.username != 'default':
135 135 <div class="comment-form ac">
136 136 ${h.form(post_url)}
137 <strong>${_('Leave a comment or change status by checking `change status` checkbox')}</strong>
138 137 <div class="clearfix">
139 138 <div class="comment-help">
140 139 ${(_('Comments parsed using %s syntax with %s support.') % (('<a href="%s">RST</a>' % h.url('rst_help')),
141 140 '<span style="color:#003367" class="tooltip" title="%s">@mention</span>' %
142 141 _('Use @username inside this text to send notification to this RhodeCode user')))|n}
143 142 %if change_status:
144 | <label for="show_changeset_status_box" class="tooltip" title="${_('Check this to change current status of code-review for this changeset')}"> ${_('change status')}</label>
145 <input style="vertical-align: bottom;margin-bottom:-2px" id="show_changeset_status_box" type="checkbox" name="change_changeset_status" />
143 | <a id="show_changeset_link" onClick="change_status_show();"> ${_('Change status')}</a>
144 <input id="show_changeset_status_box" type="checkbox" name="change_changeset_status" style="display: none;" />
146 145 %endif
147 146 </div>
148 147 %if change_status:
@@ -169,18 +168,15 b''
169 168 %endif
170 169 </div>
171 170 <script>
171 var change_status_show = function(){
172 var show = ! YUD.get('show_changeset_status_box').checked;
173 YUD.get('show_changeset_status_box').checked = show;
174 YUD.setStyle('status_block_container', 'display', show?'':'none');
175 };
176
172 177 YUE.onDOMReady(function () {
173 178 MentionsAutoComplete('text', 'mentions_container', _USERS_AC_DATA, _GROUPS_AC_DATA);
174 179
175 // changeset status box listener
176 YUE.on(YUD.get('show_changeset_status_box'),'change',function(e){
177 if(e.currentTarget.checked){
178 YUD.setStyle('status_block_container','display','');
179 }
180 else{
181 YUD.setStyle('status_block_container','display','none');
182 }
183 })
184 180 YUE.on(YUQ('.status_change_radio'), 'change',function(e){
185 181 var val = e.currentTarget.value;
186 182 if (val == 'approved' || val == 'rejected') {
General Comments 0
You need to be logged in to leave comments. Login now