allura
修訂 | 67168418ac19bbc9673721c54555f83abcfeaa69 (tree) |
---|---|
時間 | 2010-06-15 04:55:03 |
作者 | Jenny Steele <jsteele@geek...> |
Commiter | Jenny Steele |
[#587] Fixed a problem with deleting tools in a project with the new theme
@@ -45,11 +45,9 @@ | ||
45 | 45 | <td py:if="has_project_access('tool')()"><a href="${sp.url() + 'admin/'}" class="ico-l"> |
46 | 46 | <b class="ui-icon ui-icon-pencil"></b> <span>Edit</span> |
47 | 47 | </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"/> | |
53 | 51 | </td> |
54 | 52 | </tr> |
55 | 53 | <tr py:for="i, config in enumerate(c.project.app_configs)" py:if="config.load().installable"> |
@@ -62,15 +60,9 @@ | ||
62 | 60 | <b class="ui-icon ui-icon-pencil"></b> <span>Edit</span> |
63 | 61 | </a> |
64 | 62 | </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"/> | |
74 | 66 | </td> |
75 | 67 | </tr> |
76 | 68 | </form> |
@@ -111,14 +103,6 @@ | ||
111 | 103 | $('select.new_ep_name').change(function() { |
112 | 104 | $(this).closest('tr').find('input.new_mount_point').val($(this).val().toLowerCase()); |
113 | 105 | }); |
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 | - }); | |
122 | 106 | /*]]>*/ |
123 | 107 | </script> |
124 | 108 | </html> |