diff options
author | Adrian Lang <mail@adrianlang.de> | 2011-09-18 20:31:08 +0200 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2011-09-18 20:31:08 +0200 |
commit | eaac63bb6c71253d7c2d4817c7ffc40cf4f13aeb (patch) | |
tree | b726d49ffbfd74136254f37ae3b351f155662bf0 /inc/media.php | |
parent | 90f69556e88c39509172f5926ca29c1ae63e2103 (diff) | |
download | rpg-eaac63bb6c71253d7c2d4817c7ffc40cf4f13aeb.tar.gz rpg-eaac63bb6c71253d7c2d4817c7ffc40cf4f13aeb.tar.bz2 |
Fix mediamanager JS (diffs not yet working)
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/media.php b/inc/media.php index 7999fd255..2900f3e4d 100644 --- a/inc/media.php +++ b/inc/media.php @@ -1099,8 +1099,9 @@ function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax){ $difftype = $_REQUEST['difftype']; if (!$fromajax) { - $form = new Doku_Form(array('action'=>media_managerURL(array(), '&'), 'method' => 'get' - )); + $form = new Doku_Form(array('action' => media_managerURL(array(), '&'), + 'method' => 'get', + 'id' => 'mediamanager__form_diffview')); $form->addHidden('sectok', null); $form->addElement('<input type="hidden" name="rev2[]" value="'.$l_rev.'" ></input>'); $form->addElement('<input type="hidden" name="rev2[]" value="'.$r_rev.'" ></input>'); @@ -1219,10 +1220,10 @@ function media_image_diff($image, $l_rev, $r_rev, $l_size, $r_size, $type) { $r_src = ml($image, $r_more); // slider - echo '<div id="diff_slider" style="max-width: '.($l_size[0]-20).'px;" ></div>'; + echo '<div class="diff_slider" style="max-width: '.($l_size[0]-20).'px;" ></div>'; // two images in divs - echo '<div id="diff_' . $type . '">'; + echo '<div class="diff_' . $type . '">'; echo '<div class="image1" style="max-width: '.$l_size[0].'px;">'; echo '<img src="'.$l_src.'" alt="" />'; echo '</div>'; |