Fix specs
This commit is contained in:
parent
a85e11fa51
commit
578cf89812
6 changed files with 39 additions and 36 deletions
|
@ -39,10 +39,10 @@ function backToIssues(){
|
|||
}
|
||||
|
||||
function initIssuesSearch() {
|
||||
var href = $('.issue_search').parent().attr('action');
|
||||
var href = $('#issue_search_form').attr('action');
|
||||
var last_terms = '';
|
||||
|
||||
$('.issue_search').keyup(function() {
|
||||
$('#issue_search').keyup(function() {
|
||||
var terms = $(this).val();
|
||||
var milestone_id = $('#milestone_id').val();
|
||||
var status = $('#status').val();
|
||||
|
@ -57,10 +57,6 @@ function initIssuesSearch() {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('.delete-issue').live('ajax:success', function() {
|
||||
$(this).closest('tr').fadeOut(); updatePage();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,7 @@ class Milestone < ActiveRecord::Base
|
|||
|
||||
validates :title, presence: true
|
||||
validates :project, presence: true
|
||||
validates :closed, inclusion: { in: [true, false] }
|
||||
|
||||
def self.active
|
||||
where("due_date > ? OR due_date IS NULL", Date.today)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue