Skip to content

Commit 15af82a

Browse files
committed
Fix IE placeholder bug
1 parent 25b9b7e commit 15af82a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

js/os2web_cp_service.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
$(document).ready(function() {
88
// Convert all nonalphanumeric chars to /.
99
$('#views-exposed-form-os2web-cp-service-cp-case-search-panel-pane-1').submit(function() {
10-
var value = $('#edit-case-id').val();
11-
$('#edit-case-id').val(value.replace(/\W/g, '/'));
10+
// IE fix. Value and placeolder is the same on IE.
11+
if($('#edit-case-id').attr('placeholder') !== $('#edit-case-id').val()) {
12+
var value = $('#edit-case-id').val();
13+
$('#edit-case-id').val(value.replace(/\W/g, '/'));
14+
}
1215
});
1316

1417
$( "a.qtip-this[title]" ).qtip({

0 commit comments

Comments
 (0)