Fix bug 414537 - [Task Mode] Preview pane should show a link to a web page. r=philipp p=giermann@funke.de
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@245226 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -168,6 +168,12 @@ var taskDetailsView = {
|
||||
var description = item.hasProperty("DESCRIPTION") ? item.getProperty("DESCRIPTION") : null;
|
||||
textbox.value = description;
|
||||
textbox.inputField.readOnly = true;
|
||||
var gURL = item.getProperty("URL");
|
||||
if (displayElement("calendar-task-details-attachment-row", gURL && gURL.length)) {
|
||||
var urlLabel = document.getElementById("calendar-task-details-attachment");
|
||||
urlLabel.value = gURL;
|
||||
urlLabel.setAttribute("tooltiptext", gURL);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -40,12 +40,16 @@
|
||||
<?xml-stylesheet type="text/css" href="chrome://calendar/skin/calendar-task-view.css"?>
|
||||
<?xml-stylesheet type="text/css" href="chrome://calendar/content/calendar-bindings.css"?>
|
||||
|
||||
<!DOCTYPE overlay SYSTEM "chrome://calendar/locale/calendar.dtd">
|
||||
<!DOCTYPE overlay [
|
||||
<!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd1;
|
||||
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/sun-calendar-event-dialog.dtd" > %dtd2;
|
||||
]>
|
||||
|
||||
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendar-task-tree.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendar-task-view.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendar-dialog-utils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calApplicationUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||
|
||||
<vbox id="displayDeck">
|
||||
@@ -160,6 +164,17 @@
|
||||
</grid>
|
||||
</hbox>
|
||||
<textbox id="calendar-task-details-description" multiline="true" flex="1"/>
|
||||
<hbox id="calendar-task-details-attachment-row"
|
||||
align="top"
|
||||
hidden="true">
|
||||
<label value="&event.link.label;"
|
||||
class="task-details-name"/>
|
||||
<label id="calendar-task-details-attachment"
|
||||
class="text-link"
|
||||
crop="end"
|
||||
flex="1"
|
||||
onclick="launchBrowser(this.value)"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</vbox>
|
||||
</vbox>
|
||||
|
||||
@@ -39,11 +39,14 @@
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#calendar-task-details-attachment,
|
||||
.task-details-value {
|
||||
text-align: left;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#calendar-task-tree {
|
||||
|
||||
@@ -39,11 +39,14 @@
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#calendar-task-details-attachment,
|
||||
.task-details-value {
|
||||
text-align: left;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#calendar-task-tree {
|
||||
|
||||
Reference in New Issue
Block a user