}\r
}\r
});\r
+\r
+ $('.url_field').each(function() {\r
+ var $input = $(this);\r
+ var $anchor = $input.parent().find('.url_field_anchor');\r
+ var app_url = $anchor.attr('href');\r
+\r
+ function rewrite_anchor() {\r
+ var val = app_url + $input.val();\r
+\r
+ $anchor.attr('href', val);\r
+ $anchor.html(val);\r
+\r
+ }\r
+\r
+ $input.keyup(rewrite_anchor);\r
+ rewrite_anchor(); \r
+ });\r
});
\ No newline at end of file