Changeset 1714
- Timestamp:
- 05/21/07 08:51:36 (16 months ago)
- Location:
- trunk/gregarius
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/feed.php
r1671 r1714 1368 1368 define ('MARK_READ_FEED_FORM',$cid); 1369 1369 } 1370 echo "\n\n<form action=\"". getPath() ."feed.php\" method=\"post\">\n"1370 echo "\n\n<form class=\"markReadForm\" action=\"". getPath() ."feed.php\" method=\"post\">\n" 1371 1371 ."\t<p><input id=\"_markReadButton\" type=\"submit\" name=\"action\" accesskey=\"m\" value=\"". __('Mark These Items as Read') ."\"/>\n" 1372 1372 ."\t<input type=\"hidden\" name=\"metaaction\" value=\"ACT_MARK_CHANNEL_READ\"/>\n" … … 1384 1384 define ('MARK_READ_FOLDER_FORM',$fid); 1385 1385 } 1386 echo "\n\n<form action=\"". getPath() ."feed.php\" method=\"post\">\n"1386 echo "\n\n<form class=\"markReadForm\" action=\"". getPath() ."feed.php\" method=\"post\">\n" 1387 1387 ."\t<p><input id=\"_markReadButton\" type=\"submit\" name=\"action\" accesskey=\"m\" value=\"". __('Mark These Items as Read') ."\"/>\n" 1388 1388 ."\t<input type=\"hidden\" name=\"metaaction\" value=\"ACT_MARK_FOLDER_READ\"/>\n" … … 1401 1401 define ('MARK_READ_VFOLDER_FORM',$vfid); 1402 1402 } 1403 echo "\n\n<form action=\"". getPath() ."feed.php\" method=\"post\">\n"1403 echo "\n\n<form class=\"markReadForm\" action=\"". getPath() ."feed.php\" method=\"post\">\n" 1404 1404 ."\t<p><input id=\"_markReadButton\" type=\"submit\" name=\"action\" accesskey=\"m\" value=\"". __('Mark These Items as Read') ."\"/>\n" 1405 1405 ."\t<input type=\"hidden\" name=\"metaaction\" value=\"ACT_MARK_VFOLDER_READ\"/>\n" -
trunk/gregarius/index.php
r1704 r1714 231 231 } 232 232 233 echo "<form action=\"". getPath() ."\" method=\"post\">\n"233 echo "<form class=\"markReadForm\" action=\"". getPath() ."\" method=\"post\">\n" 234 234 ."<p><input accesskey=\"m\" type=\"submit\" name=\"action\" value=\"". __('Mark These Items as Read') ." \"/></p>\n" 235 235 ."<p><input type=\"hidden\" name=\"metaaction\" value=\"ACT_MARK_READ\"/>\n" -
trunk/gregarius/plugins/keyboardnavigation.php
r1713 r1714 24 24 25 25 /// Name: Keyboard naviation 26 /// Author: Marco Bonetti 26 /// Author: Marco Bonetti & Chris J. Friesen 27 27 /// Description: Navigate between items without using your mouse. 28 28 /// Version: 0.4 … … 57 57 '__kbnav_ToggleFlag' => 'Toggle Flagged state of the current item', 58 58 '__kbnav_NextMarkRead' => 'Mark current item as read, move to the next one', 59 '__kbnav_MarkAllRead' => 'Mark all shown items as read', 59 60 '__kbnav_ScrollTop' => 'Scroll to the top of the window', 60 61 '__kbnav_ToggleCollapse' => 'In the Lilina theme, toggle the collapsed state of the current item', … … 73 74 if (!isset($kmap['__kbnav_ToggleFlag']['key'])) {$kmap['__kbnav_ToggleFlag']['key'] = 'f';} 74 75 if (!isset($kmap['__kbnav_NextMarkRead']['key'])) {$kmap['__kbnav_NextMarkRead']['key'] = 'm';} 76 if (!isset($kmap['__kbnav_MarkAllRead']['key'])) { 77 $kmap['__kbnav_MarkAllRead']['key'] = 'm'; 78 $kmap['__kbnav_MarkAllRead']['modifier'] = 'shift'; 79 } 75 80 if (!isset($kmap['__kbnav_ScrollTop']['key'])) {$kmap['__kbnav_ScrollTop']['key'] = 'h';} 76 81 if (!isset($kmap['__kbnav_ToggleCollapse']['key'])) {$kmap['__kbnav_ToggleCollapse']['key'] = 'c';} … … 342 347 return false; 343 348 } 349 function __kbnav_MarkAllRead() { 350 var forms = document.getElementsByTagName('form'); 351 for(var i=0;i<forms.length;i++) { 352 if (forms[i].className == 'markReadForm') { 353 forms[i].submit(); 354 break; 355 } 356 } 357 return false; 358 } 344 359 345 360 <?php
