Dialog update for students view

Original smaller dialogs for students.
This commit is contained in:
julmis
2004-02-23 15:33:32 +00:00
parent ead61cb9d0
commit 4a9d4e041f
+12 -2
View File
@@ -1430,7 +1430,12 @@ HTMLArea.prototype._createLink = function(link) {
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 @@ HTMLArea.prototype._insertImage = function(image) {
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;
}