input changes row in table when savedWhen are you supposed to use escape instead of encodeURI / encodeURIComponent?Add table row in jQueryHow to change the href for a hyperlink using jQueryHow to change an element's class with JavaScript?When to use double or single quotes in JavaScript?Disable/enable an input with jQuery?What is the purpose of the var keyword and when should I use it (or omit it)?How to decide when to use Node.js?Swap input placeholder text with span text jqueryReact input defaultValue doesn't update with state
Is "remove commented out code" correct English?
What exploit Are these user agents trying to use?
Unable to supress ligatures in headings which are set in Caps
Unlock My Phone! February 2018
How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?
Bullying boss launched a smear campaign and made me unemployable
Venezuelan girlfriend wants to travel the USA to be with me. What is the process?
Forgetting the musical notes while performing in concert
Why didn't Boeing produce its own regional jet?
Why didn't Miles's spider sense work before?
What killed these X2 caps?
Why no variance term in Bayesian logistic regression?
Plagiarism or not?
iPad being using in wall mount battery swollen
Alternative to sending password over mail?
Do UK voters know if their MP will be the Speaker of the House?
Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?
Which is the best way to check return result?
Cursor Replacement for Newbies
Why can't we play rap on piano?
Why is consensus so controversial in Britain?
How do conventional missiles fly?
What is a romance in Latin?
How does a predictive coding aid in lossless compression?
input changes row in table when saved
When are you supposed to use escape instead of encodeURI / encodeURIComponent?Add table row in jQueryHow to change the href for a hyperlink using jQueryHow to change an element's class with JavaScript?When to use double or single quotes in JavaScript?Disable/enable an input with jQuery?What is the purpose of the var keyword and when should I use it (or omit it)?How to decide when to use Node.js?Swap input placeholder text with span text jqueryReact input defaultValue doesn't update with state
I have inherited a ruby on rails project from a previous coworker that has two dynamic tables one on top of the other. The table on the top sends some input to the bottom table. 
The bottom table is filled out halfway and then needs the invoice 1 2 and 3 to be filled in manually (this will also fill in the dollar amounts through math).
The issue I am having is when I have more then one row and click the save button at the bottom of the page the invoice 1 2 and 3 will all shift down to the bottom row and create more rows that weren't there before.
This is my code for the bottom table:
<script id="second-line-template" type="text/x-handlebars-template">
<tr>
<td class="td-sm text-left"><span data-name="second_print_number"></span></td>
<td colspan ="2" class="td-sm text-left"><span data-name="second_description"></span></td>
<td class="td-sm text-left"><span data-name="quantity_ordered_extended"></span></td>
<td class="td-sm text-right"><span data-name="total_needed"></span></td>
<td class="td-sm text-right"><span data-name="above_price"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_one]" data-name="invoice_one" placeholder="0" class="form-control" value=" item.invoice_one "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_one"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_two]" data-name="invoice_two" placeholder="0" class="form-control" value=" item.invoice_two "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_two"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_three]" data-name="invoice_three" placeholder="0" class="form-control" value=" item.invoice_three "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_three"></span></td>
<td class="td-sm text-right"><span data-name="total_recieved"></span></td>
</tr>
</script>
and this is my javascript for the bottom table:
$('#purchase-order-form-second-lines tbody tr').each(function(k, v)
var secondline = ;
$('input[data-name]', v).each(function(i, c) );
elem = $('#purchase-order-form-lines tbody tr').eq(k);
line = ;
$('input[data-name]', elem).each(function(i, c)
line[$(c).data('name')] = parseFloat($(c).val()) );
secondline.second_print_number = k +1;
secondline.second_description = line.description;
secondline.quantity_ordered_extended = line.quantity;
secondline.total_needed = line.quantity - secondline.invoice_one - secondline.invoice_two - secondline.invoice_three;
secondline.above_price = line.unit_price;
secondline.invoice_dollar_one = secondline.above_price * secondline.invoice_one;
secondline.invoice_dollar_two = secondline.above_price * secondline.invoice_two;
secondline.invoice_dollar_three = secondline.above_price * secondline.invoice_three;
secondline.total_recieved = secondline.invoice_dollar_one + secondline.invoice_dollar_two + secondline.invoice_dollar_three;
viewFirstSubtotal += secondline.invoice_dollar_one;
viewSecondSubtotal += secondline.invoice_dollar_two;
viewThirdSubtotal += secondline.invoice_dollar_three;
second_discount = discountPercent;
viewFirstDiscount += (discountPercent * secondline.invoice_dollar_one) / 100;
viewSecondDiscount += (discountPercent * secondline.invoice_dollar_two) / 100;
viewThirdDiscount += (discountPercent * secondline.invoice_dollar_three) / 100;
second_tax = taxPercent;
viewFirstTax += (taxPercent * secondline.invoice_dollar_one) / 100;
viewSecondTax += (taxPercent * secondline.invoice_dollar_two) / 100;
viewThirdTax += (taxPercent * secondline.invoice_dollar_three) / 100;
viewFirstTotalInvoice = viewFirstSubtotal - viewFirstDiscount + viewFirstTax;
viewSecondTotalInvoice = viewSecondSubtotal - viewSecondDiscount + viewSecondTax;
viewThirdTotalInvoice = viewThirdSubtotal - viewThirdDiscount + viewThirdTax;
$('[data-name="second_print_number"]', v).html(secondline.second_print_number);
$('[data-name="second_description"]', v).html(secondline.second_description);
$('[data-name="quantity_ordered_extended"]', v).html(secondline.quantity_ordered_extended);
$('[data-name="total_needed"]', v).html(secondline.total_needed);
$('[data-name="above_price"]', v).html(secondline.above_price);
$('[data-name="invoice_dollar_one"]', v).html(secondline.invoice_dollar_one.formatMoney(2));
$('[data-name="invoice_dollar_two"]', v).html(secondline.invoice_dollar_two.formatMoney(2));
$('[data-name="invoice_dollar_three"]', v).html(secondline.invoice_dollar_three.formatMoney(2));
$('[data-name="total_recieved"]', v).html(secondline.total_recieved.formatMoney(2));
);
The code for the top table is essentially the same with a few labels changed. Any help or input or ideas of how I could even begin to fix this issue would be very much appreciated. Also I apologize for the huge size of this post and I appreciate you sticking through to the end to read all of this :^D
javascript ruby-on-rails handlebars.js dynamic-tables
add a comment |
I have inherited a ruby on rails project from a previous coworker that has two dynamic tables one on top of the other. The table on the top sends some input to the bottom table. 
The bottom table is filled out halfway and then needs the invoice 1 2 and 3 to be filled in manually (this will also fill in the dollar amounts through math).
The issue I am having is when I have more then one row and click the save button at the bottom of the page the invoice 1 2 and 3 will all shift down to the bottom row and create more rows that weren't there before.
This is my code for the bottom table:
<script id="second-line-template" type="text/x-handlebars-template">
<tr>
<td class="td-sm text-left"><span data-name="second_print_number"></span></td>
<td colspan ="2" class="td-sm text-left"><span data-name="second_description"></span></td>
<td class="td-sm text-left"><span data-name="quantity_ordered_extended"></span></td>
<td class="td-sm text-right"><span data-name="total_needed"></span></td>
<td class="td-sm text-right"><span data-name="above_price"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_one]" data-name="invoice_one" placeholder="0" class="form-control" value=" item.invoice_one "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_one"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_two]" data-name="invoice_two" placeholder="0" class="form-control" value=" item.invoice_two "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_two"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_three]" data-name="invoice_three" placeholder="0" class="form-control" value=" item.invoice_three "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_three"></span></td>
<td class="td-sm text-right"><span data-name="total_recieved"></span></td>
</tr>
</script>
and this is my javascript for the bottom table:
$('#purchase-order-form-second-lines tbody tr').each(function(k, v)
var secondline = ;
$('input[data-name]', v).each(function(i, c) );
elem = $('#purchase-order-form-lines tbody tr').eq(k);
line = ;
$('input[data-name]', elem).each(function(i, c)
line[$(c).data('name')] = parseFloat($(c).val()) );
secondline.second_print_number = k +1;
secondline.second_description = line.description;
secondline.quantity_ordered_extended = line.quantity;
secondline.total_needed = line.quantity - secondline.invoice_one - secondline.invoice_two - secondline.invoice_three;
secondline.above_price = line.unit_price;
secondline.invoice_dollar_one = secondline.above_price * secondline.invoice_one;
secondline.invoice_dollar_two = secondline.above_price * secondline.invoice_two;
secondline.invoice_dollar_three = secondline.above_price * secondline.invoice_three;
secondline.total_recieved = secondline.invoice_dollar_one + secondline.invoice_dollar_two + secondline.invoice_dollar_three;
viewFirstSubtotal += secondline.invoice_dollar_one;
viewSecondSubtotal += secondline.invoice_dollar_two;
viewThirdSubtotal += secondline.invoice_dollar_three;
second_discount = discountPercent;
viewFirstDiscount += (discountPercent * secondline.invoice_dollar_one) / 100;
viewSecondDiscount += (discountPercent * secondline.invoice_dollar_two) / 100;
viewThirdDiscount += (discountPercent * secondline.invoice_dollar_three) / 100;
second_tax = taxPercent;
viewFirstTax += (taxPercent * secondline.invoice_dollar_one) / 100;
viewSecondTax += (taxPercent * secondline.invoice_dollar_two) / 100;
viewThirdTax += (taxPercent * secondline.invoice_dollar_three) / 100;
viewFirstTotalInvoice = viewFirstSubtotal - viewFirstDiscount + viewFirstTax;
viewSecondTotalInvoice = viewSecondSubtotal - viewSecondDiscount + viewSecondTax;
viewThirdTotalInvoice = viewThirdSubtotal - viewThirdDiscount + viewThirdTax;
$('[data-name="second_print_number"]', v).html(secondline.second_print_number);
$('[data-name="second_description"]', v).html(secondline.second_description);
$('[data-name="quantity_ordered_extended"]', v).html(secondline.quantity_ordered_extended);
$('[data-name="total_needed"]', v).html(secondline.total_needed);
$('[data-name="above_price"]', v).html(secondline.above_price);
$('[data-name="invoice_dollar_one"]', v).html(secondline.invoice_dollar_one.formatMoney(2));
$('[data-name="invoice_dollar_two"]', v).html(secondline.invoice_dollar_two.formatMoney(2));
$('[data-name="invoice_dollar_three"]', v).html(secondline.invoice_dollar_three.formatMoney(2));
$('[data-name="total_recieved"]', v).html(secondline.total_recieved.formatMoney(2));
);
The code for the top table is essentially the same with a few labels changed. Any help or input or ideas of how I could even begin to fix this issue would be very much appreciated. Also I apologize for the huge size of this post and I appreciate you sticking through to the end to read all of this :^D
javascript ruby-on-rails handlebars.js dynamic-tables
add a comment |
I have inherited a ruby on rails project from a previous coworker that has two dynamic tables one on top of the other. The table on the top sends some input to the bottom table. 
The bottom table is filled out halfway and then needs the invoice 1 2 and 3 to be filled in manually (this will also fill in the dollar amounts through math).
The issue I am having is when I have more then one row and click the save button at the bottom of the page the invoice 1 2 and 3 will all shift down to the bottom row and create more rows that weren't there before.
This is my code for the bottom table:
<script id="second-line-template" type="text/x-handlebars-template">
<tr>
<td class="td-sm text-left"><span data-name="second_print_number"></span></td>
<td colspan ="2" class="td-sm text-left"><span data-name="second_description"></span></td>
<td class="td-sm text-left"><span data-name="quantity_ordered_extended"></span></td>
<td class="td-sm text-right"><span data-name="total_needed"></span></td>
<td class="td-sm text-right"><span data-name="above_price"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_one]" data-name="invoice_one" placeholder="0" class="form-control" value=" item.invoice_one "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_one"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_two]" data-name="invoice_two" placeholder="0" class="form-control" value=" item.invoice_two "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_two"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_three]" data-name="invoice_three" placeholder="0" class="form-control" value=" item.invoice_three "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_three"></span></td>
<td class="td-sm text-right"><span data-name="total_recieved"></span></td>
</tr>
</script>
and this is my javascript for the bottom table:
$('#purchase-order-form-second-lines tbody tr').each(function(k, v)
var secondline = ;
$('input[data-name]', v).each(function(i, c) );
elem = $('#purchase-order-form-lines tbody tr').eq(k);
line = ;
$('input[data-name]', elem).each(function(i, c)
line[$(c).data('name')] = parseFloat($(c).val()) );
secondline.second_print_number = k +1;
secondline.second_description = line.description;
secondline.quantity_ordered_extended = line.quantity;
secondline.total_needed = line.quantity - secondline.invoice_one - secondline.invoice_two - secondline.invoice_three;
secondline.above_price = line.unit_price;
secondline.invoice_dollar_one = secondline.above_price * secondline.invoice_one;
secondline.invoice_dollar_two = secondline.above_price * secondline.invoice_two;
secondline.invoice_dollar_three = secondline.above_price * secondline.invoice_three;
secondline.total_recieved = secondline.invoice_dollar_one + secondline.invoice_dollar_two + secondline.invoice_dollar_three;
viewFirstSubtotal += secondline.invoice_dollar_one;
viewSecondSubtotal += secondline.invoice_dollar_two;
viewThirdSubtotal += secondline.invoice_dollar_three;
second_discount = discountPercent;
viewFirstDiscount += (discountPercent * secondline.invoice_dollar_one) / 100;
viewSecondDiscount += (discountPercent * secondline.invoice_dollar_two) / 100;
viewThirdDiscount += (discountPercent * secondline.invoice_dollar_three) / 100;
second_tax = taxPercent;
viewFirstTax += (taxPercent * secondline.invoice_dollar_one) / 100;
viewSecondTax += (taxPercent * secondline.invoice_dollar_two) / 100;
viewThirdTax += (taxPercent * secondline.invoice_dollar_three) / 100;
viewFirstTotalInvoice = viewFirstSubtotal - viewFirstDiscount + viewFirstTax;
viewSecondTotalInvoice = viewSecondSubtotal - viewSecondDiscount + viewSecondTax;
viewThirdTotalInvoice = viewThirdSubtotal - viewThirdDiscount + viewThirdTax;
$('[data-name="second_print_number"]', v).html(secondline.second_print_number);
$('[data-name="second_description"]', v).html(secondline.second_description);
$('[data-name="quantity_ordered_extended"]', v).html(secondline.quantity_ordered_extended);
$('[data-name="total_needed"]', v).html(secondline.total_needed);
$('[data-name="above_price"]', v).html(secondline.above_price);
$('[data-name="invoice_dollar_one"]', v).html(secondline.invoice_dollar_one.formatMoney(2));
$('[data-name="invoice_dollar_two"]', v).html(secondline.invoice_dollar_two.formatMoney(2));
$('[data-name="invoice_dollar_three"]', v).html(secondline.invoice_dollar_three.formatMoney(2));
$('[data-name="total_recieved"]', v).html(secondline.total_recieved.formatMoney(2));
);
The code for the top table is essentially the same with a few labels changed. Any help or input or ideas of how I could even begin to fix this issue would be very much appreciated. Also I apologize for the huge size of this post and I appreciate you sticking through to the end to read all of this :^D
javascript ruby-on-rails handlebars.js dynamic-tables
I have inherited a ruby on rails project from a previous coworker that has two dynamic tables one on top of the other. The table on the top sends some input to the bottom table. 
The bottom table is filled out halfway and then needs the invoice 1 2 and 3 to be filled in manually (this will also fill in the dollar amounts through math).
The issue I am having is when I have more then one row and click the save button at the bottom of the page the invoice 1 2 and 3 will all shift down to the bottom row and create more rows that weren't there before.
This is my code for the bottom table:
<script id="second-line-template" type="text/x-handlebars-template">
<tr>
<td class="td-sm text-left"><span data-name="second_print_number"></span></td>
<td colspan ="2" class="td-sm text-left"><span data-name="second_description"></span></td>
<td class="td-sm text-left"><span data-name="quantity_ordered_extended"></span></td>
<td class="td-sm text-right"><span data-name="total_needed"></span></td>
<td class="td-sm text-right"><span data-name="above_price"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_one]" data-name="invoice_one" placeholder="0" class="form-control" value=" item.invoice_one "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_one"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_two]" data-name="invoice_two" placeholder="0" class="form-control" value=" item.invoice_two "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_two"></span></td>
<td class="td-sm text-right"><input name="purchase_order[items][][invoice_three]" data-name="invoice_three" placeholder="0" class="form-control" value=" item.invoice_three "></td>
<td class="td-sm text-right"><span data-name="invoice_dollar_three"></span></td>
<td class="td-sm text-right"><span data-name="total_recieved"></span></td>
</tr>
</script>
and this is my javascript for the bottom table:
$('#purchase-order-form-second-lines tbody tr').each(function(k, v)
var secondline = ;
$('input[data-name]', v).each(function(i, c) );
elem = $('#purchase-order-form-lines tbody tr').eq(k);
line = ;
$('input[data-name]', elem).each(function(i, c)
line[$(c).data('name')] = parseFloat($(c).val()) );
secondline.second_print_number = k +1;
secondline.second_description = line.description;
secondline.quantity_ordered_extended = line.quantity;
secondline.total_needed = line.quantity - secondline.invoice_one - secondline.invoice_two - secondline.invoice_three;
secondline.above_price = line.unit_price;
secondline.invoice_dollar_one = secondline.above_price * secondline.invoice_one;
secondline.invoice_dollar_two = secondline.above_price * secondline.invoice_two;
secondline.invoice_dollar_three = secondline.above_price * secondline.invoice_three;
secondline.total_recieved = secondline.invoice_dollar_one + secondline.invoice_dollar_two + secondline.invoice_dollar_three;
viewFirstSubtotal += secondline.invoice_dollar_one;
viewSecondSubtotal += secondline.invoice_dollar_two;
viewThirdSubtotal += secondline.invoice_dollar_three;
second_discount = discountPercent;
viewFirstDiscount += (discountPercent * secondline.invoice_dollar_one) / 100;
viewSecondDiscount += (discountPercent * secondline.invoice_dollar_two) / 100;
viewThirdDiscount += (discountPercent * secondline.invoice_dollar_three) / 100;
second_tax = taxPercent;
viewFirstTax += (taxPercent * secondline.invoice_dollar_one) / 100;
viewSecondTax += (taxPercent * secondline.invoice_dollar_two) / 100;
viewThirdTax += (taxPercent * secondline.invoice_dollar_three) / 100;
viewFirstTotalInvoice = viewFirstSubtotal - viewFirstDiscount + viewFirstTax;
viewSecondTotalInvoice = viewSecondSubtotal - viewSecondDiscount + viewSecondTax;
viewThirdTotalInvoice = viewThirdSubtotal - viewThirdDiscount + viewThirdTax;
$('[data-name="second_print_number"]', v).html(secondline.second_print_number);
$('[data-name="second_description"]', v).html(secondline.second_description);
$('[data-name="quantity_ordered_extended"]', v).html(secondline.quantity_ordered_extended);
$('[data-name="total_needed"]', v).html(secondline.total_needed);
$('[data-name="above_price"]', v).html(secondline.above_price);
$('[data-name="invoice_dollar_one"]', v).html(secondline.invoice_dollar_one.formatMoney(2));
$('[data-name="invoice_dollar_two"]', v).html(secondline.invoice_dollar_two.formatMoney(2));
$('[data-name="invoice_dollar_three"]', v).html(secondline.invoice_dollar_three.formatMoney(2));
$('[data-name="total_recieved"]', v).html(secondline.total_recieved.formatMoney(2));
);
The code for the top table is essentially the same with a few labels changed. Any help or input or ideas of how I could even begin to fix this issue would be very much appreciated. Also I apologize for the huge size of this post and I appreciate you sticking through to the end to read all of this :^D
javascript ruby-on-rails handlebars.js dynamic-tables
javascript ruby-on-rails handlebars.js dynamic-tables
asked Mar 8 at 22:26
ProfessionallyIneptProfessionallyInept
164
164
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071853%2finput-changes-row-in-table-when-saved%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071853%2finput-changes-row-in-table-when-saved%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown