• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

修订版a4f707ef49c17fee4db862086a31ec3b1a06be5b (tree)
时间2012-05-03 01:34:28
作者Jenny Steele <jsteele@geek...>
CommiterTim Van Steenburgh

Log Message

[#3598] Added cancel button for new user input

更改概述

差异

--- a/Allura/allura/ext/admin/templates/project_groups.html
+++ b/Allura/allura/ext/admin/templates/project_groups.html
@@ -64,6 +64,7 @@
6464 <li class="new-item">
6565 <form class="add_user">
6666 <input type="text" placeholder="type a username">
67+ <a href="#" class="cancel_link">cancel</a>
6768 </form>
6869 </li>
6970 <li class="adder">
--- a/Allura/allura/public/nf/js/project_groups.js
+++ b/Allura/allura/public/nf/js/project_groups.js
@@ -141,4 +141,9 @@ $(function() {
141141 newitem.clone().insertBefore(adder.closest('li')).find('input').focus();
142142 });
143143 });
144+ // cancel adding user
145+ $('#usergroup_admin').delegate(".cancel_link", "click", function(evt){
146+ evt.preventDefault();
147+ $(this).closest('li').remove();
148+ });
144149 });
\ No newline at end of file