// allows additional information to be added/edited from the data that is
// passed to the mailbox display template:
// imp: TODO
-// dimp: imp/templates/javascript/mailbox-dimp.js.
+// dimp: imp/js/src/mailbox-dimp.js.
// The current entry array is passed in, the value returned should be the
// altered array to use in the template. If you are going to add new columns,
// you also have to update these fields:
array('dragdrop2.js', 'horde', true),
array('dhtmlHistory.js', 'horde', true),
array('redbox.js', 'horde', true),
- array('/templates/javascript/mailbox-dimp.js', 'imp', false),
+ array('mailbox-dimp.js', 'imp', true),
array('DimpSlider.js', 'imp', true),
array('imp.js', 'imp', true),
array('dialog.js', 'imp', true)
--- /dev/null
+/**
+ * mailbox-dimp.js - Template used to format the rows in the message list
+ * display.
+ *
+ * 'vpData' is a mandatory entry for ID/class information automatically
+ * generated by ViewPort.js.
+ * 'status', 'style', and 'subjectdata' are entries that are internally
+ * created by DimpBase.js.
+ *
+ * See the documentation of prototypejs - Template for the template format:
+ * http://www.prototypejs.org/api/template
+ *
+ * Copyright 2005-2009 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ */
+
+DimpBase.message_list_template =
+'<div #{vpData} style="#{style}">' +
+ '<div class="msgStatus">' +
+ '<div class="msCheck"></div>' +
+ '#{status}' +
+ '</div>' +
+ '<div class="msgFrom">#{from}</div>' +
+ '<div class="msgSubject" title="#{subjecttitle}">#{subjectdata}#{subject}</div>' +
+ '<div class="msgDate">#{date}</div>' +
+ '<div class="msgSize">#{size}</div>' +
+'</div>';
$js_tocache[$file['p'] . $file['f']] = false;
$mtime[] = filemtime($file['p'] . $file['f']);
} else {
- if (!$file['d'] &&
- ($app == 'dimp') &&
- ($file['f'] == 'mailbox.js')) {
- // Special dimp case: we keep mailbox.js in templates
- // not for purposes of running PHP scripts in the
- // file, but for ease of templating. Thus, this file
- // is OK to include inline.
- $js_tocache[$file['p'] . $file['f']] = true;
- $mtime[] = filemtime($file['p'] . $file['f']);
- } else {
- $js_force[] = $file['u'];
- }
+ $js_force[] = $file['u'];
}
}
}
+++ /dev/null
-/**
- * mailbox-dimp.js - Template used to format the rows in the message list
- * display.
- *
- * 'vpData' is a mandatory entry for ID/class information automatically
- * generated by ViewPort.js.
- * 'status', 'style', and 'subjectdata' are entries that are internally
- * created by DimpBase.js.
- *
- * See the documentation of prototypejs - Template for the template format:
- * http://www.prototypejs.org/api/template
- *
- * Copyright 2005-2009 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- */
-
-DimpBase.message_list_template =
-'<div #{vpData} style="#{style}">' +
- '<div class="msgStatus">' +
- '<div class="msCheck"></div>' +
- '#{status}' +
- '</div>' +
- '<div class="msgFrom">#{from}</div>' +
- '<div class="msgSubject" title="#{subjecttitle}">#{subjectdata}#{subject}</div>' +
- '<div class="msgDate">#{date}</div>' +
- '<div class="msgSize">#{size}</div>' +
-'</div>';