• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

allura


Commit MetaInfo

修訂ca0d768eb331dcc5819715c56e195a1867781b8c (tree)
時間2012-05-04 02:13:07
作者Jenny Steele <jsteele@geek...>
CommiterYaroslav Luzin

Log Message

[#3598] Inherited permissions now keep an up to date inherit message on the permission tooltip

Change Summary

差異

--- a/Allura/allura/public/nf/js/project_groups.js
+++ b/Allura/allura/public/nf/js/project_groups.js
@@ -77,10 +77,12 @@ $(function() {
7777 for(var i=0, len=data[k].length; i<len; ++i){
7878 var item = data[k][i];
7979 var perm_holder = group_holder.find('li[data-permission='+item.name+']');
80+ var perm_link = perm_holder.find('a');
8081 if(!perm_holder.hasClass(item.has)){
8182 perm_holder.effect('highlight', {}, 2000);
8283 var icon = perm_holder.find('b');
83- perm_holder.attr('class',item.has).find('a').attr('title',item.text);
84+ perm_holder.attr('class',item.has);
85+ perm_link.attr('title',item.text);
8486 if(item.has=="yes"){
8587 icon.attr('class','ico ico-check').attr('data-icon','3');
8688 }
@@ -91,7 +93,11 @@ $(function() {
9193 icon.attr('class','ico ico-noentry').attr('data-icon','d');
9294 }
9395 perm_holder.find('span').remove();
94- perm_holder.find('a').show();
96+ perm_link.show();
97+ }
98+ // inherited permissions may change where they're inherited from
99+ else if(item.has=="inherit"){
100+ perm_link.attr('title',item.text);
95101 }
96102 }
97103 }