All pastes #612603 Raw Edit

Gurpartap Singh

public javascript v1 · immutable
·published 2007-07-10 14:34 UTC
rendered paste body
$('input#edit-title').keyup(function() {  updateURL($(this).val());}).mouseup(function() {  updateURL($(this).val());}).blur(function() {  updateURL($(this).val());});updateURL = function(title) {  var customPath = 'pages/'+ title;  $('input#edit-path').val(customPath);}