From 1ca3a630454e1ce752d9cb7b5cb2b84318e60ece Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 4 Apr 2009 19:56:26 +0000 Subject: putting tags in the database --- views/default/object/image.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'views/default/object') diff --git a/views/default/object/image.php b/views/default/object/image.php index e4cd4d067..af4a46b4b 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -104,7 +104,7 @@ $viewer = get_loggedin_user(); $friends = get_entities_from_relationship('friend', $viewer->getGUID(), false, 'user', '', 0); - $content = ""; + $content = ""; $content .= ""; $content .= ""; $content .= ""; @@ -378,17 +378,17 @@ function addTag() { + // do I need a catch for no tag? + $("input#user_id").val(user_id); $("input#word").val( $("input.input-filter").val() ); - if (coordinates.x1 != 0) - { - coord_string = ""; - for (x in coordinates) - coord_string += x + ':' + coordinates[x] + '/'; + coord_string = '"x1":"' + coordinates.x1 + '",'; + coord_string += '"y1":"' + coordinates.y1 + '",'; + coord_string += '"width":"' + coordinates.width + '",'; + coord_string += '"height":"' + coordinates.height + '"'; - $("input#coordinates").val(coord_string); - } + $("input#coordinates").val(coord_string); /* //Show loading jQuery("#cont-menu label, #cont-menu input, #cont-menu p, #cont-menu span, #cont-menu button, #cont-menu ul, #cont-menu fieldset").hide(); -- cgit v1.2.3