Changeset 995:ffd146bbe114
- Timestamp:
- 11/12/12 14:33:46 (13 years ago)
- Branch:
- default
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_posts_list.js
r740 r995 69 69 70 70 $(function() { 71 // Entry type switcher 72 $('#type').change(function() { 73 this.form.submit(); 74 }); 75 71 76 $('#form-entries tr.line').each(function() { 72 77 dotclear.postExpander(this); -
admin/popup_posts.php
r557 r995 15 15 dcPage::check('usage,contentadmin'); 16 16 17 $query_string = ''; 17 18 $q = !empty($_GET['q']) ? $_GET['q'] : null; 18 19 19 20 $page = !empty($_GET['page']) ? (integer) $_GET['page'] : 1; 20 21 $nb_per_page = 10; 22 23 $post_types = $core->getPostTypes(); 24 foreach ($post_types as $k => $v) { 25 $type_combo[__($k)] = (string) $k; 26 } 27 $type = !empty($_POST['type']) ? $_POST['type'] : null; 28 if (!$type && $q) { 29 // Cope with search form 30 $type = !empty($_GET['type']) ? $_GET['type'] : null; 31 } 32 if (!in_array($type, $type_combo)) { 33 $type = null; 34 } 21 35 22 36 $params = array(); … … 29 43 } 30 44 45 if ($type) { 46 $params['post_type'] = $type; 47 } 48 31 49 dcPage::openPopup(__('Add a link to an entry'), 32 50 dcPage::jsLoad('js/_posts_list.js'). … … 35 53 echo '<h2 class="page-title">'.__('Add a link to an entry').'</h2>'; 36 54 55 echo '<form action="popup_posts.php" method="post">'. 56 '<p><label for"type" class="classic">'.__('Entry type:').' '.form::combo('type',$type_combo,$type).'</label></p>'. 57 $core->formNonce(). 58 '<noscript><div><input type="submit" value="'.__('Ok').'" /></div></noscript>'. 59 '</form>'; 60 37 61 echo '<form action="popup_posts.php" method="get">'. 38 '<p><label for="q" class="classic">'.__('Search entry:').' '.form::field('q',30,255,html::escapeHTML($q)).'</label> '. 39 ' <input type="submit" value="'.__('Search').'" /></p>'. 40 '</form>'; 62 '<p><label for="q" class="classic">'.__('Search entry:').' '.form::field('q',30,255,html::escapeHTML($q)).'</label> '. 63 ' <input type="submit" value="'.__('Search').'" /></p>'. 64 form::hidden('type',html::escapeHTML($type)). 65 '</form>'; 41 66 42 67 try { -
locales/fr/main.po
r988 r995 1532 1532 1533 1533 msgid "Add a link to an entry" 1534 msgstr "Ajouter un lien vers un billet"1534 msgstr "Ajouter un lien vers une entrée" 1535 1535 1536 1536 msgid "Search entry:" 1537 msgstr "Rechercher un billet :" 1537 msgstr "Rechercher une entrée :" 1538 1539 msgid "Entry type:" 1540 msgstr "Type d'entrées :" 1541 1542 msgid "post" 1543 msgstr "billet" 1538 1544 1539 1545 msgid "Search" … … 2319 2325 2320 2326 msgid "Link to an entry" 2321 msgstr "Lien vers un billet"2327 msgstr "Lien vers une entrée" 2322 2328 2323 2329 msgid "Activate enhanced uploader" -
locales/fr/plugins.po
r994 r995 1273 1273 msgstr "Si coché cette page sera active mais non listée dans le widget Pages." 1274 1274 1275 msgid "page" 1276 msgstr "page" 1277 1275 1278 msgid "Pings" 1276 1279 msgstr "Signalements"
Note: See TracChangeset
for help on using the changeset viewer.