Changeset 1385
- Timestamp:
- 03/04/07 18:33:53 (2 years ago)
- Files:
-
- feedmelinks/folder-as-xml.php (modified) (1 diff)
- feedmelinks/folder.php (modified) (4 diffs)
- feedmelinks/modules/tag-list-header.inc.php (modified) (1 diff)
- feedmelinks/script/bulk-management.js (modified) (1 diff)
- feedmelinks/script/taglist_toggle.js (modified) (2 diffs)
- feedmelinks/style/main.css (modified) (4 diffs)
- feedmelinks/style/taglist_toggle.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/folder-as-xml.php
r889 r1385 45 45 <% 46 46 } else 47 $error = " no tag by that ID, or it's owned by someone else";47 $error = "No tag by that ID, or it's owned by someone else"; 48 48 conClose( $con_xmlFolder ); 49 49 } else feedmelinks/folder.php
r1382 r1385 34 34 $id = $folder; 35 35 $unfiled = ($folder == "unfiled" ? true : false); 36 $ fName = getNameForFolder( $id );36 $tag_name = getNameForFolder( $id ); 37 37 if( $folder != "unfiled" ) { 38 38 $public = isPublicFolder( $id ) ? "1" : "0"; … … 172 172 } 173 173 if( $owned || $public ) 174 $title = "$owner’s links " . getCatPast() . " with '$ fName'";174 $title = "$owner’s links " . getCatPast() . " with '$tag_name'"; 175 175 else 176 176 $title = "(a private " . getCatName() . ")"; … … 224 224 <script language="javascript" type="text/javascript" src="/script/bulk-management.js"></script> 225 225 <form method="post" action="/action" name="folderForm"> 226 (<a href="/edit-folder?op=edit&id=<?= $id ?>&name=<?= urlencode( $ fName ) ?>&options=">click to rename '<?= $fName ?>' or change its privacy settings</a>)226 (<a href="/edit-folder?op=edit&id=<?= $id ?>&name=<?= urlencode( $tag_name ) ?>&options=">click to rename '<?= $tag_name ?>' or change its privacy settings</a>) 227 227 <p /> 228 228 … … 283 283 if( !$condensed ) { ?> 284 284 <div style='float: right'> 285 <small> select all:</small><input style="margin-bottom: -1px;" type="checkbox" name="selectAll" onChange="selectAllLinks(document.forms.folderForm);"/> 285 <small> select all:</small><input id="select_all_links_button" style="margin-bottom: -1px;" type="checkbox" name="selectAll" 286 onChange="selectAllLinks(document.forms.folderForm);"/> 286 287 </div> 287 288 <?php } ?> feedmelinks/modules/tag-list-header.inc.php
r1382 r1385 1 <script type="text/javascript" src="/script/mootools.v1.00.js"></script> 2 <script type="text/javascript" src="/script/taglist_toggle.js"></script> 3 <link rel="stylesheet" href="/style/taglist_toggle.css" type="text/css" media="screen" /> 4 5 <div> 6 7 <div id="batch_ops_header"> 8 <div id="batch_ops_header_content" style="display:none"> 9 <div class="header">Manage my links:</div> 10 <p> 11 Here you can do things in bunches: delete links, publicize / privatize links, add tags — stuff like that.<br/> 12 To get started, just click the checkboxes of the links you want to change, or click "Select All".<br/> 13 Need help? Try the <a href="/FAQ"><abbr title="Frequently Asked Questions">FAQ</abbr> (Frequently Asked Questions)</a>. 14 </p> 15 1 16 <?php 2 17 if( $owned && !$condensed) { ?> 3 18 <!-- start row --> 4 <div id="taglist_header" class="r1">5 19 6 <div class="header"> 7 Batch actions: 8 </div> 9 <div class="button_group"> 10 Make selected links: 11 <input class="medbutton" type="button" name="makePublicButton" value="Public" 12 onClick="publicizeSelected()"/> 13 / 14 <input class="medbutton" type="button" name="makePrivateButton" value="Private" 15 onClick="privatizeSelected()"/> 20 <div> 21 <input class="medbutton" type="button" name="makePublicButton" value="Make Selected Links Public" 22 onClick="publicizeSelected()"/> 23 24 <input class="medbutton" type="button" name="makePrivateButton" value="Make Selected Links Private" 25 onClick="privatizeSelected()"/> 26 27 <input class="medbutton" type="button" name="deleteButton" value="Delete Selected Links" 28 onClick="deleteSelected()"/> 29 30 <input class="medbutton" type="button" name="untagButton" value=""Un-tag" Selected Links" 31 onClick="untagSelected()"/> 32 </div> 16 33 17 18 Or: 19 20 <input class="medbutton" type="button" name="deleteButton" value="Delete selected" 21 onClick="deleteSelected()"/> 34 <div id="batch_separator"/> 35 <br clear="all"/> 22 36 23 <input class="medbutton" type="button" name="untagButton" value="Un-tag selected" 24 onClick="untagSelected()"/> 25 </div> 26 <br clear="all"/> 27 <br /> 28 29 <div id="re_tag_menu"> 30 Add <?= ucfirst( getCatVerb()) ?>s: 31 <select name="newFolderID"> 32 <?php 33 include( "$modules/folder-menu.inc.php" ); 34 ?> 35 </select> 36 <input type="hidden" name="op" value="tag" /> 37 <input type="hidden" name="debug" value="<?= $debug ?>" /> 38 <input type="hidden" name="folderID" value="<?= $folder ?>" /> 39 <input class="medbutton" type="button" name="tagButton" value="<?= ucfirst( getCatVerb()) ?>" onClick="tagSelected()"/> 40 </div> 41 </div> 37 <div> 38 <span class="header">Add <?= ucfirst( getCatVerb()) ?>s: </span> 39 <select name="newFolderID"> 40 <?php 41 include( "$modules/folder-menu.inc.php" ); 42 ?> 43 </select> 44 <input type="hidden" name="op" value="tag" /> 45 <input type="hidden" name="debug" value="<?= $debug ?>" /> 46 <input type="hidden" name="folderID" value="<?= $folder ?>" /> 47 <input class="medbutton" type="button" name="tagButton" value="<?= ucfirst( getCatVerb()) ?>" onClick="tagSelected()"/> 48 </div> 42 49 43 50 <?php 44 51 } 45 52 ?> 53 54 </div> 55 56 </div> 57 <div id="batch_ops_button" class="batch_ops_button textbutton">Manage My Links</div> 58 <br clear="all"/> 59 60 </div> 61 feedmelinks/script/bulk-management.js
r1351 r1385 47 47 48 48 function selectAllLinks( argForm, snuff ) { 49 //if( ! batch_open ) 50 //toggle_batch_ops_fn(); 51 49 52 // FIXME: for admin bulk snuffing 50 53 // f.elements[i].name.match( /snuff_user_/ )) feedmelinks/script/taglist_toggle.js
r1382 r1385 1 1 /* built by code repurposed from Bas Wenneker of solutoire.com; his site rules, check it out */ 2 3 // global so we can call it from othere 4 var batch_open = false; 2 5 3 6 window.onload = function(){ 4 7 var batch_ops_button = $('batch_ops_button'); 8 var checkbox = $('select_all_links_button'); 5 9 var content = $('batch_ops_header_content'); 6 10 var toggle_batch_ops_trans = new Fx.Style('batch_ops_header_content', 'height',{duration: 500}); 7 11 8 12 //add onclick event listener to toggle 9 batch_ops_button.addEvent('click', function(){ 13 function toggle_batch_ops_fn() { 14 batch_open = ! batch_open; 10 15 if(content.getStyle('height').toInt() > 0) { 11 16 toggle_batch_ops_trans.start(0); //hide … … 16 21 batch_ops_button.toggleClass('batch_ops_button_'); 17 22 return false; 18 }); 23 } 24 function open_batch_ops_if_necessary_fn() { 25 if( ! batch_open ) 26 toggle_batch_ops_fn(); 27 } 28 batch_ops_button.addEvent('click', toggle_batch_ops_fn ); 29 checkbox.addEvent('click', open_batch_ops_if_necessary_fn ); 19 30 content.setStyle('display','block'); // needed for height transition to work 20 31 var content_height = content.getSize().scrollSize.y; feedmelinks/style/main.css
r1383 r1385 9 9 input[type=button], input[type=submit], input[type=reset] { 10 10 font-size: 10px; 11 background: #eee;12 color: #222;13 border: 1px outset #ccc;14 padding: .1em .5em;11 background: #eee; 12 color: #222; 13 border: 1px outset #ccc; 14 padding: .1em .5em; 15 15 } 16 16 input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover { 17 background: #ccb;17 background: #333; 18 18 } 19 19 input[type=button][disabled], input[type=submit][disabled], 20 20 .cancel, input[type=reset][disabled] { 21 background: #f6f6f6;22 border-style: solid;23 color: #999;21 background: #f6f6f6; 22 border-style: solid; 23 color: #999; 24 24 } 25 25 … … 104 104 105 105 a.underhot:active, .underhot:active, a.underhot:hover, .underhot:hover { 106 border-bottom: 1px dotted #black;106 border-bottom: 1px dotted black; 107 107 color: black; 108 108 text-decoration: none; … … 257 257 } 258 258 259 div.r0, div.r1 { 260 font-size: 13px; 261 } 259 262 div.r0 { 260 263 background-color: #F6F6F6; … … 426 429 /* taglist r0 and r1 rows */ 427 430 div.tl { 431 padding: 6px; 432 } 433 434 .textbutton { 435 font-weight: bold; 428 436 padding: 4px; 429 437 } feedmelinks/style/taglist_toggle.css
r1382 r1385 1 #static_taglist_header{ } 1 2 2 /* *{padding:0px; margin:0px;} */3 4 #static_taglist_header{5 background:#d3e4a5;6 }7 3 #batch_ops_header_content { 8 4 height:0px; … … 11 7 overflow:hidden; 12 8 } 9 13 10 #batch_ops_header{ 14 11 margin:0px auto; 15 padding:5px 40px; 16 background:#d3e4a5; 12 padding:5px 20px; 17 13 overflow:hidden; 18 14 } 19 #batch_ops_button { 20 display:block; 21 height:14px; 22 width:129px; 23 float:left; 24 margin-left:2px; 25 background:#d3e4a5; 26 cursor:pointer; 27 text-align:center 28 } 29 .batch_ops_button_{ 30 font-weight:bold; 31 } 32 #batch_ops_button{ 33 margin-left:40px; 15 16 #batch_ops_header_content > div.header, #batch_ops_header_content span.header { 17 font-size: 16px; 18 color: #777; 19 margin-top: 12px; 20 margin-bottom: 12px; 34 21 } 35 22 23 #batch_ops_header_content > p { 24 padding-left: 2.0em; 25 margin-bottom: 2.0em; 26 } 27 28 #batch_separator { 29 border-bottom: 1px dotted black; 30 float: center; 31 height: 1px; 32 margin-bottom: 10px; 33 padding: 5px; 34 } 35 36 #batch_ops_button { 37 font-size: 12px; 38 color: #999999; 39 display:block; 40 width: 100%; 41 float: right; 42 text-align:right; 43 cursor:pointer; 44 } 45