|
|
|
@ -2,48 +2,48 @@ |
|
|
|
|
# All this logic will automatically be available in application.js. |
|
|
|
|
# You can use CoffeeScript in this file: http://coffeescript.org/ |
|
|
|
|
|
|
|
|
|
$(document).on 'keyup', "form", (event) -> |
|
|
|
|
$("input:text[name='css']").each (index, event) -> |
|
|
|
|
frominput = $(this).next().next() |
|
|
|
|
toinput = $(frominput).next().next() |
|
|
|
|
if $(this).val() |
|
|
|
|
$(frominput).prop('disabled', true) |
|
|
|
|
$(toinput).prop('disabled', true) |
|
|
|
|
else |
|
|
|
|
$(frominput).prop('disabled', false) |
|
|
|
|
$(toinput).prop('disabled', false) |
|
|
|
|
$("input:text[name='from']").each (index, event) -> |
|
|
|
|
cssinput = $(this).prev().prev() |
|
|
|
|
if $(this).val() |
|
|
|
|
$(cssinput).prop('disabled', true) |
|
|
|
|
else |
|
|
|
|
$(cssinput).prop('disabled', false) |
|
|
|
|
$("input:text[name='to']").each (index, event) -> |
|
|
|
|
cssinput = $(this).prev().prev().prev().prev() |
|
|
|
|
if $(this).val() |
|
|
|
|
$(cssinput).prop('disabled', true) |
|
|
|
|
else |
|
|
|
|
$(cssinput).prop('disabled', false) |
|
|
|
|
|
|
|
|
|
$("form").ready -> |
|
|
|
|
$("input:text[name='css']").each (index, event) -> |
|
|
|
|
frominput = $(this).next().next() |
|
|
|
|
toinput = $(frominput).next().next() |
|
|
|
|
if $(this).val() |
|
|
|
|
$(frominput).prop('disabled', true) |
|
|
|
|
$(toinput).prop('disabled', true) |
|
|
|
|
else |
|
|
|
|
$(frominput).prop('disabled', false) |
|
|
|
|
$(toinput).prop('disabled', false) |
|
|
|
|
$("input:text[name='from']").each (index, event) -> |
|
|
|
|
cssinput = $(this).prev().prev() |
|
|
|
|
if $(this).val() |
|
|
|
|
$(cssinput).prop('disabled', true) |
|
|
|
|
else |
|
|
|
|
$(cssinput).prop('disabled', false) |
|
|
|
|
$("input:text[name='to']").each (index, event) -> |
|
|
|
|
cssinput = $(this).prev().prev().prev().prev() |
|
|
|
|
if $(this).val() |
|
|
|
|
$(cssinput).prop('disabled', true) |
|
|
|
|
else |
|
|
|
|
$(cssinput).prop('disabled', false) |
|
|
|
|
# $(document).on 'keyup', "form", (event) -> |
|
|
|
|
# $("input:text[name='css']").each (index, event) -> |
|
|
|
|
# frominput = $(this).next().next() |
|
|
|
|
# toinput = $(frominput).next().next() |
|
|
|
|
# if $(this).val() |
|
|
|
|
# $(frominput).prop('disabled', true) |
|
|
|
|
# $(toinput).prop('disabled', true) |
|
|
|
|
# else |
|
|
|
|
# $(frominput).prop('disabled', false) |
|
|
|
|
# $(toinput).prop('disabled', false) |
|
|
|
|
# $("input:text[name='from']").each (index, event) -> |
|
|
|
|
# cssinput = $(this).prev().prev() |
|
|
|
|
# if $(this).val() |
|
|
|
|
# $(cssinput).prop('disabled', true) |
|
|
|
|
# else |
|
|
|
|
# $(cssinput).prop('disabled', false) |
|
|
|
|
# $("input:text[name='to']").each (index, event) -> |
|
|
|
|
# cssinput = $(this).prev().prev().prev().prev() |
|
|
|
|
# if $(this).val() |
|
|
|
|
# $(cssinput).prop('disabled', true) |
|
|
|
|
# else |
|
|
|
|
# $(cssinput).prop('disabled', false) |
|
|
|
|
# |
|
|
|
|
# $("form").ready -> |
|
|
|
|
# $("input:text[name='css']").each (index, event) -> |
|
|
|
|
# frominput = $(this).next().next() |
|
|
|
|
# toinput = $(frominput).next().next() |
|
|
|
|
# if $(this).val() |
|
|
|
|
# $(frominput).prop('disabled', true) |
|
|
|
|
# $(toinput).prop('disabled', true) |
|
|
|
|
# else |
|
|
|
|
# $(frominput).prop('disabled', false) |
|
|
|
|
# $(toinput).prop('disabled', false) |
|
|
|
|
# $("input:text[name='from']").each (index, event) -> |
|
|
|
|
# cssinput = $(this).prev().prev() |
|
|
|
|
# if $(this).val() |
|
|
|
|
# $(cssinput).prop('disabled', true) |
|
|
|
|
# else |
|
|
|
|
# $(cssinput).prop('disabled', false) |
|
|
|
|
# $("input:text[name='to']").each (index, event) -> |
|
|
|
|
# cssinput = $(this).prev().prev().prev().prev() |
|
|
|
|
# if $(this).val() |
|
|
|
|
# $(cssinput).prop('disabled', true) |
|
|
|
|
# else |
|
|
|
|
# $(cssinput).prop('disabled', false) |
|
|
|
|