polish again the content_locale picker

This commit is contained in:
did 2012-01-14 13:12:44 +01:00
parent d191d2d783
commit 50a2453995
7 changed files with 5 additions and 12 deletions

View File

@ -12,6 +12,8 @@ class Locomotive.Views.ContentTypes.FormView extends Locomotive.Views.Shared.For
initialize: -> initialize: ->
@model = new Locomotive.Models.ContentType(@options.content_type) @model = new Locomotive.Models.ContentType(@options.content_type)
window.foo = @model
Backbone.ModelBinding.bind @ Backbone.ModelBinding.bind @
render: -> render: ->

View File

@ -5,12 +5,8 @@
@mixin picker { @mixin picker {
position: absolute; position: absolute;
// top: 97px;
// margin: 5px 0 0 0;
padding: 0 0 0 0; padding: 0 0 0 0;
// min-width: 160px;
// z-index: 999;
@include border-radius(4px); @include border-radius(4px);
border: 1px solid #000; border: 1px solid #000;

View File

@ -35,9 +35,6 @@
span.text { span.text {
position: relative; position: relative;
// position: relative;
// top: -6px;
color: #fff; color: #fff;
font-size: 11px; font-size: 11px;
text-shadow: 1px 1px 1px #000; text-shadow: 1px 1px 1px #000;

View File

@ -4,8 +4,6 @@ class Locomotive::ContentLocalePickerCell < Cell::Base
site = args[:site] site = args[:site]
locale = args[:locale].to_s locale = args[:locale].to_s
logger.debug "site.locales = #{site.locales.inspect} / #{site.locales.size}"
if site.locales.empty? || site.locales.size < 2 if site.locales.empty? || site.locales.size < 2
'' ''
else else

View File

@ -75,6 +75,8 @@ x edit my site
- remove inline-editor tag - remove inline-editor tag
- rack - rack
- iframe - iframe
- bugs:
- unable to toggle the "required" check_boxes for content types
- disallow to click twice on the submit form button (spinner ?) - disallow to click twice on the submit form button (spinner ?)
- message to notify people if their browser is too old - message to notify people if their browser is too old

View File

@ -17,8 +17,6 @@ module Locomotive
end end
def set_current_content_locale def set_current_content_locale
# I18n.default_site_locale = current_site.default_locale
if params[:content_locale].present? if params[:content_locale].present?
session[:content_locale] = params[:content_locale] session[:content_locale] = params[:content_locale]
end end

View File

@ -1,6 +1,6 @@
Rails.application.routes.draw do Rails.application.routes.draw do
mount Locomotive::Engine => '/locomotive' mount Locomotive::Engine => '/locomotive', :as => 'locomotive'
match '/foo' => 'foo#index', :as => 'foo' match '/foo' => 'foo#index', :as => 'foo'