53
53
$ allow_reorder =true ;
54
54
}
55
55
56
- # Include function for reordering / infobox
57
- if (( $ allow_reorder && $ collection_reorder_caption ) || $ infobox || $ use_checkboxes_for_selection || $ collections_compact_style )
56
+ # Reordering capability
57
+ if ($ allow_reorder )
58
58
{
59
59
# Also check for the parameter and reorder as necessary.
60
60
$ reorder =getvalescaped ("reorder " ,false );
133
133
hook ("postchangecollection " );
134
134
}
135
135
136
+ ?>
137
+ <script src="<?php echo $ baseurl?> /lib/js/jquery-1.7.2.min.js?css_reload_key=<?php echo $ css_reload_key?> " type="text/javascript"></script>
138
+ <script src="<?php echo $ baseurl?> /lib/js/jquery-ui-1.8.20.custom.min.js?css_reload_key=<?php echo $ css_reload_key?> " type="text/javascript"></script>
139
+ <!--[if lte IE 7]><script src="<?php echo $ baseurl?> /lib/js/json2.js?css_reload_key=<?php echo $ css_reload_key?> " type="text/javascript"></script><![endif]-->
140
+ <script type="text/javascript">
141
+ jQuery.noConflict();
142
+ </script>
143
+
144
+ <?php if ($ infobox )
145
+ {
146
+ ?>
147
+ <script src="../lib/js/infobox_collection.js" type="text/javascript"></script>
148
+ <?php
149
+ }
136
150
137
151
# Include function for reordering / infobox
138
- if (( $ allow_reorder && $ collection_reorder_caption ) || $ infobox || $ use_checkboxes_for_selection || $ collections_compact_style )
152
+ if ($ allow_reorder )
139
153
{
140
154
?>
141
- <script src="<?php echo $ baseurl?> /lib/js/jquery-1.7.2.min.js?css_reload_key=<?php echo $ css_reload_key?> " type="text/javascript"></script>
142
- <script src="<?php echo $ baseurl?> /lib/js/jquery-ui-1.8.20.custom.min.js?css_reload_key=<?php echo $ css_reload_key?> " type="text/javascript"></script>
143
- <!--[if lte IE 7]><script src="<?php echo $ baseurl?> /lib/js/json2.js?css_reload_key=<?php echo $ css_reload_key?> " type="text/javascript"></script><![endif]-->
144
- <script type="text/javascript">
145
- jQuery.noConflict();
146
- </script>
147
-
148
- <script src="../lib/js/infobox_collection.js" type="text/javascript"></script>
149
155
<script type="text/javascript">
150
156
function ReorderResources(idsInOrder)
151
157
{
@@ -164,8 +170,16 @@ function ReorderResources(idsInOrder)
164
170
jQuery(document).ready(function() {
165
171
jQuery('#CollectionSpace').sortable({
166
172
items: ".CollectionPanelShell",
167
- handle: ".IconReorder",
168
- stop: function(event, ui) {
173
+
174
+ start: function (event, ui)
175
+ {
176
+ InfoBoxEnabled=false;
177
+ if (jQuery('#InfoBoxCollection')) {jQuery('#InfoBoxCollection').hide();}
178
+ },
179
+
180
+ stop: function(event, ui)
181
+ {
182
+ InfoBoxEnabled=true;
169
183
var idsInOrder = jQuery('#CollectionSpace').sortable("toArray");
170
184
ReorderResources(idsInOrder);
171
185
}
@@ -673,37 +687,33 @@ function ToggleThumbs()
673
687
<?php } ?>
674
688
675
689
<?php if ($ k =="" ) { ?> <div class="CollectionPanelInfo">
676
- <?php if (($ feedback ) || (($ collection_reorder_caption || $ collection_commenting ) && $ allow_reorder )) { ?>
690
+ <?php if (($ feedback ) || (($ collection_reorder_caption || $ collection_commenting ))) { ?>
677
691
<span class="IconComment <?php if ($ result [$ n ]["commentset " ]>0 ) { ?> IconCommentAnim<?php } ?> "><a target="main" href="collection_comment.php?ref=<?php echo $ ref?> &collection=<?php echo $ usercollection?> "><img src="../gfx/interface/sp.gif" alt="" width="14" height="12" /></a></span>
678
692
<?php } ?>
679
693
680
- <?php if ($ collection_reorder_caption && $ allow_reorder ) { ?>
681
- <div class="IconReorder" onMouseDown="InfoBoxWaiting=false;"> </div>
682
- <?php if (!hook ("replaceremovelink " )){?>
683
- <span class="IconRemove"><a href="collections.php?remove=<?php echo $ ref?> &nc=<?php echo time ()?> "><img src="../gfx/interface/sp.gif" alt="" width="14" height="12" /></a></span>
684
- <?php } //end hook replaceremovelink ?>
685
- <?php } else {
686
- if (!isset ($ cinfo ['savedsearch ' ])||(isset ($ cinfo ['savedsearch ' ])&&$ cinfo ['savedsearch ' ]==null )){ // add 'remove' link only if this is not a smart collection
694
+ <?php if (!isset ($ cinfo ['savedsearch ' ])||(isset ($ cinfo ['savedsearch ' ])&&$ cinfo ['savedsearch ' ]==null )){ // add 'remove' link only if this is not a smart collection
687
695
?>
688
696
<?php if (!hook ("replaceremovelink " )){?>
689
697
<a href="collections.php?remove=<?php echo $ ref?> &nc=<?php echo time ()?> ">x <?php echo $ lang ["action-remove " ]?> </a>
690
- <?php } //end hook replaceremovelink ?>
691
- <?php } ?>
692
- <?php } ?>
693
- </div><?php } ?>
698
+ <?php
699
+ } //end hook replaceremovelink
700
+ } # End of remove link condition
701
+ } # End of k="" condition
702
+ ?>
703
+ </div>
694
704
</div>
695
- <?php } ?>
696
705
<?php
697
- }
698
- }
706
+ } # End of ResourceView hook
707
+ } # End of loop through resources
708
+ } # End of results condition
699
709
700
- # Plugin for additional collection listings (deprecated)
701
- if (file_exists ("plugins/collection_listing.php " )) {include "plugins/collection_listing.php " ;}
710
+ # Plugin for additional collection listings (deprecated)
711
+ if (file_exists ("plugins/collection_listing.php " )) {include "plugins/collection_listing.php " ;}
702
712
703
- hook ("thumblistextra " );
704
- ?>
705
- </div>
706
- <?php
713
+ hook ("thumblistextra " );
714
+ ?>
715
+ </div>
716
+ <?php
707
717
708
718
# Add the infobox.
709
719
?>
0 commit comments