Fix pager loading on every page in application
This commit is contained in:
parent
abc2bdc3aa
commit
dd20da1bff
|
@ -1,7 +1,4 @@
|
|||
$ ->
|
||||
dashboardPage()
|
||||
|
||||
dashboardPage = ->
|
||||
window.dashboardPage = ->
|
||||
Pager.init 20, true
|
||||
$(".event_filter_link").bind "click", (event) ->
|
||||
event.preventDefault()
|
||||
|
|
|
@ -7,3 +7,6 @@
|
|||
|
||||
- else
|
||||
= render "zero_authorized_projects"
|
||||
|
||||
:javascript
|
||||
dashboardPage();
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
- if @key.valid?
|
||||
:plain
|
||||
$("#new_key_dialog").dialog("close");
|
||||
$("#keys-table .data").append("#{escape_javascript(render(partial: 'show', locals: {key: @key}))}");
|
||||
$("#no_ssh_key_defined").hide();
|
||||
- else
|
||||
:plain
|
||||
$("#new_key_dialog").empty();
|
||||
$("#new_key_dialog").append("#{escape_javascript(render('form'))}");
|
|
@ -1,11 +0,0 @@
|
|||
:plain
|
||||
var new_key_dialog = $("<div id='new_key_dialog'></div>");
|
||||
new_key_dialog.html("#{escape_javascript(render('form'))}");
|
||||
$(new_key_dialog).dialog({
|
||||
width: 350,
|
||||
resizable: false,
|
||||
draggable: false,
|
||||
title: "Add new public key",
|
||||
close: function(event, ui) { $("#new_key_dialog").remove();},
|
||||
modal: true
|
||||
});
|
Loading…
Reference in a new issue