-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move su password form into proper lightbox + some fixes (because prev…
…ious form acquired a bug preventing it from displaying above everything else)
- Loading branch information
Showing
11 changed files
with
62 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
// This file is used to delegate <a rel="facebox" /> links to the facebox jquery plugin. | ||
// This is preferred over binding on page-load, in case any additional facebox links are | ||
// loaded via AJAX. | ||
*/ | ||
|
||
jQuery(document).ready(function($) { | ||
$(document).on('click.facebox', 'a[rel*=facebox]', function(e) { | ||
if (!this.href.match(/#/)) $(this).attr('href',$.param.querystring(this.href,{ajax_section:'lightbox'})); | ||
$(this).facebox(); | ||
$(this).trigger('click.facebox'); | ||
return false; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
/* | ||
*= require style | ||
*= require nav-superfish | ||
*= require tab_box | ||
*= require skins/markitup/style | ||
*= require sets/markdown/style | ||
*= require jquery.countdown | ||
*= require jquery-ui-1.8.16.custom | ||
*= require fileinput | ||
*= require scaffold | ||
*= require ajax_pagination | ||
*= require jquery.facebox | ||
*= require style | ||
*= require nav-superfish | ||
*= require tab_box | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<%= form_tag su_user_path(@user), :method => 'post', :style => 'text-align: center;' do %> | ||
<div class="field"> | ||
<%= label_tag :password %><br /> | ||
<%= password_field_tag :password, '', :autocomplete => 'off' %> | ||
</div> | ||
<div class="actions" style="padding: 0px; margin: 0px;"> | ||
<input type="button" value="Cancel" style="margin-right: 20px;" onClick="<%= (@_ajax_section == :lightbox) ? "jQuery(document).trigger(\"close.facebox\");" : "History.back();" %>"> | ||
<%= submit_tag('Confirm', :style => "margin-left: 20px;") %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters