• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修訂67168418ac19bbc9673721c54555f83abcfeaa69 (tree)
時間2010-06-15 04:55:03
作者Jenny Steele <jsteele@geek...>
CommiterJenny Steele

Log Message

[#587] Fixed a problem with deleting tools in a project with the new theme

Change Summary

差異

--- a/pyforge/pyforge/ext/admin/templates/project_tools.html
+++ b/pyforge/pyforge/ext/admin/templates/project_tools.html
@@ -45,11 +45,9 @@
4545 <td py:if="has_project_access('tool')()"><a href="${sp.url() + 'admin/'}" class="ico-l">
4646 <b class="ui-icon ui-icon-pencil"></b> <span>Edit</span>
4747 </a></td>
48- <td class="tool-delete">
49- <a py:if="has_project_access('tool')()"
50- class="subproject-${i} ico-l" href="#">
51- <b class="ui-icon ui-icon-close"></b> <span>Delete</span>
52- </a>
48+ <td>
49+ <input py:if="has_project_access('tool')()"
50+ name="subproject-${i}.delete" type="submit" value="Delete"/>
5351 </td>
5452 </tr>
5553 <tr py:for="i, config in enumerate(c.project.app_configs)" py:if="config.load().installable">
@@ -62,15 +60,9 @@
6260 <b class="ui-icon ui-icon-pencil"></b> <span>Edit</span>
6361 </a>
6462 </td>
65- <td class="tool-delete">
66- <a py:if="has_project_access('tool')()"
67- class="tool-${i} ico-l" href="#">
68- <b class="ui-icon ui-icon-close"></b> <span>Delete</span>
69-
70- </a>
71- <!-- <input py:if="has_project_access('tool')() and config.load().installable"
72- name="tool-${i}.delete" type="submit" value="Delete"
73- /> -->
63+ <td>
64+ <input py:if="has_project_access('tool')() and config.load().installable"
65+ name="tool-${i}.delete" type="submit" value="Delete"/>
7466 </td>
7567 </tr>
7668 </form>
@@ -111,14 +103,6 @@
111103 $('select.new_ep_name').change(function() {
112104 $(this).closest('tr').find('input.new_mount_point').val($(this).val().toLowerCase());
113105 });
114- $('td.tool-delete a').click(function(e){
115- var vals = $('#mounts_edit').serialize();
116- var del_name = e.target.className+'.delete';
117- $.post($('#mounts_edit')[0].action, vals+'&'+del_name+'=Del', function(){
118- window.location.reload();
119- });
120- return false;
121- });
122106 /*]]>*/
123107 </script>
124108 </html>