Plugin Directory

Changeset 2054404


Ignore:
Timestamp:
03/21/2019 05:02:15 AM (7 years ago)
Author:
yoprogramo
Message:

Fix jQuery problem in admin

Location:
nomorepass-forget-your-passwords/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nomorepass-forget-your-passwords/trunk/nomorepass.php

    r1916266 r2054404  
    55Description: Plugin to allow login using NoMorePass app
    66Author: Jose A. Espinosa
    7 Version: 1.9.0
     7Version: 1.9.1
    88Author URI: https://www.yoprogramo.com
    99Text Domain: nomorepass
     
    3434
    3535function nomorepass_load_scripts_admin() {
    36     wp_register_script('nomorepass_admin_script', plugins_url('public/js/admin.js', __FILE__));
     36    wp_register_script('nomorepass_admin_script', plugins_url('public/js/admin.js', __FILE__),array('jquery'));
    3737    wp_enqueue_media();
    3838    wp_enqueue_script('nomorepass_admin_script');
  • nomorepass-forget-your-passwords/trunk/public/js/admin.js

    r1916268 r2054404  
    11// The "Upload" button
    2 $(document).ready(function() {
    3     $('.upload_image_button').click(function() {
     2jQuery(document).ready(function() {
     3    jQuery('.upload_image_button').click(function() {
    44        var send_attachment_bkp = wp.media.editor.send.attachment;
    5         var button = $(this);
     5        var button = jQuery(this);
    66        wp.media.editor.send.attachment = function(props, attachment) {
    7             $(button).parent().prev().attr('src', attachment.url);
    8             $(button).prev().val(attachment.id);
     7            jQuery(button).parent().prev().attr('src', attachment.url);
     8            jQuery(button).prev().val(attachment.id);
    99            wp.media.editor.send.attachment = send_attachment_bkp;
    1010        }
     
    1414   
    1515    // The "Remove" button (remove the value from input type='hidden')
    16     $('.remove_image_button').click(function() {
     16    jQuery('.remove_image_button').click(function() {
    1717        var answer = confirm('Are you sure?');
    1818        if (answer == true) {
    19             var src = $(this).parent().prev().attr('data-src');
    20             $(this).parent().prev().attr('src', src);
    21             $(this).prev().prev().val('');
     19            var src = jQuery(this).parent().prev().attr('data-src');
     20            jQuery(this).parent().prev().attr('src', src);
     21            jQuery(this).prev().prev().val('');
    2222        }
    2323        return false;
  • nomorepass-forget-your-passwords/trunk/readme.txt

    r1989620 r2054404  
    22Contributors: biblioeteca
    33Donate link: https://www.biblioeteca.com/biblioeteca.web/dona
    4 Tags: password, login, nomorepass, wordpress login, wp login form, wp-login, clef, two-factor, clef replacement, password manager, safe login, qr login
     4Tags: password, login, nomorepass, wordpress login, wp login form, wp-login, two-factor, password manager, safe login, qr login, mobile
    55Requires at least: 3.5
    6 Tested up to: 5.0
    7 Stable tag: 1.9.0
     6Tested up to: 5.1.1
     7Stable tag: 1.9.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    43431. etc.
    4444
    45 <strong>Perfect replacement for two-factor authentication plugin Clef</strong>.
     45<strong>Perfect replacement for old two-factor authentication plugin Clef</strong>.
    4646
    4747== Installation ==
     
    120120== Changelog ==
    121121
     122= 1.9.1 =
     123* Fixed error is no other plugin is using jquery in admin page
     124
    122125= 1.9.0 =
    123126* Allows custom modifications of text
Note: See TracChangeset for help on using the changeset viewer.