Merge branch 'relaxdiego-ie7-fix' into 0.3.x

pull/6827/head
friflaj 14 years ago
commit 3fbbe838e7
  1. 4
      app/views/rb_master_backlogs/_backlog.html.erb
  2. 4
      assets/javascripts/backlog.js
  3. 9
      assets/javascripts/master_backlog.js
  4. 22
      assets/stylesheets/rb_default/master_backlog.css

@ -2,15 +2,13 @@
<div class="header"> <div class="header">
<%= render :partial => "menu", :locals => {:backlog => backlog} %> <%= render :partial => "menu", :locals => {:backlog => backlog} %>
<%- if backlog[:sprint] %> <%- if backlog[:sprint] %>
<%= render :partial => "rb_sprints/sprint", :object => backlog[:sprint] %>
<div class="velocity"> </div> <div class="velocity"> </div>
<%- else %> <%- else %>
<div class="label"><%=l(:label_product_backlog).titleize %></div> <div class="label"><%=l(:label_product_backlog).titleize %></div>
<a class="add_new_story" href="#">New Story</a> <a class="add_new_story" href="#">New Story</a>
<%- end %> <%- end %>
</div> </div>
<%- if backlog[:sprint] %>
<%= render :partial => "rb_sprints/sprint", :object => backlog[:sprint] %>
<%- end %>
<ul class="stories"> <ul class="stories">
<%= render :partial => "rb_stories/story", :collection => backlog[:stories] %> <%= render :partial => "rb_stories/story", :collection => backlog[:stories] %>
</ul> </ul>

@ -74,7 +74,7 @@ RB.Backlog = RB.Object.create({
}, },
getSprint: function(){ getSprint: function(){
return $(this.el).children(".sprint").first(); return $(this.el).find(".model.sprint").first();
}, },
getStories: function(){ getStories: function(){
@ -91,7 +91,7 @@ RB.Backlog = RB.Object.create({
}, },
isSprintBacklog: function(){ isSprintBacklog: function(){
return $(this.el).children('.sprint').length == 1; // return true if backlog has an element with class="sprint" return $(this.el).find('.sprint').length == 1; // return true if backlog has an element with class="sprint"
}, },
newStory: function(){ newStory: function(){

@ -6,4 +6,13 @@ $(function() {
}); });
// $("#project_info").bind('click', function(){ $("#velocity").dialog({ modal: true, title: "Project Info"}); }); // $("#project_info").bind('click', function(){ $("#velocity").dialog({ modal: true, title: "Project Info"}); });
RB.BacklogsUpdater.start(); RB.BacklogsUpdater.start();
// Workaround for IE7
if($.browser.msie && $.browser.version <= 7){
var z = 2000;
$('.backlog, .header').each(function(){
$(this).css('z-index', z);
z--;
});
}
}); });

@ -64,10 +64,9 @@
height:30px; height:30px;
left:0; left:0;
overflow:visible; overflow:visible;
position:relative; position:absolute;
top:0; top:0;
width:29px; width:29px;
z-index:500;
} }
.backlog .header .menu:hover{ .backlog .header .menu:hover{
-moz-box-shadow: 2px 2px 3px #999999; -moz-box-shadow: 2px 2px 3px #999999;
@ -76,7 +75,7 @@
background-color:#EFEFEF; background-color:#EFEFEF;
border-right:none; border-right:none;
width:30px; width:30px;
z-index:600; /* This ensures that it overlaps all other menus in the vicinity */ z-index:1000;
} }
.backlog .header .menu .icon{ .backlog .header .menu .icon{
left:7px; left:7px;
@ -150,10 +149,10 @@
cursor:pointer; cursor:pointer;
display:block; display:block;
height:30px; height:30px;
left:0; left:30px;
position:absolute; position:absolute;
top:0; top:0;
width:100%; width:560px;
} }
#backlogs_container .backlog .sprint.saving{ #backlogs_container .backlog .sprint.saving{
background-image:url('images/ajax.gif'); background-image:url('images/ajax.gif');
@ -174,7 +173,7 @@
font-size:15px; font-size:15px;
font-weight:bold; font-weight:bold;
height:28px; height:28px;
left:35px; left:5px;
line-height:28px; line-height:28px;
overflow:hidden; overflow:hidden;
position:absolute; position:absolute;
@ -190,16 +189,17 @@
top:2px; top:2px;
} }
#backlogs_container .backlog .sprint .sprint_start_date{ #backlogs_container .backlog .sprint .sprint_start_date{
left:370px; left:340px;
} }
#backlogs_container .backlog .sprint .effective_date{ #backlogs_container .backlog .sprint .effective_date{
left:460px; left:430px;
} }
#backlogs_container .backlog .stories{ #backlogs_container .backlog .stories{
list-style:none; list-style:none;
min-height:26px; min-height:26px;
margin:0; margin:0;
padding:0 0 0px 0; padding:0 0 0px 0;
z-index:500;
} }
#backlogs_container .stories .story{ #backlogs_container .stories .story{
background-color:#FFFFF6; background-color:#FFFFF6;
@ -363,7 +363,7 @@
#backlogs_container .backlog .sprint.editing .name.editor{ #backlogs_container .backlog .sprint.editing .name.editor{
display:block; display:block;
height:21px; height:21px;
left:31px; left:1px;
line-height:15px; line-height:15px;
margin:0; margin:0;
top:2px; top:2px;
@ -372,7 +372,7 @@
#backlogs_container .backlog .sprint.editing .sprint_start_date.editor{ #backlogs_container .backlog .sprint.editing .sprint_start_date.editor{
display:block; display:block;
height:23px; height:23px;
left:367px; left:338px;
line-height:27px; line-height:27px;
margin:0; margin:0;
padding:0; padding:0;
@ -382,7 +382,7 @@
#backlogs_container .backlog .sprint.editing .effective_date.editor{ #backlogs_container .backlog .sprint.editing .effective_date.editor{
display:block; display:block;
height:23px; height:23px;
left:457px; left:428px;
line-height:27px; line-height:27px;
margin:0; margin:0;
padding:0; padding:0;

Loading…
Cancel
Save