Save default variable name for config types

This commit is contained in:
Brian Miyaji
2014-04-25 01:06:35 +10:00
parent 88d43e0a4f
commit 727d7d3fe6
17 changed files with 227 additions and 108 deletions

View File

@@ -26,7 +26,9 @@ jQuery(document).ready(function($){
// Auto key placeholder
$("#poststuff #title").on("keyup", function() {
$("#sp_key").attr("placeholder", $(this).val().replace(/[^a-z]/gi,"").toLowerCase());
val = $(this).val().replace(/[^a-z]/gi,"").toLowerCase();
$("#sp_variable").attr("placeholder", val);
$("#sp_default_variable").val(val);
});
// Activate auto key placeholder