From 562eec5b7009849d6d091460c6436f2340049d09 Mon Sep 17 00:00:00 2001 From: pete Date: Fri, 9 Jul 2010 15:45:36 +0000 Subject: continuation of embed modal interfacing git-svn-id: http://code.elgg.org/elgg/trunk@6677 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/embed/web_services/content.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'mod/ecml/views/default/embed/web_services') diff --git a/mod/ecml/views/default/embed/web_services/content.php b/mod/ecml/views/default/embed/web_services/content.php index 0a65a851f..ecd023011 100644 --- a/mod/ecml/views/default/embed/web_services/content.php +++ b/mod/ecml/views/default/embed/web_services/content.php @@ -53,14 +53,16 @@ echo '

' . elgg_echo('ecml:embed:instructions') . '

'; echo $keywords_html; -echo ""; +echo ""; -echo "

URL

".$input."
"; +echo "
"; +echo "
ECML:
"; -echo "

ECML:

"; - -echo ""; +echo ""; +echo "
"; echo $embed; ?> @@ -69,11 +71,13 @@ echo $embed; $(document).ready(function() { $('a.ecml_embed_instructions.link').click(function() { - elgg_slide_toggle($(this), '#facebox', '#embed_ecml_keyword_help'); + elgg_slide_toggle($(this), '.embed_content_section.instructions', '#embed_ecml_keyword_help'); + $('.ecml_embed_instructions').toggleClass('open'); }); $('a.ecml_embed_preview.link').click(function() { - elgg_slide_toggle($(this), '#facebox', '#ecml_preview'); + elgg_slide_toggle($(this), '.embed_content_section.preview', '#ecml_preview'); + $('.ecml_embed_instructions').toggleClass('open'); }); }); @@ -137,7 +141,6 @@ $(function() { // fire off a preview attempt if (selected_service) { - $('.embed_content_section.preview').removeClass('hidden'); // reveal preview link/panel rest_timeout_id = setTimeout(generate_ecml, rest_min_time); } }; @@ -169,6 +172,7 @@ $(function() { $('#ecml_preview').html(data.html); $('#ecml_code').html(data.ecml); $('body').data('elgg_embed_ecml', data.ecml); + $('.embed_content_section.preview').removeClass('hidden'); // reveal preview link/panel // set status for embed button embed_button.removeAttr('disabled').removeClass('embed_disabled').removeClass('embed_warning').addClass('embed_good'); -- cgit v1.2.3