Plugin Directory

Changeset 1379537


Ignore:
Timestamp:
03/26/2016 07:50:13 PM (10 years ago)
Author:
nuagelab
Message:

Version 1.1.28:

  • Made "Add New" links point to site until flipbooks can be created from WordPress.
Location:
ezflippr/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ezflippr/trunk/ezflippr.php

    r1359256 r1379537  
    44* Plugin URI: http://www.nuagelab.com/wordpress-plugins/ezflippr
    55* Description: Adds rich flipbooks made from PDF through ezFlippr.com
    6 * Version: 1.1.27
     6* Version: 1.1.28
    77* Author: NuageLab <wordpress-plugins@nuagelab.com>
    88* Author URI: http://www.nuagelab.com/wordpress-plugins
  • ezflippr/trunk/readme.txt

    r1359256 r1379537  
    8989
    9090== Changelog ==
     91= 1.1.28 =
     92* Made "Add New" links point to site until flipbooks can be created from WordPress.
     93
    9194= 1.1.27 =
    9295* Fix bug with PDF download.
  • ezflippr/trunk/resources/js/ezflippr.js

    r1348375 r1379537  
    11(function($){
    22    $(document).ready(function(){
     3        // Replace add new links
     4        var lang = String($('body').attr('lang')).substr(0,2);
     5        var addLink = 'https://ezflippr.com';
     6        switch (lang) {
     7            case 'fr':
     8            case 'es':
     9                addLink += '/'+lang;
     10                break;
     11        }
     12        $('a').each(function(){
     13            var href = String($(this).attr('href'));
     14            // http://wordpress-demo.localhost/wp-admin/post-new.php?post_type=ezflippr_flipbook
     15            if (href.match(/post_type=ezflippr_flipbook/)) {
     16                $(this).attr('href', addLink);
     17                $(this).attr('target', '_blank');
     18            }
     19        });
     20
     21        // Have key/don't have key fields
    322        $("input[name='ezflippr-field-havekey']").change(function(){
    423            var showEmail   = $('#ezflippr-field-havekey-no:checked,#ezflippr-field-havekey-forgot:checked').length > 0;
     
    1938        $("#tr-key").hide();
    2039
    21 
     40        // Install / Uninstall / Reinstall
    2241        $('.ez-btn-install,.ez-btn-reinstall,.ez-btn-uninstall').click(function(ev) {
    2342            ev.preventDefault();
Note: See TracChangeset for help on using the changeset viewer.