Merge branch 'rs-remove-jquery-history-js' into 'master'
Remove jquery.history.js plugin We're not concerning ourselves with non-HTML5 browser compatibility, and this removes 21 KB from our compiled JavaScript. Bonus fix: There was an extra space after the query string in the URLs that has now been removed. See merge request !2272
This commit is contained in:
commit
8a04b84e09
|
@ -10,7 +10,6 @@
|
||||||
#= require jquery.cookie
|
#= require jquery.cookie
|
||||||
#= require jquery.endless-scroll
|
#= require jquery.endless-scroll
|
||||||
#= require jquery.highlight
|
#= require jquery.highlight
|
||||||
#= require jquery.history
|
|
||||||
#= require jquery.waitforimages
|
#= require jquery.waitforimages
|
||||||
#= require jquery.atwho
|
#= require jquery.atwho
|
||||||
#= require jquery.scrollTo
|
#= require jquery.scrollTo
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
form = $("#issue_search_form")
|
form = $("#issue_search_form")
|
||||||
search = $("#issue_search").val()
|
search = $("#issue_search").val()
|
||||||
$('.issues-holder').css("opacity", '0.5')
|
$('.issues-holder').css("opacity", '0.5')
|
||||||
issues_url = form.attr('action') + '? '+ form.serialize()
|
issues_url = form.attr('action') + '?' + form.serialize()
|
||||||
|
|
||||||
$.ajax
|
$.ajax
|
||||||
type: "GET"
|
type: "GET"
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
success: (data) ->
|
success: (data) ->
|
||||||
$('.issues-holder').html(data.html)
|
$('.issues-holder').html(data.html)
|
||||||
# Change url so if user reload a page - search results are saved
|
# Change url so if user reload a page - search results are saved
|
||||||
History.replaceState {page: issues_url}, document.title, issues_url
|
history.replaceState {page: issues_url}, document.title, issues_url
|
||||||
Issues.reload()
|
Issues.reload()
|
||||||
dataType: "json"
|
dataType: "json"
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
form = $("#issue_search_form")
|
form = $("#issue_search_form")
|
||||||
search = $("#issue_search").val()
|
search = $("#issue_search").val()
|
||||||
$('.merge-requests-holder').css("opacity", '0.5')
|
$('.merge-requests-holder').css("opacity", '0.5')
|
||||||
issues_url = form.attr('action') + '? '+ form.serialize()
|
issues_url = form.attr('action') + '?' + form.serialize()
|
||||||
|
|
||||||
$.ajax
|
$.ajax
|
||||||
type: "GET"
|
type: "GET"
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
success: (data) ->
|
success: (data) ->
|
||||||
$('.merge-requests-holder').html(data.html)
|
$('.merge-requests-holder').html(data.html)
|
||||||
# Change url so if user reload a page - search results are saved
|
# Change url so if user reload a page - search results are saved
|
||||||
History.replaceState {page: issues_url}, document.title, issues_url
|
history.replaceState {page: issues_url}, document.title, issues_url
|
||||||
MergeRequests.reload()
|
MergeRequests.reload()
|
||||||
dataType: "json"
|
dataType: "json"
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue