aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views/default/embed/web_services/content.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-09 04:48:16 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-09 04:48:16 +0000
commit6005959c37acf42042be7281521d1f37ff56e677 (patch)
tree3547fe1270645135e16f3b5bc5b0fefc1c4939d4 /mod/ecml/views/default/embed/web_services/content.php
parent1f1b9957ec0527da781611fdf312b0475bb90aa4 (diff)
downloadelgg-6005959c37acf42042be7281521d1f37ff56e677.tar.gz
elgg-6005959c37acf42042be7281521d1f37ff56e677.tar.bz2
Added ecml help for web service embeds.
git-svn-id: http://code.elgg.org/elgg/trunk@6668 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/views/default/embed/web_services/content.php')
-rw-r--r--mod/ecml/views/default/embed/web_services/content.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/ecml/views/default/embed/web_services/content.php b/mod/ecml/views/default/embed/web_services/content.php
index 42e9279c9..0f3fa330d 100644
--- a/mod/ecml/views/default/embed/web_services/content.php
+++ b/mod/ecml/views/default/embed/web_services/content.php
@@ -49,6 +49,8 @@ $embed = elgg_view('input/button', array(
'disabled' => TRUE
));
+echo '<p>' . elgg_echo('ecml:embed:instructions') . '</p>';
+echo '<div id="embed_ecml_keyword_help"></div>';
echo $input;
echo '<p>ECML: <span id="ecml_code"></span></p>';
echo $keywords_html;
@@ -70,7 +72,8 @@ $(function() {
// counter for paused input to try to validate/generate a preview.
var rest_timeout_id = null;
var rest_min_time = 750;
- var embed_generate_ecml_url = '<?php echo $vars['url']; ?>/pg/ecml_generate';
+ var embed_generate_ecml_url = '<?php echo $vars['url']; ?>pg/ecml_generate';
+ var embed_ecml_keyword_help_url = '<?php echo $vars['url']; ?>pg/ecml/';
var internal_name = '<?php echo addslashes($internal_name); ?>';
var web_services_ecml_update = function() {
@@ -161,8 +164,12 @@ $(function() {
// manually specify the service
$('.ecml_web_service a').click(function() {
- select_service($(this).attr('class'));
+ select_service($(this).attr('class').split(' ')[0]);
manual_selected_service = true;
+
+ // show tip
+ var help_url = embed_ecml_keyword_help_url + selected_service + '?ajax=true';
+ $('#embed_ecml_keyword_help').load(help_url);
});
$('#embed_submit').click(function() {