Category:Developers: Difference between revisions
Jump to navigation
Jump to search
Markkinchin (talk | contribs) |
No edit summary |
||
| Line 50: | Line 50: | ||
For example: this would cause property 1234 to open in the parent window (frame busting) when it's book button is clicked on the multiple property page | For example: this would cause property 1234 to open in the parent window (frame busting) when it's book button is clicked on the multiple property page | ||
<script> | <code><script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
$('#propid1234 a').attr('target', '_parent'); | $('#propid1234 a').attr('target', '_parent'); | ||
}); | }); | ||
</script> | </script></code> | ||
<span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Check the settings under {{#fas:cog}} (SETTINGS) >BOOKING ENGINE > PROPERTY BOOKING PAGE > BEHAVIOUR before you add such a script. | <span style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span> Check the settings under {{#fas:cog}} (SETTINGS) >BOOKING ENGINE > PROPERTY BOOKING PAGE > BEHAVIOUR before you add such a script. | ||
| Line 61: | Line 61: | ||
Javascript to change the titletext. | Javascript to change the titletext. | ||
<script>document.title='your title';</script> | <code><script>document.title='your title';</script></code> | ||
=== Change date format === | === Change date format === | ||
| Line 67: | Line 67: | ||
<script> | <code><script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
| Line 73: | Line 73: | ||
$('#inputcheckout').data('date-format','MMMM DD, YYYY'); | $('#inputcheckout').data('date-format','MMMM DD, YYYY'); | ||
}) | }) | ||
</script> | </script></code> | ||
<script> | <code><script> | ||
window.onload = function() { | window.onload = function() { | ||
$("[id^='ptdate']").text(function(i, t) { | $("[id^='ptdate']").text(function(i, t) { | ||
| Line 83: | Line 83: | ||
window.onunload = function(){}; | window.onunload = function(){}; | ||
</script> | </script></code> | ||
=== Change the first day of the week in the datepicker=== | === Change the first day of the week in the datepicker=== | ||