Plugin Directory

Changeset 1231747


Ignore:
Timestamp:
08/27/2015 07:03:48 AM (11 years ago)
Author:
mojwp
Message:

bug fix

Location:
scode-by-mojwp/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • scode-by-mojwp/trunk/assets/css/admin-style.css

    r1219123 r1231747  
    153153
    154154.hidden {
    155     display: none !important;
     155    display: none;
    156156}
    157157
  • scode-by-mojwp/trunk/assets/js/jquery.scode.js

    r1186666 r1231747  
    8787                progressIcon.addClass('hidden');
    8888               
    89                 setTimeout("window.location.reload()", 1500);
     89                setTimeout("window.location.reload()", 300);
    9090            } else {
    9191                if (data.error) pResult.addClass('error').text(data.error); else pResult.addClass('error').text('Unknown error, please contact the plugin developers...');
     
    202202                pResult.addClass('success').text(data.success);
    203203                progressIcon.addClass('hidden');
    204                 setTimeout("window.location.reload()", 1500);
     204                setTimeout("window.location.reload()", 300);
    205205            } else {
    206206                if (data.error) pResult.addClass('error').text(data.error); else pResult.addClass('error').text('Unknown error, please contact the plugin developers...');
     
    212212        return false;
    213213    });
     214
     215    $('#scode-shortcodes-table div.row-title').click(function() {
     216        var e=this;
     217        if (window.getSelection) {
     218            var s = window.getSelection();
     219            if (s.setBaseAndExtent) {
     220                s.setBaseAndExtent(e,0,e,e.innerText.length-1);
     221            } else {
     222                var r = document.createRange();
     223                r.selectNodeContents(e);
     224                s.removeAllRanges();
     225                s.addRange(r);
     226            }
     227        } else if (document.getSelection) {
     228            var s = document.getSelection();
     229            var r = document.createRange();
     230            r.selectNodeContents(e);
     231            s.removeAllRanges();
     232            s.addRange(r);
     233        } else if (document.selection) {
     234            var r = document.body.createTextRange();
     235            r.moveToElementText(e);
     236            r.select();
     237        }
     238    });
    214239   
    215240});
  • scode-by-mojwp/trunk/includes/admin.php

    r1219123 r1231747  
    114114            <br class="clear">
    115115        </div>
    116         <table class="wp-list-table widefat fixed posts">
     116        <table id="scode-shortcodes-table" class="wp-list-table widefat fixed posts">
    117117            <thead>
    118118                <tr>
  • scode-by-mojwp/trunk/languages/scode-ru_RU.po

    r1180078 r1231747  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: sCode 1.0\n"
    4 "POT-Creation-Date: 2015-06-09 09:25+0200\n"
    5 "PO-Revision-Date: 2015-06-09 09:34+0200\n"
     3"Project-Id-Version: sCode 1.1.3\n"
     4"POT-Creation-Date: 2015-08-27 09:32+0300\n"
     5"PO-Revision-Date: 2015-08-27 09:33+0300\n"
    66"Last-Translator: mojWP <admin@mojwp.ru>\n"
    77"Language-Team: mojWP <admin@mojwp.ru>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 1.8\n"
    13 "X-Poedit-Basepath: ..\\\n"
     12"X-Generator: Poedit 1.8.4\n"
     13"X-Poedit-Basepath: ..\n"
    1414"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
    1515"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
     
    1818"X-Poedit-SearchPath-0: .\n"
    1919
    20 #: includes/admin.php:19 includes/admin.php:42
     20#: includes/admin.php:22 includes/admin.php:91
    2121msgid "Shortcodes sCode"
    2222msgstr "Шорткоды sCode"
    2323
    24 #: includes/admin.php:20
     24#: includes/admin.php:23 includes/global.php:15
    2525msgid "My shortcodes"
    2626msgstr "Мои шорткоды"
    2727
    28 #: includes/admin.php:21 includes/admin.php:27
     28#: includes/admin.php:24 includes/admin.php:32
    2929msgid "Instruction"
    3030msgstr "Инструкция"
    3131
    32 #: includes/admin.php:43
     32#: includes/admin.php:92
    3333msgid "Add new shortcode"
    3434msgstr "Добавить новый шорткод"
    3535
    36 #: includes/admin.php:48 includes/admin.php:60
     36#: includes/admin.php:97 includes/admin.php:109
    3737msgid "Group Filter"
    3838msgstr "Фильтр по группе"
    3939
    40 #: includes/admin.php:50
     40#: includes/admin.php:99
    4141msgid "All groups"
    4242msgstr "Все группы"
    4343
    44 #: includes/admin.php:70 includes/admin.php:78 includes/admin.php:115
    45 #: includes/admin.php:167
     44#: includes/admin.php:119 includes/admin.php:127 includes/admin.php:164
     45#: includes/admin.php:229
    4646msgid "Shortcode"
    4747msgstr "Шорткод"
    4848
    49 #: includes/admin.php:71 includes/admin.php:79 includes/admin.php:145
    50 #: includes/admin.php:189
     49#: includes/admin.php:120 includes/admin.php:128 includes/admin.php:207
     50#: includes/admin.php:264
    5151msgid "Description"
    5252msgstr "Описание"
    5353
    54 #: includes/admin.php:72 includes/admin.php:80 includes/admin.php:119
    55 #: includes/admin.php:171
     54#: includes/admin.php:121 includes/admin.php:129 includes/admin.php:168
     55#: includes/admin.php:233
    5656msgid "Value"
    5757msgstr "Значение"
    5858
    59 #: includes/admin.php:73 includes/admin.php:81
     59#: includes/admin.php:122 includes/admin.php:130
    6060msgid "Group"
    6161msgstr "Группа"
    6262
    63 #: includes/admin.php:95
     63#: includes/admin.php:144
    6464msgid "Edit this shortcode"
    6565msgstr "Редактировать этот шорткод"
    6666
    67 #: includes/admin.php:95
     67#: includes/admin.php:144
    6868msgid "Edit"
    6969msgstr "Изменить"
    7070
    71 #: includes/admin.php:95
     71#: includes/admin.php:144
    7272msgid "Remove shortcode"
    7373msgstr "Удалить шорткод"
    7474
    75 #: includes/admin.php:95
     75#: includes/admin.php:144
    7676msgid "Remove"
    7777msgstr "Удалить"
    7878
    79 #: includes/admin.php:104
     79#: includes/admin.php:153
    8080msgid "Shortcodes not found."
    8181msgstr "Шорткодов не найдено."
    8282
    83 #: includes/admin.php:111
     83#: includes/admin.php:160
    8484msgid "Add shortcode"
    8585msgstr "Добавить шорткод"
    8686
    87 #: includes/admin.php:125 includes/admin.php:140 includes/admin.php:176
     87#: includes/admin.php:187 includes/admin.php:202 includes/admin.php:251
    8888msgid "New Group"
    8989msgstr "Новая группа"
    9090
    91 #: includes/admin.php:129 includes/admin.php:180
     91#: includes/admin.php:191 includes/admin.php:255
    9292msgid "or existing"
    9393msgstr "или существующая"
    9494
    95 #: includes/admin.php:131
     95#: includes/admin.php:193
    9696msgid "Select a group"
    9797msgstr "Выберите группу"
    9898
    99 #: includes/admin.php:154
     99#: includes/admin.php:216
    100100msgid "Add!"
    101101msgstr "Добавить!"
    102102
    103 #: includes/admin.php:161
     103#: includes/admin.php:223
    104104msgid "Editing shortcode"
    105105msgstr "Редактирование шорткода"
    106106
    107 #: includes/admin.php:198
     107#: includes/admin.php:273
    108108msgid "Edit!"
    109109msgstr "Изменить!"
     
    201201msgstr "шорткодов"
    202202
     203#: scode.php:18
     204msgid "Easy way to creat and manage shortcode from Admin panel site."
     205msgstr "Создавайте и управляйте шорткодами прямо из админки сайта."
     206
    203207#~ msgid ""
    204208#~ "Shortcode must consist only of digits 0-9, the letters az a-Z, dots and "
  • scode-by-mojwp/trunk/readme.txt

    r1219123 r1231747  
    33Tags: AJAX, shortcode, shortcodes, tabs, Post, posts, image, seo, page, pages, widget, CSS, editor, shortlinks, filter, price, admin
    44Requires at least: 4.0
    5 Tested up to: 4.2.4
     5Tested up to: 4.3
    66Stable tag: trunk
    77
     
    7979== Changelog ==
    8080
     81= 1.1.3 =
     82* Bug fix
     83* Selection shortcode in one click
     84
    8185= 1.1.2 =
    8286Add link "My shordcodes" to Admin Bar
  • scode-by-mojwp/trunk/scode.php

    r1219123 r1231747  
    33    Plugin Name: sCode by mojWP
    44    Plugin URI: http://mojwp.ru/
    5     Description: Easy way to creat and manage shortcode from Admin panel site. Создавайте и управляйте шорткодами прямо из админки сайта.
     5    Description: Easy way to creat and manage shortcode from Admin panel site.
    66    Author: mojWP
    7     Version: 1.1.2
     7    Version: 1.1.3
    88    Author URI: http://mojwp.ru/
    99    Text Domain: scode
     
    1717}
    1818
    19 define('SCODE_VERSION', '1.1.2');
     19define('SCODE_VERSION', '1.1.3');
    2020define('SCODE_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2121define('SCODE_PLUGIN_URL', plugin_dir_url(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.