store
This commit is contained in:
parent
a946ea07ef
commit
000d19eaf9
3
Gemfile
3
Gemfile
@ -16,6 +16,5 @@ group :assets do
|
|||||||
gem "savon", "~> 2.0"
|
gem "savon", "~> 2.0"
|
||||||
gem "uglifier", ">= 1.0.3"
|
gem "uglifier", ">= 1.0.3"
|
||||||
gem "gemsurance"
|
gem "gemsurance"
|
||||||
gem "select2-rails"
|
gem "chosen-rails"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
17
Gemfile.lock
17
Gemfile.lock
@ -52,6 +52,12 @@ GEM
|
|||||||
sass (>= 3.2.0)
|
sass (>= 3.2.0)
|
||||||
thor
|
thor
|
||||||
builder (3.0.4)
|
builder (3.0.4)
|
||||||
|
chosen-rails (1.1.0)
|
||||||
|
coffee-rails (>= 3.2)
|
||||||
|
compass-rails (>= 1.1.2)
|
||||||
|
railties (>= 3.0)
|
||||||
|
sass-rails (>= 3.2)
|
||||||
|
chunky_png (1.3.0)
|
||||||
coffee-rails (3.2.2)
|
coffee-rails (3.2.2)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
railties (~> 3.2.0)
|
railties (~> 3.2.0)
|
||||||
@ -59,6 +65,12 @@ GEM
|
|||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.6.3)
|
coffee-script-source (1.6.3)
|
||||||
|
compass (0.12.2)
|
||||||
|
chunky_png (~> 1.2)
|
||||||
|
fssm (>= 0.2.7)
|
||||||
|
sass (~> 3.1)
|
||||||
|
compass-rails (1.1.3)
|
||||||
|
compass (>= 0.12.2)
|
||||||
devise (3.2.2)
|
devise (3.2.2)
|
||||||
bcrypt-ruby (~> 3.0)
|
bcrypt-ruby (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
@ -70,6 +82,7 @@ GEM
|
|||||||
fastercsv (1.5.5)
|
fastercsv (1.5.5)
|
||||||
formtastic (2.2.1)
|
formtastic (2.2.1)
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
|
fssm (0.2.10)
|
||||||
gemsurance (0.1.4)
|
gemsurance (0.1.4)
|
||||||
bundler (~> 1.2)
|
bundler (~> 1.2)
|
||||||
git (~> 1.2)
|
git (~> 1.2)
|
||||||
@ -157,8 +170,6 @@ GEM
|
|||||||
nokogiri (>= 1.4.0)
|
nokogiri (>= 1.4.0)
|
||||||
nori (~> 2.3.0)
|
nori (~> 2.3.0)
|
||||||
wasabi (~> 3.2.2)
|
wasabi (~> 3.2.2)
|
||||||
select2-rails (3.5.2)
|
|
||||||
thor (~> 0.14)
|
|
||||||
sprockets (2.2.2)
|
sprockets (2.2.2)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
@ -188,6 +199,7 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activeadmin
|
activeadmin
|
||||||
|
chosen-rails
|
||||||
coffee-rails (~> 3.2.1)
|
coffee-rails (~> 3.2.1)
|
||||||
gemsurance
|
gemsurance
|
||||||
gyoku (~> 1.0)
|
gyoku (~> 1.0)
|
||||||
@ -197,6 +209,5 @@ DEPENDENCIES
|
|||||||
rails_config
|
rails_config
|
||||||
sass-rails (~> 3.2.3)
|
sass-rails (~> 3.2.3)
|
||||||
savon (~> 2.0)
|
savon (~> 2.0)
|
||||||
select2-rails
|
|
||||||
sqlite3
|
sqlite3
|
||||||
uglifier (>= 1.0.3)
|
uglifier (>= 1.0.3)
|
||||||
|
@ -12,5 +12,5 @@
|
|||||||
//
|
//
|
||||||
//= require jquery
|
//= require jquery
|
||||||
//= require jquery_ujs
|
//= require jquery_ujs
|
||||||
|
//= require chosen.jquery
|
||||||
//= require_tree .
|
//= require_tree .
|
||||||
//= require select2
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
$ ->
|
$ ->
|
||||||
$("#list_entry_localeze_categories").select2 maximumSelectionSize: 3
|
$("#list_entry_localeze_categories").chosen max_selected_options: 3
|
||||||
elem = $("#chars")
|
elem = $("#chars")
|
||||||
$("#list_entry_Phone").mask "(999) 999-9999"
|
$("#list_entry_Phone").mask "(999) 999-9999"
|
||||||
$("#list_entry_altnumber").mask "(999) 999-9999"
|
$("#list_entry_altnumber").mask "(999) 999-9999"
|
||||||
@ -8,16 +8,15 @@ $ ->
|
|||||||
$("#set_MF").click all_MF
|
$("#set_MF").click all_MF
|
||||||
$("#set_clear").click clear_times
|
$("#set_clear").click clear_times
|
||||||
$.each [
|
$.each [
|
||||||
"sunday"
|
"sun"
|
||||||
"monday"
|
"mon"
|
||||||
"tuesday"
|
"tues"
|
||||||
"wednesday"
|
"wednes"
|
||||||
"thursday"
|
"thurs"
|
||||||
"friday"
|
"fri"
|
||||||
"saturday"
|
"satur"
|
||||||
], (i, day) ->
|
], (i, day) ->
|
||||||
$("#hours_" + day + "_close").insertAfter "#hours_" + day + "_open"
|
$("#hours_#{day}day_close").insertAfter "#hours_#{day}_open"
|
||||||
return
|
|
||||||
|
|
||||||
$("#hours_sunday_close").after " <a href='#' id='set_all'>[Apply To All]</a>"
|
$("#hours_sunday_close").after " <a href='#' id='set_all'>[Apply To All]</a>"
|
||||||
$("#hours_monday_close").after " <a href='#' id='set_MF'>[Set Monday-Friday]</a>"
|
$("#hours_monday_close").after " <a href='#' id='set_MF'>[Set Monday-Friday]</a>"
|
||||||
@ -26,20 +25,10 @@ $ ->
|
|||||||
$("#set_clear").click clear_times
|
$("#set_clear").click clear_times
|
||||||
$("#how").click ->
|
$("#how").click ->
|
||||||
$(".how").toggle()
|
$(".how").toggle()
|
||||||
return
|
|
||||||
|
|
||||||
$("#payment_types_commadelimited_0").click clear_payment_types
|
for i in [0..9]
|
||||||
$("#payment_types_commadelimited_1").click check_payment_types
|
$("#payment_types_commadelimited_#{i}").click clear_payment_types
|
||||||
$("#payment_types_commadelimited_2").click check_payment_types
|
|
||||||
$("#payment_types_commadelimited_3").click check_payment_types
|
|
||||||
$("#payment_types_commadelimited_4").click check_payment_types
|
|
||||||
$("#payment_types_commadelimited_5").click check_payment_types
|
|
||||||
$("#payment_types_commadelimited_6").click check_payment_types
|
|
||||||
$("#payment_types_commadelimited_7").click check_payment_types
|
|
||||||
$("#payment_types_commadelimited_8").click check_payment_types
|
|
||||||
$("#payment_types_commadelimited_9").click check_payment_types
|
|
||||||
$("#open247").click open247
|
$("#open247").click open247
|
||||||
return
|
|
||||||
|
|
||||||
open247 = ->
|
open247 = ->
|
||||||
if $(this).is(":checked")
|
if $(this).is(":checked")
|
||||||
@ -57,24 +46,17 @@ open247 = ->
|
|||||||
|
|
||||||
clear_payment_types = ->
|
clear_payment_types = ->
|
||||||
unchecked = true
|
unchecked = true
|
||||||
i = 1
|
for i in [1...9]
|
||||||
|
$("#payment_types_commadelimited_#{i}").prop "checked", ""
|
||||||
while i <= 9
|
|
||||||
$("#payment_types_commadelimited_" + i).prop "checked", ""
|
|
||||||
i++
|
|
||||||
return
|
return
|
||||||
|
|
||||||
check_payment_types = ->
|
check_payment_types = ->
|
||||||
unchecked = true
|
unchecked = true
|
||||||
i = 1
|
for i in [1...9]
|
||||||
|
if $("#payment_types_commadelimited_#{i}").is(":checked")
|
||||||
while i <= 9
|
|
||||||
if $("#payment_types_commadelimited_" + i).is(":checked")
|
|
||||||
$("#payment_types_commadelimited_0").prop "checked", ""
|
$("#payment_types_commadelimited_0").prop "checked", ""
|
||||||
unchecked = false
|
unchecked = false
|
||||||
i++
|
|
||||||
$("#payment_types_commadelimited_0").prop "checked", "checked" if unchecked
|
$("#payment_types_commadelimited_0").prop "checked", "checked" if unchecked
|
||||||
return
|
|
||||||
|
|
||||||
all_days_same = ->
|
all_days_same = ->
|
||||||
open_time = $("#hours_sunday_open").val()
|
open_time = $("#hours_sunday_open").val()
|
||||||
@ -94,5 +76,4 @@ clear_times = ->
|
|||||||
open_time = ""
|
open_time = ""
|
||||||
close_time = ""
|
close_time = ""
|
||||||
$("select[id*=day_open]").val open_time
|
$("select[id*=day_open]").val open_time
|
||||||
$("select[id*=day_close]").val close_time
|
$("select[id*=day_close]").val close_time
|
||||||
return
|
|
@ -9,6 +9,6 @@
|
|||||||
* compiled file, but it's generally better to create a new file per style scope.
|
* compiled file, but it's generally better to create a new file per style scope.
|
||||||
*
|
*
|
||||||
*= require_self
|
*= require_self
|
||||||
|
*= require chosen
|
||||||
*= require_tree .
|
*= require_tree .
|
||||||
*= require select2
|
|
||||||
*/
|
*/
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<%= f.label :localeze_categories, "Localeze Categories", {class: "control-label"} %>
|
<%= f.label :localeze_categories, "Localeze Categories", {class: "control-label"} %>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= f.collection_select(:localeze_categories , LocalezeCategory.find(:all), :id , :name, {}, { :multiple => true, :size => 3 }) %>
|
<%= f.collection_select(:localeze_categories , LocalezeCategory.find(:all), :id , :name, {}, { :multiple => true, :size => 3, class: 'fuckingworkdick' }) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user