aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-04-04 16:00:02 +0000
committerCash Costello <cash.costello@gmail.com>2009-04-04 16:00:02 +0000
commitce8c41d96241e48c156b5df57f4046b04c07955b (patch)
tree34b109988082a93e4d5e11d70072f4ed6ea0c42b /views/default/object
parent32162183d59d995b35d7cb1f53d321a3b1051b04 (diff)
downloadelgg-ce8c41d96241e48c156b5df57f4046b04c07955b.tar.gz
elgg-ce8c41d96241e48c156b5df57f4046b04c07955b.tar.bz2
continued progress on tagging
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 454a52c59..954ffee92 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -100,6 +100,7 @@
</div>
<div id="tag_menu">
<?php
+
$viewer = get_loggedin_user();
$friends = get_entities_from_relationship('friend', $viewer->getGUID(), false, 'user', '', 0);
@@ -119,9 +120,10 @@
<button class='submit_button' type='submit'>" . elgg_echo('image:actiontag') . "</button>
</fieldset>";
-echo $content;
- //echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'form-phototagging', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/phototagging", 'body' => $content))
+ echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'form-phototagging', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/addtag", 'body' => $content));
+
?>
+
</div>
<div class="clearfloat"></div>
</div>
@@ -172,6 +174,19 @@ echo $content;
<script type="text/javascript">
var coordinates;
+
+ $(document).ready(function () {
+ $('ul#phototagging-menu li').quicksearch({
+ position: 'before',
+ attached: 'ul#phototagging-menu',
+ loaderText: '',
+ inputClass: 'input-filter',
+ labelText: "<p>Insert tag</p>",
+ delay: 100
+ });
+ }
+ );
+
/*
jQuery(document).ready(function(){
@@ -261,7 +276,7 @@ echo $content;
"left": oCoordenates.x2+constX + "px"
});
- //jQuery(".input-filtro").focus();
+ $(".input-filter").focus();
}
}