• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

Revision429ae7d7920c85a623d534084e566473e7c35348 (tree)
Zeit2012-05-15 00:09:11
AutorJenny Steele <jsteele@geek...>
CommiterYaroslav Luzin

Log Message

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

Ändern Zusammenfassung

Diff

--- 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 }