Skip to content

Commit

Permalink
Dialog update for students view
Browse files Browse the repository at this point in the history
Original smaller dialogs for students.
  • Loading branch information
julmis committed Feb 23, 2004
1 parent ead61cb commit 4a9d4e0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/editor/htmlarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 4a9d4e0

Please sign in to comment.