Skip to content
Browse files

Dialog update for students view

Original smaller dialogs for students.
  • Loading branch information...
1 parent ead61cb commit 4a9d4e041fcf99bf5d40d963d13fec3f32917a66 julmis committed Feb 23, 2004
Showing with 12 additions and 2 deletions.
  1. +12 −2 lib/editor/htmlarea.php
View
14 lib/editor/htmlarea.php
@@ -1430,7 +1430,12 @@ function (str, l1, l2, l3) {
f_title : link.title,
f_target : link.target
};
- this._popupDialog("link.php?id=<?php print($id);?>", function(param) {
+ this._popupDialog("<?php
+ if(isteacher($id)) {
+ echo "link.php?id=$id";
+ } else {
+ echo "link_std.php?id=$id";
+ }?>", function(param) {
if (!param)
return false;
var a = link;
@@ -1474,7 +1479,12 @@ function (str, l1, l2, l3) {
f_width : image.width,
f_height : image.height
};
- this._popupDialog("insert_image.php?id=<?php echo $id ?>", function(param) {
+ this._popupDialog("<?php
+ if(isteacher($id)) {
+ echo "insert_image.php?id=$id";
+ } else {
+ echo "insert_image_std.php?id=$id";
+ }?>", function(param) {
if (!param) { // user must have pressed Cancel
return false;
}

0 comments on commit 4a9d4e0

Please sign in to comment.
Something went wrong with that request. Please try again.