You've already forked explain.depesz.com
mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2025-07-17 01:42:34 +02:00
Merge branch 'master' into 'master'
Upgrade jQuery to version 3.7.1 See merge request depesz/explain.depesz.com!27
This commit is contained in:
@ -358,15 +358,15 @@
|
||||
$( document ).ready( function() {
|
||||
|
||||
handle_comment_jump();
|
||||
$("button.copy").click(copy_to_clipboard);
|
||||
$("button.copy").on("click",copy_to_clipboard);
|
||||
|
||||
$('INPUT.auto-hint, TEXTAREA.auto-hint').focus(function(){
|
||||
$('INPUT.auto-hint, TEXTAREA.auto-hint').on("focus",function(){
|
||||
if($(this).val() == $(this).attr('title')){
|
||||
$(this).val('');
|
||||
$(this).removeClass('auto-hint');
|
||||
}
|
||||
});
|
||||
$('INPUT.auto-hint, TEXTAREA.auto-hint').blur(function(){
|
||||
$('INPUT.auto-hint, TEXTAREA.auto-hint').on("blur",function(){
|
||||
if($(this).val() == '' && $(this).attr('title') != ''){
|
||||
$(this).val($(this).attr('title'));
|
||||
$(this).addClass('auto-hint');
|
||||
@ -377,13 +377,14 @@
|
||||
if($(this).val() == ''){ $(this).val($(this).attr('title')); }
|
||||
else { $(this).removeClass('auto-hint'); }
|
||||
});
|
||||
$( '#explain tbody tr td.u a' ).click( function(e) {
|
||||
$( '#explain tbody tr td.u a' ).on("click",function(e) {
|
||||
e.stopPropagation();
|
||||
return true;
|
||||
});
|
||||
var form=$('#new-explain');
|
||||
if ( form.size() ) {
|
||||
form.find('#plan').keypress( function( e ) {
|
||||
//.size() was deprecated in favor of .length() from version 3
|
||||
if ( form.length ) {
|
||||
form.find('#plan').on("keypress",function( e ) {
|
||||
if ( e.ctrlKey && ( e.keyCode === 10 || e.keyCode === 13 ) ) {
|
||||
e.preventDefault();
|
||||
form.submit();
|
||||
@ -395,7 +396,7 @@
|
||||
var pass2 = $('.password2');
|
||||
var lr_button_text = $('#login-button span');
|
||||
var is_reg_check = $('#is_registration');
|
||||
is_reg_check.change(function(e) {
|
||||
is_reg_check.on("change",function(e) {
|
||||
if (this.checked) {
|
||||
pass2.show();
|
||||
lr_button_text.text( 'Register');
|
||||
@ -409,3 +410,4 @@
|
||||
});
|
||||
|
||||
} )( jQuery );
|
||||
|
||||
|
2
public/js/jquery-3.7.1.min.js
vendored
Normal file
2
public/js/jquery-3.7.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -18,7 +18,7 @@
|
||||
|
||||
</script>
|
||||
<![endif]-->
|
||||
<script src="<%= url_for '/' %>js/jquery-1.5.1.min.js?v=20201105"></script>
|
||||
<script src="<%= url_for '/' %>js/jquery-3.7.1.min.js"></script>
|
||||
<script src="<%= url_for '/' %>js/jquery.cookie.min.js?v=20201105"></script>
|
||||
<script src="<%= url_for '/' %>js/explain.js?v=20210608"></script>
|
||||
% my $route = stash('route') || current_route;
|
||||
|
Reference in New Issue
Block a user