Changeset 3333:11107ba2fc59 for admin
- Timestamp:
- 09/01/16 12:21:43 (9 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jquery/jquery.pageTabs.js
r2479 r3333 1 1 (function($) { 2 2 'use strict'; 3 3 4 4 $.pageTabs = function(start_tab, opts) { 5 5 var defaults = { … … 10 10 idTabPrefix: 'part-tabs-' 11 11 }; 12 12 13 13 $.pageTabs.options = $.extend({}, defaults, opts); 14 14 var active_tab = start_tab || ''; 15 15 var hash = $.pageTabs.getLocationHash(); 16 var subhash = $.pageTabs.getLocationSubhash(); 16 17 17 18 if (hash !== undefined && hash) { … … 23 24 24 25 createTabs(); 25 26 26 27 $('ul li', '.'+$.pageTabs.options.containerClass).click(function(e) { 27 28 if ($(this).hasClass($.pageTabs.options.activeClass)) { … … 40 41 part_to_activate.addClass('loaded'); 41 42 } 42 43 43 44 part_to_activate.tabload(); 44 45 }); … … 49 50 50 51 $.pageTabs.clickTab(active_tab); 51 52 53 if (subhash !== undefined) { 54 // Tab displayed, now scroll to the sub-part if defined in original document.location (#tab.sub-part) 55 document.getElementById(subhash).scrollIntoView(); 56 } 57 52 58 return this; 53 59 }; 54 60 55 61 var createTabs = function createTabs() { 56 62 var lis = [], li_class = ''; 57 63 58 64 $('.'+$.pageTabs.options.contentClass).each(function() { 59 65 $(this).hide(); … … 62 68 $(this).attr('id', $.pageTabs.options.partPrefix + $(this).attr('id')).prop('title',''); 63 69 }); 64 70 65 71 $('<div class="'+$.pageTabs.options.containerClass+'"><ul>'+lis.join('')+'</ul></div>') 66 72 .insertBefore($('.'+$.pageTabs.options.contentClass).get(0)); 67 73 }; 68 74 69 75 var getHash = function getHash(href) { 70 76 var href = href || ''; … … 72 78 return href.replace(/.*#/, ''); 73 79 }; 74 80 75 81 $.pageTabs.clickTab = function(tab) { 76 82 if (tab=='') { … … 96 102 97 103 $.pageTabs.getLocationHash = function() { 98 return getHash(document.location.hash); 104 // Return the URL hash (without subhash — #hash[.subhash]) 105 var h = getHash(document.location.hash).split('.'); 106 return h[0]; 107 }; 108 $.pageTabs.getLocationSubhash = function() { 109 // Return the URL subhash if present (without hash — #hash[.subhash]) 110 var sh = getHash(document.location.hash).split('.'); 111 return sh[1]; 99 112 }; 100 113 })(jQuery); -
admin/plugin.php
r2708 r3333 78 78 call_user_func($open_f,$p_title,$p_head); 79 79 echo $p_content; 80 if (!$popup) { 81 // Add direct links to plugin settings if any 82 $settings = adminModulesList::getSettingsUrls($core,$p,true,false); 83 if (!empty($settings)) { 84 echo '<hr class="clear"/><p class="right modules">'.implode(' - ',$settings).'</p>'; 85 } 86 } 80 87 call_user_func($close_f); 81 88 } -
admin/preferences.php
r3330 r3333 490 490 echo 491 491 '<div class="fieldset">'. 492 '<h4 >'.__('Interface').'</h4>'.492 '<h4 id="user_options_interface">'.__('Interface').'</h4>'. 493 493 494 494 '<p><label for="user_ui_enhanceduploader" class="classic">'. … … 524 524 echo 525 525 '<div class="fieldset">'. 526 '<h4 >'.__('Optional columns displayed in lists').'</h4>';526 '<h4 id="user_options_columns">'.__('Optional columns displayed in lists').'</h4>'; 527 527 $odd = true; 528 528 foreach ($cols as $col_type => $col_list) { … … 541 541 echo 542 542 '<div class="fieldset">'. 543 '<h4 >'.__('Edition').'</h4>';543 '<h4 id="user_options_edition">'.__('Edition').'</h4>'; 544 544 545 545 echo '<div class="two-boxes odd">';
Note: See TracChangeset
for help on using the changeset viewer.