##// END OF EJS Templates
code cleanup
marcink -
r1961:f48bce87 beta
parent child Browse files
Show More
@@ -160,7 +160,6 class ReposGroupsController(BaseControll
160 160
161 161 return redirect(url('repos_groups'))
162 162
163
164 163 @HasPermissionAnyDecorator('hg.admin')
165 164 def delete(self, id):
166 165 """DELETE /repos_groups/id: Delete an existing item"""
@@ -137,9 +137,9
137 137 %for repo in c.user_repos:
138 138 <tr>
139 139 <td>
140 %if repo['dbrepo']['repo_type'] =='hg':
140 %if h.is_hg(repo['dbrepo']['repo_type']):
141 141 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
142 %elif repo['dbrepo']['repo_type'] =='git':
142 %elif h.is_git(repo['dbrepo']['repo_type']):
143 143 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
144 144 %else:
145 145
@@ -165,15 +165,6
165 165 }
166 166 }
167 167
168 //clear 'selected' select
169 //c.options.length = 0;
170
171 //fill it with remembered options
172 //for(var i = 0;node = cache[i];i++){
173 // c.options[i]=new Option(node.text, node.value, false, false);
174 //}
175
176
177 168 //get all available options to cache
178 169 for(var i = 0;node =ac.options[i];i++){
179 170 //push selected to my temp storage left overs :)
@@ -274,7 +265,6
274 265
275 266 }
276 267
277
278 268 E.addListener(['add_element','remove_element',
279 269 'add_all_elements','remove_all_elements'],'click',
280 270 prompts_action_callback)
@@ -284,7 +274,7
284 274 for (var i = 0; i < choosen.options.length; i++) {
285 275 choosen.options[i].selected = 'selected';
286 276 }
287 })
277 });
288 278 });
289 279 </script>
290 280 </%def>
General Comments 0
You need to be logged in to leave comments. Login now