Replaced 'cols="50"' and 'size="30"' by 'class="fullwidth"' in textarea and input...
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 16 Mar 2015 22:10:36 +0000 (22:10 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 16 Mar 2015 22:10:36 +0000 (22:10 +0000)
Note that now in CSS the following is required:
.fullwidth {
  width:100%;
  box-sizing: border-box;
}

git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2169 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index a70ac10e36afeef1f22299e720cbe50e4c68c099..86431d9e610b192b0ba760425382e1fa3a510650 100644 (file)
@@ -261,12 +261,12 @@ function wrReportFormRender($hide_save_button = TRUE, $page_title = NULL, $date_
        // description
        $tr = $table->appendElement('tr');
        $tr->appendElement('th')->appendText(wfMessage('wrreport-newreport-description')->text());
        // description
        $tr = $table->appendElement('tr');
        $tr->appendElement('th')->appendText(wfMessage('wrreport-newreport-description')->text());
-       $tr->appendElement('td')->appendElement('textarea', array('name' => 'description', 'cols' => '50', 'rows' => '7'))->appendText($description);
+       $tr->appendElement('td')->appendElement('textarea', array('name' => 'description', 'class' => 'fullwidth', 'rows' => '7'))->appendText($description);
 
        // author
        $tr = $table->appendElement('tr');
        $tr->appendElement('th')->appendText(wfMessage('wrreport-newreport-author')->text());
 
        // author
        $tr = $table->appendElement('tr');
        $tr->appendElement('th')->appendText(wfMessage('wrreport-newreport-author')->text());
-       $tr->appendElement('td')->appendElement('input', array('name' => 'author_name', 'maxlength' => '30', 'size' => '30', 'value' => $author_name));
+       $tr->appendElement('td')->appendElement('input', array('name' => 'author_name', 'class' => 'fullwidth', 'maxlength' => '30', 'value' => $author_name));
 
        // Buttons
        // I would like to do it this way, but due to a bug of internet explorer, the <button> element is not useable.
 
        // Buttons
        // I would like to do it this way, but due to a bug of internet explorer, the <button> element is not useable.