Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a more ajax callback approach to the dialogs. Still a WIP
- Loading branch information
Showing
18 changed files
with
93 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
module ::Refinery | ||
module Refinery | ||
class FastController < ActionController::Base | ||
|
||
def wymiframe | ||
render :template => "/refinery/wymiframe", :layout => false | ||
end | ||
|
||
def message | ||
render :partial => '/refinery/message', :layout => false | ||
end | ||
|
||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
<!DOCTYPE html> | ||
<%= render '/refinery/html_tag' %> | ||
<%= render '/refinery/admin/head' %> | ||
<body id='dialog_container' class='dialog <%= I18n.locale %><%= ' wym_iframe_body' if params[:wymeditor].presence %>'> | ||
<div id='tooltip_container'></div> | ||
<div id="flash_container"> | ||
<%= render '/refinery/message' %> | ||
</div> | ||
<div id='content' class='clearfix'> | ||
<%= yield %> | ||
</div> | ||
</body> | ||
<% if @dialog_successful ||= params[:dialog_successful]%> | ||
<%= render '/refinery/admin/dialog_success' %> | ||
<% else %> | ||
<%= render '/refinery/admin/head' %> | ||
<body id='dialog_container' class='dialog <%= I18n.locale %><%= ' wym_iframe_body' if params[:wymeditor].presence %>'> | ||
<div id='tooltip_container'></div> | ||
<div id="flash_container"> | ||
<%= render '/refinery/message' %> | ||
</div> | ||
<div id='content' class='clearfix'> | ||
<%= yield %> | ||
</div> | ||
</body> | ||
<% end %> | ||
</html> |
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 @@ | ||
<%= render '/refinery/message' if request.xhr? %> |
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,10 +1,7 @@ | ||
<% flash.each do |key, value| %> | ||
<div id='flash' class="flash flash_<%= key %>" style='visibility: hidden;' > | ||
<%= value %> | ||
<% if key.to_s == "message" %> | ||
<%= link_to t('.close_this_message'), "", {:id => "flash_close"} %> | ||
<% else %> | ||
<%= link_to t('.close'), "", {:id => "flash_close"} %> | ||
<% end %> | ||
<%= link_to t(".close#{'_this_message' if key.to_s == "message"}"), "", | ||
:id => "flash_close" %> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<head> | ||
<script>parent.refinery_dialog_success();</script> | ||
</head> |
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
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,2 +1,2 @@ | ||
<%= will_paginate @images %> | ||
<%= will_paginate @images if Refinery::Admin::ImagesController.pageable? %> | ||
<%= render "#{Refinery::Images.preferred_image_view}_view" %> |
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
File renamed without changes.
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