Fix for borken selection box in TagFaces.
This commit is contained in:
parent
cf81ac7085
commit
e4d96261f6
@ -85,8 +85,8 @@ class tagfaces_Controller extends Controller {
|
|||||||
$str_face_title = str_replace("'", "\'", Input::instance()->post("face_title"));
|
$str_face_title = str_replace("'", "\'", Input::instance()->post("face_title"));
|
||||||
$str_face_description = str_replace("'", "\'", Input::instance()->post("face_description"));
|
$str_face_description = str_replace("'", "\'", Input::instance()->post("face_description"));
|
||||||
$item_data = Input::instance()->post("item_id");
|
$item_data = Input::instance()->post("item_id");
|
||||||
$str_x1 = Input::instance()->post("x");
|
$str_x1 = Input::instance()->post("x1");
|
||||||
$str_y1 = Input::instance()->post("y");
|
$str_y1 = Input::instance()->post("y1");
|
||||||
$str_x2 = Input::instance()->post("x2");
|
$str_x2 = Input::instance()->post("x2");
|
||||||
$str_y2 = Input::instance()->post("y2");
|
$str_y2 = Input::instance()->post("y2");
|
||||||
|
|
||||||
@ -192,13 +192,17 @@ class tagfaces_Controller extends Controller {
|
|||||||
// Generate input boxes to hold the coordinates of the face.
|
// Generate input boxes to hold the coordinates of the face.
|
||||||
$coordinates_group = $form->group("FaceCoordinates")
|
$coordinates_group = $form->group("FaceCoordinates")
|
||||||
->label(t("Coordinates:"));
|
->label(t("Coordinates:"));
|
||||||
$coordinates_group->input("x")
|
$coordinates_group->input("x1")
|
||||||
|
->id('x1')
|
||||||
->label(t("X1"));
|
->label(t("X1"));
|
||||||
$coordinates_group->input("y")
|
$coordinates_group->input("y1")
|
||||||
|
->id('y1')
|
||||||
->label(t("Y1"));
|
->label(t("Y1"));
|
||||||
$coordinates_group->input("x2")
|
$coordinates_group->input("x2")
|
||||||
|
->id('x2')
|
||||||
->label(t("X2"));
|
->label(t("X2"));
|
||||||
$coordinates_group->input("y2")
|
$coordinates_group->input("y2")
|
||||||
|
->id('y2')
|
||||||
->label(t("Y2"));
|
->label(t("Y2"));
|
||||||
|
|
||||||
// Add the id# of the photo and a save button to the form.
|
// Add the id# of the photo and a save button to the form.
|
||||||
|
@ -53,8 +53,8 @@
|
|||||||
// Our simple event handler, called from onChange and onSelect
|
// Our simple event handler, called from onChange and onSelect
|
||||||
// event handlers, as per the Jcrop invocation above
|
// event handlers, as per the Jcrop invocation above
|
||||||
function showCoords(c) {
|
function showCoords(c) {
|
||||||
jQuery('#x').val(c.x);
|
jQuery('#x1').val(c.x);
|
||||||
jQuery('#y').val(c.y);
|
jQuery('#y1').val(c.y);
|
||||||
jQuery('#x2').val(c.x2);
|
jQuery('#x2').val(c.x2);
|
||||||
jQuery('#y2').val(c.y2);
|
jQuery('#y2').val(c.y2);
|
||||||
};
|
};
|
||||||
@ -87,10 +87,10 @@
|
|||||||
#face_description {
|
#face_description {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
#x {
|
#x1 {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
#y {
|
#y1 {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
#x2 {
|
#x2 {
|
||||||
@ -108,7 +108,7 @@ li {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div id="g-coordinates">
|
<div id="g-coordinates">
|
||||||
<?= $form ?>
|
<?=$form ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/><br/><br/>
|
<br/><br/><br/>
|
||||||
@ -121,6 +121,12 @@ li {
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div id="g-exit-faces">
|
<div id="g-exit-faces">
|
||||||
|
Reference in New Issue
Block a user