Skip to content

Commit 91b87a0

Browse files
authored
Update URLMaker.html
1 parent 1654e3c commit 91b87a0

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

URLMaker.html

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
<script src="javascripts/link-index.js" type="text/javascript"></script>
88
<script src="javascripts/register-links.js" type="text/javascript"></script>
99

10-
<script type="text/javascript">//&lt;![CDATA[
10+
<script type="text/javascript">//&lt;![CDATA[
1111
$(window).load(function(){
12-
var title = $('#fulltext').val();
12+
$('#wrap-intro').click(function () {
13+
var title = $('#fulltext').val();
1314
var re = new RegExp(' ', "g");
1415
var re2 = new RegExp('--', "g");
1516
var re3 = new RegExp("[0-9]", "g");
@@ -24,16 +25,27 @@
2425
}
2526

2627
}
27-
$('#wrap-intro').click(function () {
28-
$('#showtext').val(title);
28+
$('#showtext').val(title);
29+
});
30+
31+
$("#form").submit(function () {
32+
$("#form").validate();
33+
return false;
34+
});
35+
36+
$("#showtext").focus(function () {
37+
var $this = $(this);
38+
$this.select();
39+
// Work around Chrome's little problem
40+
$this.mouseup(function () {
41+
// Prevent further mouseup intervention
42+
$this.unbind("mouseup");
43+
return false;
44+
});
2945
});
30-
31-
3246
});//]]&gt;
33-
3447
</script>
3548

36-
3749
</head>
3850
<body>
3951
<form id="form">

0 commit comments

Comments
 (0)