The requested changes are too big and content was truncated. Show full diff
|
1 | NO CONTENT: new file 100644 | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: new file 100644 | |
The requested commit or file is too big and content was truncated. Show full diff |
@@ -1,7 +1,7 | |||
|
1 | 1 | source 'https://rubygems.org' |
|
2 | 2 | |
|
3 | 3 | gem "rails", "3.2.19" |
|
4 |
gem "jquery-rails", "~> |
|
|
4 | gem "jquery-rails", "~> 3.1.1" | |
|
5 | 5 | gem "coderay", "~> 1.1.0" |
|
6 | 6 | gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby] |
|
7 | 7 | gem "builder", ">= 3.0.4" |
@@ -1295,7 +1295,7 module ApplicationHelper | |||
|
1295 | 1295 | |
|
1296 | 1296 | # Returns the javascript tags that are included in the html layout head |
|
1297 | 1297 | def javascript_heads |
|
1298 |
tags = javascript_include_tag('jquery-1. |
|
|
1298 | tags = javascript_include_tag('jquery-1.11.1-ui-1.11.0-ujs-3.1.1', 'application') | |
|
1299 | 1299 | unless User.current.pref.warn_on_leaving_unsaved == '0' |
|
1300 | 1300 | tags << "\n".html_safe + javascript_tag("$(window).load(function(){ warnLeavingUnsaved('#{escape_javascript l(:text_warn_on_leaving_unsaved)}'); });") |
|
1301 | 1301 | end |
@@ -185,7 +185,7 | |||
|
185 | 185 | <%= javascript_tag do %> |
|
186 | 186 | $(window).load(function(){ |
|
187 | 187 | $(document).on('change', 'input[data-disables]', function(){ |
|
188 |
if ($(this). |
|
|
188 | if ($(this).prop('checked')){ | |
|
189 | 189 | $($(this).data('disables')).attr('disabled', true).val(''); |
|
190 | 190 | } else { |
|
191 | 191 | $($(this).data('disables')).attr('disabled', false); |
@@ -3,7 +3,7 $('#issue_notes').val("<%= raw escape_javascript(@content) %>"); | |||
|
3 | 3 | # when quoting a private journal, check the private checkbox |
|
4 | 4 | if @journal && @journal.private_notes? |
|
5 | 5 | %> |
|
6 |
$('#issue_private_notes'). |
|
|
6 | $('#issue_private_notes').prop('checked', true); | |
|
7 | 7 | <% end %> |
|
8 | 8 | |
|
9 | 9 | showAndScrollTo("update", "notes"); |
@@ -7,7 +7,7 | |||
|
7 | 7 | <meta name="keywords" content="issue,bug,tracker" /> |
|
8 | 8 | <%= csrf_meta_tag %> |
|
9 | 9 | <%= favicon %> |
|
10 |
<%= stylesheet_link_tag 'jquery/jquery-ui-1. |
|
|
10 | <%= stylesheet_link_tag 'jquery/jquery-ui-1.11.0', 'application', :media => 'all' %> | |
|
11 | 11 | <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> |
|
12 | 12 | <%= javascript_heads %> |
|
13 | 13 | <%= heads_for_theme %> |
@@ -92,7 +92,7 | |||
|
92 | 92 | <%= javascript_tag do %> |
|
93 | 93 | $(document).ready(function() { |
|
94 | 94 | $('#project_enabled_module_names_issue_tracking').on('change', function(){ |
|
95 |
if ($(this). |
|
|
95 | if ($(this).prop('checked')){ | |
|
96 | 96 | $('#project_trackers, #project_issue_custom_fields').show(); |
|
97 | 97 | } else { |
|
98 | 98 | $('#project_trackers, #project_issue_custom_fields').hide(); |
@@ -37,8 +37,8 end %> | |||
|
37 | 37 | <%= content_tag(:td, :class => 'id', :style => id_style) do %> |
|
38 | 38 | <%= link_to_revision(changeset, @repository) %> |
|
39 | 39 | <% end %> |
|
40 |
<td class="checkbox"><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}'). |
|
|
41 |
<td class="checkbox"><%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('#cb-#{line_num}'). |
|
|
40 | <td class="checkbox"><%= radio_button_tag('rev', changeset.identifier, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').prop('checked',true);") if show_diff && (line_num < revisions.size) %></td> | |
|
41 | <td class="checkbox"><%= radio_button_tag('rev_to', changeset.identifier, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('#cb-#{line_num}').prop('checked')) {$('#cb-#{line_num-1}').prop('checked',true);}") if show_diff && (line_num > 1) %></td> | |
|
42 | 42 | <td class="committed_on"><%= format_time(changeset.committed_on) %></td> |
|
43 | 43 | <td class="author"><%= changeset.author.to_s.truncate(30) %></td> |
|
44 | 44 | <td class="comments"><%= textilizable(truncate_at_line_break(changeset.comments)) %></td> |
@@ -56,8 +56,8 | |||
|
56 | 56 | <%= javascript_tag do %> |
|
57 | 57 | $("#search-types a").click(function(e){ |
|
58 | 58 | e.preventDefault(); |
|
59 |
$("#search-types input[type=checkbox]"). |
|
|
60 |
$(this).siblings("input[type=checkbox]"). |
|
|
59 | $("#search-types input[type=checkbox]").prop('checked', false); | |
|
60 | $(this).siblings("input[type=checkbox]").prop('checked', true); | |
|
61 | 61 | if ($("#search-input").val() != "") { |
|
62 | 62 | $("#search-form").submit(); |
|
63 | 63 | } |
@@ -12,7 +12,7 | |||
|
12 | 12 | <label><%= radio_button_tag 'todo', 'reassign', false %> <%= l(:text_wiki_page_reassign_children) %></label>: |
|
13 | 13 | <%= label_tag "reassign_to_id", l(:description_wiki_subpages_reassign), :class => "hidden-for-sighted" %> |
|
14 | 14 | <%= select_tag 'reassign_to_id', wiki_page_options_for_select(@reassignable_to), |
|
15 |
:onclick => "$('#todo_reassign'). |
|
|
15 | :onclick => "$('#todo_reassign').prop('checked', true);" %> | |
|
16 | 16 | <% end %> |
|
17 | 17 | </p> |
|
18 | 18 | </div> |
@@ -21,7 +21,7 | |||
|
21 | 21 | <% @versions.each do |ver| %> |
|
22 | 22 | <tr class="wiki-page-version <%= cycle("odd", "even") %>"> |
|
23 | 23 | <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td> |
|
24 |
<td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}'). |
|
|
24 | <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').prop('checked', true);") if show_diff && (line_num < @versions.size) %></td> | |
|
25 | 25 | <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td> |
|
26 | 26 | <td class="updated_on"><%= format_time(ver.updated_on) %></td> |
|
27 | 27 | <td class="author"><%= link_to_user ver.author %></td> |
@@ -2,7 +2,7 | |||
|
2 | 2 | Copyright (C) 2006-2014 Jean-Philippe Lang */ |
|
3 | 3 | |
|
4 | 4 | function checkAll(id, checked) { |
|
5 |
$('#'+id).find('input[type=checkbox]:enabled'). |
|
|
5 | $('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked); | |
|
6 | 6 | } |
|
7 | 7 | |
|
8 | 8 | function toggleCheckboxesBySelector(selector) { |
@@ -10,7 +10,7 function toggleCheckboxesBySelector(selector) { | |||
|
10 | 10 | $(selector).each(function(index) { |
|
11 | 11 | if (!$(this).is(':checked')) { all_checked = false; } |
|
12 | 12 | }); |
|
13 |
$(selector). |
|
|
13 | $(selector).prop('checked', !all_checked); | |
|
14 | 14 | } |
|
15 | 15 | |
|
16 | 16 | function showAndScrollTo(id, focus) { |
@@ -100,7 +100,7 function addFilter(field, operator, values) { | |||
|
100 | 100 | } else { |
|
101 | 101 | buildFilterRow(field, operator, values); |
|
102 | 102 | } |
|
103 |
$('#cb_'+fieldId). |
|
|
103 | $('#cb_'+fieldId).prop('checked', true); | |
|
104 | 104 | toggleFilter(field); |
|
105 | 105 | $('#add_filter_select').val('').children('option').each(function() { |
|
106 | 106 | if ($(this).attr('value') == field) { |
@@ -555,12 +555,12 function warnLeavingUnsaved(message) { | |||
|
555 | 555 | } |
|
556 | 556 | |
|
557 | 557 | function setupAjaxIndicator() { |
|
558 |
$( |
|
|
558 | $(document).bind('ajaxSend', function(event, xhr, settings) { | |
|
559 | 559 | if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') { |
|
560 | 560 | $('#ajax-indicator').show(); |
|
561 | 561 | } |
|
562 | 562 | }); |
|
563 |
$( |
|
|
563 | $(document).bind('ajaxStop', function() { | |
|
564 | 564 | $('#ajax-indicator').hide(); |
|
565 | 565 | }); |
|
566 | 566 | } |
@@ -31,7 +31,7 function contextMenuClick(event) { | |||
|
31 | 31 | // a row was clicked, check if the click was on checkbox |
|
32 | 32 | if (target.is('input')) { |
|
33 | 33 | // a checkbox may be clicked |
|
34 |
if (target. |
|
|
34 | if (target.prop('checked')) { | |
|
35 | 35 | tr.addClass('context-menu-selection'); |
|
36 | 36 | } else { |
|
37 | 37 | tr.removeClass('context-menu-selection'); |
@@ -180,7 +180,7 function contextMenuIsSelected(tr) { | |||
|
180 | 180 | } |
|
181 | 181 | |
|
182 | 182 | function contextMenuCheckSelectionBox(tr, checked) { |
|
183 |
tr.find('input[type=checkbox]'). |
|
|
183 | tr.find('input[type=checkbox]').prop('checked', checked); | |
|
184 | 184 | } |
|
185 | 185 | |
|
186 | 186 | function contextMenuClearDocumentSelection() { |
@@ -207,13 +207,13 function contextMenuInit(url) { | |||
|
207 | 207 | function toggleIssuesSelection(el) { |
|
208 | 208 | var boxes = $(el).parents('form').find('input[type=checkbox]'); |
|
209 | 209 | var all_checked = true; |
|
210 |
boxes.each(function(){ if (!$(this). |
|
|
210 | boxes.each(function(){ if (!$(this).prop('checked')) { all_checked = false; } }); | |
|
211 | 211 | boxes.each(function(){ |
|
212 | 212 | if (all_checked) { |
|
213 | 213 | $(this).removeAttr('checked'); |
|
214 | 214 | $(this).parents('tr').removeClass('context-menu-selection'); |
|
215 |
} else if (!$(this). |
|
|
216 |
$(this). |
|
|
215 | } else if (!$(this).prop('checked')) { | |
|
216 | $(this).prop('checked', true); | |
|
217 | 217 | $(this).parents('tr').addClass('context-menu-selection'); |
|
218 | 218 | } |
|
219 | 219 | }); |
@@ -165,8 +165,8 function drawGanttHandler() { | |||
|
165 | 165 | else |
|
166 | 166 | draw_gantt = Raphael(folder); |
|
167 | 167 | setDrawArea(); |
|
168 |
if ($("#draw_progress_line"). |
|
|
168 | if ($("#draw_progress_line").prop('checked')) | |
|
169 | 169 | drawGanttProgressLines(); |
|
170 |
if ($("#draw_relations"). |
|
|
170 | if ($("#draw_relations").prop('checked')) | |
|
171 | 171 | drawRelations(); |
|
172 | 172 | } |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
General Comments 0
You need to be logged in to leave comments.
Login now