diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-07 02:15:11 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-07 02:15:11 +0000 |
commit | cb5ecaff25b858117a57ede78f353661a520c9d4 (patch) | |
tree | 205600b0f86ad858086250402bf5ca2a44b9367e /views/default/admin | |
parent | 31ad8156b107894e238f4f53ec174aa8a4c30aa4 (diff) | |
download | elgg-cb5ecaff25b858117a57ede78f353661a520c9d4.tar.gz elgg-cb5ecaff25b858117a57ede78f353661a520c9d4.tar.bz2 |
Added drag and drop reordering of plugins. Started pulling out admin area's js into elgg.admin JS object.
git-svn-id: http://code.elgg.org/elgg/trunk@8056 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin')
-rw-r--r-- | views/default/admin/components/plugin.php | 4 | ||||
-rw-r--r-- | views/default/admin/plugins/advanced.php | 48 |
2 files changed, 5 insertions, 47 deletions
diff --git a/views/default/admin/components/plugin.php b/views/default/admin/components/plugin.php index acbe42e84..229dd8c57 100644 --- a/views/default/admin/components/plugin.php +++ b/views/default/admin/components/plugin.php @@ -152,7 +152,7 @@ $license = elgg_view('output/text', array('value' => $plugin->manifest->getLicen ?> -<div class="plugin_details <?php echo $active_class ?>"> +<div id="elgg-plugin-<?php echo $plugin->guid; ?>" class="elgg-state-draggable plugin_details <?php echo $active_class ?>"> <div class="admin_plugin_reorder"> <?php echo "$links"; ?> </div><div class="clearfloat"></div> @@ -166,7 +166,7 @@ if (elgg_view_exists($settings_view)) { $settings_link = "<a class='plugin_settings small link' href='$link'>[" . elgg_echo('settings') . "]</a>"; } ?> - <h3><?php echo $plugin->manifest->getName() . " $version $settings_link"; ?></h3> + <h3 class="elgg-head"><?php echo $plugin->manifest->getName() . " $version $settings_link"; ?></h3> <div class="plugin_description"><?php echo $description; ?></div> <p class="plugin_author"><?php echo $author . ' - ' . $website; ?></p> diff --git a/views/default/admin/plugins/advanced.php b/views/default/admin/plugins/advanced.php index b83bee87f..05754e4c7 100644 --- a/views/default/admin/plugins/advanced.php +++ b/views/default/admin/plugins/advanced.php @@ -78,6 +78,8 @@ $buttons .= $category_form; <div class="content-header-options"><?php echo $buttons ?></div> </div> <br /> + +<div id="elgg-plugin-list"> <?php // Display list of plugins @@ -88,48 +90,4 @@ foreach ($installed_plugins as $plugin) { )); } ?> - -<script type="text/javascript"> - $(document).ready(function() { - $('a.manifest_details.link').click(function() { - elgg_slide_toggle($(this), '.plugin_details', '.manifest_file'); - }); - - - $('.elgg-plugin-screenshot a').click(function(e) { - e.preventDefault(); - var lb = $('.elgg-plugin-screenshot-lightbox'); - - if (lb.length < 1) { - $('body').append('<div class="elgg-plugin-screenshot-lightbox"></div>'); - lb = $('.elgg-plugin-screenshot-lightbox'); - - lb.click(function() { - lb.hide(); - }); - - $(document).click(function(e) { - var target = $(e.target); - if (target.is('a') && target.hasClass('elgg-plugin-screenshot-lightbox')) { - lb.hide(); - e.preventDefault(); - } - }); - } - - var html = '<img class="pas" src="' + $(this).attr('href') + '">'; - var desc = $(this).find('img').attr('alt'); - - if (desc) { - html = '<h2 class="pam">' + desc + '</h2>' + html; - } - - lb.html(html); - - top_pos = $(window).scrollTop() + 10 + 'px'; - left_pos = $(window).scrollLeft() + 5 + 'px'; - - lb.css('top', top_pos).css('left', left_pos).show(); - }); - }); -</script>
\ No newline at end of file +</div>
\ No newline at end of file |