Commit dd20da1bfff2cd5ea43c8c3c6837bd40e5f44f4f
1 parent
abc2bdc3
Exists in
master
and in
4 other branches
Fix pager loading on every page in application
Showing
4 changed files
with
4 additions
and
24 deletions
Show diff stats
app/assets/javascripts/dashboard.js.coffee
app/views/dashboard/index.html.haml
app/views/keys/create.js.haml
@@ -1,9 +0,0 @@ | @@ -1,9 +0,0 @@ | ||
1 | -- if @key.valid? | ||
2 | - :plain | ||
3 | - $("#new_key_dialog").dialog("close"); | ||
4 | - $("#keys-table .data").append("#{escape_javascript(render(partial: 'show', locals: {key: @key}))}"); | ||
5 | - $("#no_ssh_key_defined").hide(); | ||
6 | -- else | ||
7 | - :plain | ||
8 | - $("#new_key_dialog").empty(); | ||
9 | - $("#new_key_dialog").append("#{escape_javascript(render('form'))}"); |
app/views/keys/new.js.haml
@@ -1,11 +0,0 @@ | @@ -1,11 +0,0 @@ | ||
1 | -:plain | ||
2 | - var new_key_dialog = $("<div id='new_key_dialog'></div>"); | ||
3 | - new_key_dialog.html("#{escape_javascript(render('form'))}"); | ||
4 | - $(new_key_dialog).dialog({ | ||
5 | - width: 350, | ||
6 | - resizable: false, | ||
7 | - draggable: false, | ||
8 | - title: "Add new public key", | ||
9 | - close: function(event, ui) { $("#new_key_dialog").remove();}, | ||
10 | - modal: true | ||
11 | - }); |