Index: api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/util/ImageInfo.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/util/ImageInfo.java (revision )
+++ api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/util/ImageInfo.java (revision )
@@ -0,0 +1,186 @@
+/*
+ * SimpleImageInfo.java
+ *
+ * @version 0.1
+ * @author Jaimon Mathew
true
if flash and the correct version is detected, false
otherwise
+ * Traverse up the component tree in search for an IAjaxIndicatorAware component is used to indicate a busy state
+ * while uploading.
+ *
+ * @return IAjaxIndicatorAware component or null of not found
*/
- public boolean isFlashUpload() {
- return detectedFlash != null && detectedFlash.isValid(VALID_FLASH);
+ protected String getAjaxIndicatorId() {
+ Component c = this;
+ while (c != null) {
+ if (IAjaxIndicatorAware.class.isAssignableFrom(c.getClass())) {
+ return ((IAjaxIndicatorAware) c).getAjaxIndicatorMarkupId();
- }
+ }
+ c = c.getParent();
+ }
+ return null;
+ }
+
protected void renderFlashUpload() {
- AjaxMultiFileUploadSettings ajaxMultiFileUploadSettings = new AjaxMultiFileUploadSettings();
- ajaxMultiFileUploadSettings.setFileExtensions(settings.getFileExtensions());
- ajaxMultiFileUploadSettings.setAllowMultipleFiles(settings.getMaxNumberOfFiles() > 1);
- ajaxMultiFileUploadSettings.setUploadAfterSelect(settings.isAutoUpload());
- ajaxMultiFileUploadSettings.setClearAfterUpload(settings.isClearAfterUpload());
- ajaxMultiFileUploadSettings.setClearTimeout(settings.getClearTimeout());
- ajaxMultiFileUploadSettings.setHideBrowseDuringUpload(settings.isHideBrowseDuringUpload());
- ajaxMultiFileUploadSettings.setAjaxIndicatorId(getAjaxIndicatorId());
- ajaxMultiFileUploadSettings.setButtonWidth(settings.getButtonWidth());
- replace(panel = new AjaxMultiFileUploadComponent(COMPONENT_ID, ajaxMultiFileUploadSettings) {
+ AjaxMultiFileUploadSettings ajaxSettings = new AjaxMultiFileUploadSettings();
+ ajaxSettings.setFileExtensions(settings.getFileExtensions());
+ ajaxSettings.setAllowMultipleFiles(settings.getMaxNumberOfFiles() > 1);
+ ajaxSettings.setUploadAfterSelect(settings.isAutoUpload());
+ ajaxSettings.setClearAfterUpload(settings.isClearAfterUpload());
+ ajaxSettings.setClearTimeout(settings.getClearTimeout());
+ ajaxSettings.setHideBrowseDuringUpload(settings.isHideBrowseDuringUpload());
+ ajaxSettings.setAjaxIndicatorId(getAjaxIndicatorId());
+ ajaxSettings.setButtonWidth(settings.getButtonWidth());
+ //Allow the flash uploader to validate files by size on the client before uploading starts.
+ ajaxSettings.setClientSideValidation(true);
+ ajaxSettings.setMaxFileSize(validator.getMaxFileSize().bytes());
+
+ replace(panel = new AjaxMultiFileUploadComponent(COMPONENT_ID, ajaxSettings) {
+
@Override
protected void onFileUpload(FileUpload fileUpload) {
- FileUploadWidget.this.onFileUpload(fileUpload);
+ handleFileUpload(fileUpload);
}
@Override
- protected void onFinish(AjaxRequestTarget target) {
- FileUploadWidget.this.onFinishAjaxUpload(target);
+ protected void onFinish(AjaxRequestTarget target, boolean hasError) {
+ if (hasViolations()) {
+ handleViolations();
+ target.addComponent(FileUploadWidget.this);
- }
+ }
-
- @Override
- protected void onUploadSuccess() {
+ FileUploadWidget.this.onFinishAjaxUpload(target, hasError);
}
+
});
}
- protected void renderJavascriptUpload() {
- int max = settings.isAutoUpload() ? 1 : settings.getMaxNumberOfFiles();
- replace(panel = new MultiFileUploadComponent(COMPONENT_ID, max));
+ /**
+ * Detect if flash is installed and if the correct version of the flash plugin is found.
+ *
+ * @return true
if flash and the correct version is detected, false
otherwise
+ */
+ public boolean isFlashUpload() {
+ return detectedFlash != null && detectedFlash.isValid(VALID_FLASH);
}
- protected String getAjaxIndicatorId() {
- Component c = this;
- while (c != null) {
- if (IAjaxIndicatorAware.class.isAssignableFrom(c.getClass())) {
- return ((IAjaxIndicatorAware) c).getAjaxIndicatorMarkupId();
+ /**
+ * Components that embed a FileUploadWidget might have their own actions for triggering the upload, this method
+ * returns the javascript call to initiate it.
+ *
+ * @return Javascript call that start the ajax upload
+ */
+ public String getStartAjaxUploadScript() {
+ return "YAHOO.hippo.Upload.upload();";
- }
+ }
- c = c.getParent();
+
+ protected void onFinishAjaxUpload(AjaxRequestTarget target, boolean hasError) {
+
- }
+ }
- return null;
- }
- protected void onFinishAjaxUpload(AjaxRequestTarget target) {
+ protected void renderJavascriptUpload() {
+ int max = settings.isAutoUpload() ? 1 : settings.getMaxNumberOfFiles();
+ replace(panel = new MultiFileUploadComponent(COMPONENT_ID, max));
}
+
public void handleNonFlashSubmit() {
if (!isFlashUpload()) {
Collectionhippo:resource
*/
@@ -62,7 +66,7 @@
if (imageInfo.check()) {
String imageInfoMimeType = imageInfo.getMimeType();
if (imageInfoMimeType == null) {
- throw new ResourceException("impermissable image type content");
+ throw new ResourceException("impermissible image type content");
} else {
if (imageInfoMimeType.equals(MIME_IMAGE_PJPEG)) {
imageInfoMimeType = MIME_IMAGE_JPEG;
@@ -72,29 +76,29 @@
}
}
} else {
- throw new ResourceException("impermissable image type content");
+ throw new ResourceException("impermissible image type content");
}
} else if (mimeType.equals(MIME_TYPE_PDF)) {
String line;
line = new BufferedReader(new InputStreamReader(resource.getProperty(JcrConstants.JCR_DATA).getStream()))
.readLine().toUpperCase();
if (!line.startsWith("%PDF-")) {
- throw new ResourceException("impermissable pdf type content");
+ throw new ResourceException("impermissible pdf type content");
}
} else if (mimeType.equals("application/postscript")) {
String line;
line = new BufferedReader(new InputStreamReader(resource.getProperty(JcrConstants.JCR_DATA).getStream()))
.readLine().toUpperCase();
if (!line.startsWith("%!")) {
- throw new ResourceException("impermissable postscript type content");
+ throw new ResourceException("impermissible postscript type content");
}
} else {
// This method can be overridden to allow more such checks on content type. if such an override
// wants to be really strict and not allow unknown content, the following thrown exception is to be included
- // throw new ValueFormatException("impermissable unrecognized type content");
+ // throw new ValueFormatException("impermissible unrecognized type content");
}
} catch (IOException ex) {
- throw new ResourceException("impermissable unknown type content");
+ throw new ResourceException("impermissible unknown type content");
}
}
Index: gallery/repository/src/main/resources/hippoecm-extension.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- gallery/repository/src/main/resources/hippoecm-extension.xml (revision 34000)
+++ gallery/repository/src/main/resources/hippoecm-extension.xml (revision )
@@ -316,5 +316,19 @@
true
for flash or false
for javascript uploadtrue
for flash or false
for javascript uploadtrue
the plugin will automatically upload the filestrue
the plugin will automatically upload the filestrue
the dialog is cleared after all files are uploadedtrue
the browse button will be hidden during the uploadtrue
the dialog is cleared after
+ * all files are uploadedtrue
the browse button will be hidden during the
+ * uploadtrue
if flash should be used, false
otherwise
*/
public boolean isFlashUploadEnabled() {
@@ -143,8 +138,9 @@
}
/**
- * If set to true
(default) the upload plugin will use flash for file uploads, otherwise it will use a plain
- * Javascript upload.
+ * If set to true
(default) the upload plugin will use flash for file uploads, otherwise it will use a
+ * plain Javascript upload.
+ *
* @param flashUploadEnabled boolean indicating if flash should be used for file uploads.
*/
public void setFlashUploadEnabled(boolean flashUploadEnabled) {
@@ -152,39 +148,37 @@
}
private void parsePluginConfig(final IPluginConfig pluginConfig) {
- if(pluginConfig.containsKey(FILEUPLOAD_FLASH_ENABLED_SETTING)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_FLASH_ENABLED_SETTING)) {
this.flashUploadEnabled = pluginConfig.getAsBoolean(FILEUPLOAD_FLASH_ENABLED_SETTING);
}
- if(pluginConfig.containsKey(FILEUPLOAD_MAX_ITEMS_SETTING)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_MAX_ITEMS_SETTING)) {
this.maxNumberOfFiles = pluginConfig.getAsInteger(FILEUPLOAD_MAX_ITEMS_SETTING);
}
// for backwards compatibility
- if(pluginConfig.containsKey(FILE_EXTENSIONS_SETTING)) {
+ if (pluginConfig.containsKey(FILE_EXTENSIONS_SETTING)) {
this.fileExtensions = pluginConfig.getStringArray(FILE_EXTENSIONS_SETTING);
}
- if(pluginConfig.containsKey(FILEUPLOAD_ALLOWED_EXTENSIONS_SETTING)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_ALLOWED_EXTENSIONS_SETTING)) {
this.fileExtensions = pluginConfig.getStringArray(FILEUPLOAD_ALLOWED_EXTENSIONS_SETTING);
}
-
- if(pluginConfig.containsKey(FILEUPLOAD_AUTOUPLOAD_SETTING)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_AUTOUPLOAD_SETTING)) {
this.autoUpload = pluginConfig.getAsBoolean(FILEUPLOAD_AUTOUPLOAD_SETTING);
}
- if(pluginConfig.containsKey(FILEUPLOAD_BUTTON_WIDTH)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_BUTTON_WIDTH)) {
this.buttonWidth = pluginConfig.getString(FILEUPLOAD_BUTTON_WIDTH);
}
- if(pluginConfig.containsKey(FILEUPLOAD_BUTTON_HEIGHT)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_BUTTON_HEIGHT)) {
this.buttonHeight = pluginConfig.getString(FILEUPLOAD_BUTTON_HEIGHT);
}
- if(pluginConfig.containsKey(FILEUPLOAD_CLEAR_AFTER_UPLOAD)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_CLEAR_AFTER_UPLOAD)) {
this.clearAfterUpload = pluginConfig.getAsBoolean(FILEUPLOAD_CLEAR_AFTER_UPLOAD);
}
- if(pluginConfig.containsKey(FILEUPLOAD_CLEAR_TIMEOUT)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_CLEAR_TIMEOUT)) {
this.clearTimeout = pluginConfig.getAsInteger(FILEUPLOAD_CLEAR_TIMEOUT);
}
- if(pluginConfig.containsKey(FILEUPLOAD_HIDE_BROWSE_DURING_UPLOAD)) {
+ if (pluginConfig.containsKey(FILEUPLOAD_HIDE_BROWSE_DURING_UPLOAD)) {
this.hideBrowseDuringUpload = pluginConfig.getAsBoolean(FILEUPLOAD_HIDE_BROWSE_DURING_UPLOAD);
}
-
}
}
Index: api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/multifile/MultiFileUpload.css
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/multifile/MultiFileUpload.css (revision 34000)
+++ api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/multifile/MultiFileUpload.css (revision )
@@ -28,7 +28,6 @@
overflow: auto;
}
-
.hippo-window .hippo-dialog-container .wicket-mfu-row {
border-bottom: 1px solid #F4F4F4;
height: 24px;
\ No newline at end of file
Index: api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/ajax/res/skin.css
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/ajax/res/skin.css (revision 34000)
+++ api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/ajax/res/skin.css (revision )
@@ -1,63 +1,63 @@
.resource-values {
- overflow: auto;
+ overflow: auto;
}
.selectFilesLink {
- width: 244px;
- height: 26px;
- padding-top: 6px;
- padding-left: 30px;
- color: #333333;
- background: url("select_upload_icononly.png") no-repeat;
+ width: 244px;
+ height: 26px;
+ padding-top: 6px;
+ padding-left: 30px;
+ color: #333333;
+ background: url("select_upload_icononly.png") no-repeat;
}
.selectFilesLink.rollover {
- background: url("select_upload_icononly_hover.png") no-repeat;
+ background: url("select_upload_icononly_hover.png") no-repeat;
}
.yau-progressbar {
- height: 5px;
- background-color: #F00;
+ height: 5px;
+ background-color: #F00;
}
.yau-progressbar-container {
- height: 5px;
- width: 100px;
- background-color: #CCC;
+ height: 5px;
+ width: 100px;
+ background-color: #CCC;
}
.yau-select-link-rollout {
- color: #0000CC;
- background-color: #FFFFFF;
+ color: #0000CC;
+ background-color: #FFFFFF;
}
.yau-select-link-rollover {
- color: #000000;
- background-color: #FFFFFF;
+ color: #000000;
+ background-color: #FFFFFF;
}
.dataTableContainer {
- margin-top: 10px;
+ margin-top: 10px;
}
.dataTableContainer .remove_file {
- background-image: url("delete-small-16.png");
- width: 16px;
- height: 16px;
- cursor: pointer;
+ background-image: url("delete-small-16.png");
+ width: 16px;
+ height: 16px;
+ cursor: pointer;
}
.hippo-root .yui-dt td.yui-dt-last {
- border-right: 0;
+ border-right: 0;
}
.finished {
- background-color: #CCFFCC;
- border-bottom: 1px;
+ background-color: #CCFFCC;
+ border-bottom: 1px;
}
.yui-dt-last .finished {
- border-bottom: 0;
+ border-bottom: 0;
}
/*
@@ -67,57 +67,57 @@
version: 2.8.1
*/
.yui-pb-bar {
- background-color: blue;
+ background-color: blue;
}
.yui-pb {
- border: thin solid #808080
+ border: thin solid #808080
}
.hippo-root .yui-pb {
- background-color: transparent;
- border: solid #808080;
- border-width: 1px 0;
+ background-color: transparent;
+ border: solid #808080;
+ border-width: 1px 0;
}
.hippo-root .yui-pb-rtl, .hippo-root .yui-pb-ltr {
- background-image: url(back-h.png);
- background-repeat: repeat-x;
+ background-image: url(back-h.png);
+ background-repeat: repeat-x;
}
.hippo-root .yui-pb-ttb, .hippo-root .yui-pb-btt {
- background-image: url(back-v.png);
- background-repeat: repeat-y;
+ background-image: url(back-v.png);
+ background-repeat: repeat-y;
}
.hippo-root .yui-pb-bar {
- background-color: transparent;
+ background-color: transparent;
}
.hippo-root .yui-pb-ltr .yui-pb-bar, .hippo-root .yui-pb-rtl .yui-pb-bar {
- background-image: url(bar-h.png);
- background-repeat: repeat-x;
+ background-image: url(bar-h.png);
+ background-repeat: repeat-x;
}
.hippo-root .yui-pb-ttb .yui-pb-bar, .hippo-root .yui-pb-btt .yui-pb-bar {
- background-image: url(bar-v.png);
- background-repeat: repeat-y;
+ background-image: url(bar-v.png);
+ background-repeat: repeat-y;
}
.hippo-root .yui-pb-mask {
- border: solid #808080;
- border-width: 0 1px;
- margin: 0 -1px;
+ border: solid #808080;
+ border-width: 0 1px;
+ margin: 0 -1px;
}
.hippo-root .yui-pb-caption {
- color: #000;
- text-align: center;
- margin: 0 auto;
+ color: #000;
+ text-align: center;
+ margin: 0 auto;
}
.hippo-root .yui-pb-range {
- color: #a6a6a6;
+ color: #a6a6a6;
}
/* Datatable skin */
@@ -131,197 +131,197 @@
/* basic skin styles */
.hippo-root .yui-dt table {
- margin: 0;
- padding: 0;
- font-family: arial;
- font-size: inherit;
- border-collapse: separate;
- *border-collapse: collapse;
- border-spacing: 0; /* since ie6 and ie7 behave differently */
- border: 1px solid #7F7F7F;
+ margin: 0;
+ padding: 0;
+ font-family: arial;
+ font-size: inherit;
+ border-collapse: separate;
+ *border-collapse: collapse;
+ border-spacing: 0; /* since ie6 and ie7 behave differently */
+ border: 1px solid #7F7F7F;
}
.hippo-root .yui-dt thead {
- border-spacing: 0;
+ border-spacing: 0;
}
/* for safari bug */
.hippo-root .yui-dt caption {
- color: #000000;
- font-size: 85%;
- font-weight: normal;
- font-style: italic;
- line-height: 1;
- padding: 1em 0pt;
- text-align: center;
+ color: #000000;
+ font-size: 85%;
+ font-weight: normal;
+ font-style: italic;
+ line-height: 1;
+ padding: 1em 0pt;
+ text-align: center;
}
.hippo-root .yui-dt th {
- background: #D8D8DA url(sprite.png) repeat-x 0 0; /* header gradient */
+ background: #D8D8DA url(sprite.png) repeat-x 0 0; /* header gradient */
}
.hippo-root .yui-dt th,
.hippo-root .yui-dt th a {
- font-weight: normal;
- text-decoration: none;
- color: #000; /* header text */
- vertical-align: bottom;
+ font-weight: normal;
+ text-decoration: none;
+ color: #000; /* header text */
+ vertical-align: bottom;
}
.hippo-root .yui-dt th {
- margin: 0;
- padding: 0;
- border: none;
- border-right: 1px solid #CBCBCB; /* inner column border */
+ margin: 0;
+ padding: 0;
+ border: none;
+ border-right: 1px solid #CBCBCB; /* inner column border */
}
.hippo-root .yui-dt tr.yui-dt-first td {
- border-top: 1px solid #7F7F7F; /* tbody top border */
+ border-top: 1px solid #7F7F7F; /* tbody top border */
}
.hippo-root .yui-dt th .yui-dt-liner {
- white-space: nowrap;
+ white-space: nowrap;
}
.hippo-root .yui-dt-liner {
- margin: 0;
- padding: 0;
- padding: 3px 10px 3px 10px; /* cell padding */
+ margin: 0;
+ padding: 0;
+ padding: 3px 10px 3px 10px; /* cell padding */
}
.hippo-root .yui-dt-coltarget {
- width: 5px;
- background-color: red;
+ width: 5px;
+ background-color: red;
}
.hippo-root .yui-dt td {
- margin: 0;
- padding: 0;
- border: none;
- border-right: 1px solid #CBCBCB; /* inner column border */
- text-align: left;
+ margin: 0;
+ padding: 0;
+ border: none;
+ border-right: 1px solid #CBCBCB; /* inner column border */
+ text-align: left;
}
.hippo-root .yui-dt-list td {
- border-right: none; /* disable inner column border in list mode */
+ border-right: none; /* disable inner column border in list mode */
}
.hippo-root .yui-dt-resizer {
- width: 6px;
+ width: 6px;
}
/* mask */
.hippo-root .yui-dt-mask {
- background-color: #000;
- opacity: .25;
- filter: alpha(opacity = 25); /* Set opacity in IE */
+ background-color: #000;
+ opacity: .25;
+ filter: alpha(opacity = 25); /* Set opacity in IE */
}
/* messaging */
.hippo-root .yui-dt-message {
- background-color: #FFF;
+ background-color: #FFF;
}
/* scrolling */
.hippo-root .yui-dt-scrollable {
- overflow: hidden;
+ overflow: hidden;
}
.hippo-root .yui-dt-scrollable table {
- border: none;
+ border: none;
}
.hippo-root .yui-dt-scrollable .yui-dt-hd {
- border-left: 1px solid #7F7F7F;
- border-top: 1px solid #7F7F7F;
- border-right: 1px solid #7F7F7F;
+ border-left: 1px solid #7F7F7F;
+ border-top: 1px solid #7F7F7F;
+ border-right: 1px solid #7F7F7F;
}
.hippo-root .yui-dt-scrollable .yui-dt-bd {
- border-left: 1px solid #7F7F7F;
- border-bottom: 1px solid #7F7F7F;
- border-right: 1px solid #7F7F7F;
- background-color: #FFF;
+ border-left: 1px solid #7F7F7F;
+ border-bottom: 1px solid #7F7F7F;
+ border-right: 1px solid #7F7F7F;
+ background-color: #FFF;
}
.hippo-root .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td {
- border-bottom: 1px solid #7F7F7F;
+ border-bottom: 1px solid #7F7F7F;
}
/* sortable columns */
.hippo-root th.yui-dt-asc,
.hippo-root th.yui-dt-desc {
- background: url(sprite.png) repeat-x 0 -100px; /* sorted header gradient */
+ background: url(sprite.png) repeat-x 0 -100px; /* sorted header gradient */
}
.hippo-root th.yui-dt-sortable .yui-dt-label {
- margin-right: 10px;
+ margin-right: 10px;
}
.hippo-root th.yui-dt-asc .yui-dt-liner {
- background: url(dt-arrow-up.png) no-repeat right; /* sorted header gradient */
+ background: url(dt-arrow-up.png) no-repeat right; /* sorted header gradient */
}
.hippo-root th.yui-dt-desc .yui-dt-liner {
- background: url(dt-arrow-dn.png) no-repeat right; /* sorted header gradient */
+ background: url(dt-arrow-dn.png) no-repeat right; /* sorted header gradient */
}
/* editing */
tbody .yui-dt-editable {
- cursor: pointer;
+ cursor: pointer;
}
.yui-dt-editor {
- text-align: left;
- background-color: #F2F2F2;
- border: 1px solid #808080;
- padding: 6px;
+ text-align: left;
+ background-color: #F2F2F2;
+ border: 1px solid #808080;
+ padding: 6px;
}
.yui-dt-editor label {
- padding-left: 4px;
- padding-right: 6px;
+ padding-left: 4px;
+ padding-right: 6px;
}
.yui-dt-editor .yui-dt-button {
- padding-top: 6px;
- text-align: right;
+ padding-top: 6px;
+ text-align: right;
}
.yui-dt-editor .yui-dt-button button {
- background: url(sprite.png) repeat-x 0 0;
- border: 1px solid #999;
- width: 4em;
- height: 1.8em;
- margin-left: 6px;
+ background: url(sprite.png) repeat-x 0 0;
+ border: 1px solid #999;
+ width: 4em;
+ height: 1.8em;
+ margin-left: 6px;
}
.yui-dt-editor .yui-dt-button button.yui-dt-default {
- background: url(sprite.png) repeat-x 0 -1400px;
- background-color: #5584E0;
- border: 1px solid #304369;
- color: #FFF
+ background: url(sprite.png) repeat-x 0 -1400px;
+ background-color: #5584E0;
+ border: 1px solid #304369;
+ color: #FFF
}
.yui-dt-editor .yui-dt-button button:hover {
- background: url(sprite.png) repeat-x 0 -1300px;
- color: #000;
+ background: url(sprite.png) repeat-x 0 -1300px;
+ color: #000;
}
.yui-dt-editor .yui-dt-button button:active {
- background: url(sprite.png) repeat-x 0 -1700px;
- color: #000;
+ background: url(sprite.png) repeat-x 0 -1700px;
+ color: #000;
}
/* striping */
.hippo-root tr.yui-dt-even {
- background-color: #FFF;
+ background-color: #FFF;
}
/* white */
.hippo-root tr.yui-dt-odd {
- background-color: #EDF5FF;
+ background-color: #EDF5FF;
}
/* light blue */
@@ -334,24 +334,24 @@
/* disable striping in list mode */
.hippo-root .yui-dt-list tr.yui-dt-even {
- background-color: #FFF;
+ background-color: #FFF;
}
/* white */
.hippo-root .yui-dt-list tr.yui-dt-odd {
- background-color: #FFF;
+ background-color: #FFF;
}
/* white */
.hippo-root .yui-dt-list tr.yui-dt-even td.yui-dt-asc,
.hippo-root .yui-dt-list tr.yui-dt-even td.yui-dt-desc {
- background-color: #EDF5FF;
+ background-color: #EDF5FF;
}
/* light blue sorted */
.hippo-root .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,
.hippo-root .yui-dt-list tr.yui-dt-odd td.yui-dt-desc {
- background-color: #EDF5FF;
+ background-color: #EDF5FF;
}
/* light blue sorted */
@@ -359,7 +359,7 @@
/* highlighting */
.hippo-root th.yui-dt-highlighted,
.hippo-root th.yui-dt-highlighted a {
- background-color: #B2D2FF; /* med blue hover */
+ background-color: #B2D2FF; /* med blue hover */
}
.hippo-root tr.yui-dt-highlighted,
@@ -367,14 +367,14 @@
.hippo-root tr.yui-dt-highlighted td.yui-dt-desc,
.hippo-root tr.yui-dt-even td.yui-dt-highlighted,
.hippo-root tr.yui-dt-odd td.yui-dt-highlighted {
- cursor: pointer;
- background-color: #B2D2FF; /* med blue hover */
+ cursor: pointer;
+ background-color: #B2D2FF; /* med blue hover */
}
/* enable highlighting in list mode */
.hippo-root .yui-dt-list th.yui-dt-highlighted,
.hippo-root .yui-dt-list th.yui-dt-highlighted a {
- background-color: #B2D2FF; /* med blue hover */
+ background-color: #B2D2FF; /* med blue hover */
}
.hippo-root .yui-dt-list tr.yui-dt-highlighted,
@@ -382,79 +382,145 @@
.hippo-root .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,
.hippo-root .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,
.hippo-root .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted {
- cursor: pointer;
- background-color: #B2D2FF; /* med blue hover */
+ cursor: pointer;
+ background-color: #B2D2FF; /* med blue hover */
}
/* selection */
.hippo-root th.yui-dt-selected,
.hippo-root th.yui-dt-selected a {
- background-color: #446CD7; /* bright blue selected cell */
+ background-color: #446CD7; /* bright blue selected cell */
}
.hippo-root tr.yui-dt-selected td,
.hippo-root tr.yui-dt-selected td.yui-dt-asc,
.hippo-root tr.yui-dt-selected td.yui-dt-desc {
- background-color: #426FD9; /* bright blue selected row */
- color: #FFF;
+ background-color: #426FD9; /* bright blue selected row */
+ color: #FFF;
}
.hippo-root tr.yui-dt-even td.yui-dt-selected,
.hippo-root tr.yui-dt-odd td.yui-dt-selected {
- background-color: #446CD7; /* bright blue selected cell */
- color: #FFF;
+ background-color: #446CD7; /* bright blue selected cell */
+ color: #FFF;
}
/* enable selection in list mode */
.hippo-root .yui-dt-list th.yui-dt-selected,
.hippo-root .yui-dt-list th.yui-dt-selected a {
- background-color: #446CD7; /* bright blue selected cell */
+ background-color: #446CD7; /* bright blue selected cell */
}
.hippo-root .yui-dt-list tr.yui-dt-selected td,
.hippo-root .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,
.hippo-root .yui-dt-list tr.yui-dt-selected td.yui-dt-desc {
- background-color: #426FD9; /* bright blue selected row */
- color: #FFF;
+ background-color: #426FD9; /* bright blue selected row */
+ color: #FFF;
}
.hippo-root .yui-dt-list tr.yui-dt-even td.yui-dt-selected,
.hippo-root .yui-dt-list tr.yui-dt-odd td.yui-dt-selected {
- background-color: #446CD7; /* bright blue selected cell */
- color: #FFF;
+ background-color: #446CD7; /* bright blue selected cell */
+ color: #FFF;
}
/* pagination */
.hippo-root .yui-dt-paginator {
- display: block;
- margin: 6px 0;
- white-space: nowrap;
+ display: block;
+ margin: 6px 0;
+ white-space: nowrap;
}
.hippo-root .yui-dt-paginator .yui-dt-first,
.hippo-root .yui-dt-paginator .yui-dt-last,
.hippo-root .yui-dt-paginator .yui-dt-selected {
- padding: 2px 6px;
+ padding: 2px 6px;
}
.hippo-root .yui-dt-paginator a.yui-dt-first,
.hippo-root .yui-dt-paginator a.yui-dt-last {
- text-decoration: none;
+ text-decoration: none;
}
.hippo-root .yui-dt-paginator .yui-dt-previous,
.hippo-root .yui-dt-paginator .yui-dt-next {
- display: none;
+ display: none;
}
.hippo-root a.yui-dt-page {
- border: 1px solid #CBCBCB;
- padding: 2px 6px;
- text-decoration: none;
- background-color: #fff
+ border: 1px solid #CBCBCB;
+ padding: 2px 6px;
+ text-decoration: none;
+ background-color: #fff
}
.hippo-root .yui-dt-selected {
- border: 1px solid #fff;
- background-color: #fff;
+ border: 1px solid #fff;
+ background-color: #fff;
}
+
+.hippo-root .yui-dialog * {
+ margin: 0;
+ border: 0;
+ font-weight: normal;
+ font-style: normal;
+ font-size: 100%;
+ font-family: inherit;
+ text-align: left;
+}
+
+.hippo-root .yui-simple-dialog .container-close {
+ top: 3px;
+}
+
+.hippo-root .yui-skin-sam .yui-panel {
+ border-width: 1px;
+}
+
+.hippo-root .yui-skin-sam .yui-dialog .ft span.default button {
+ color: #000;
+ background-color: #e3e3e3;
+ border: 1px solid #000;
+}
+
+.hippo-root .yui-skin-sam .yui-dialog .ft span.default button:hover {
+ background-color: #fff;
+ border: 1px solid #000;
+}
+
+.hippo-root .yui-skin-sam .yui-dialog strong {
+ font-weight: bold;
+}
+
+.hippo-root .yui-dialog * {
+ margin: 0;
+ border: 0;
+ font-weight: normal;
+ font-style: normal;
+ font-size: 100%;
+ font-family: inherit;
+ text-align: left;
+}
+
+.hippo-root .yui-simple-dialog .container-close {
+ top: 3px;
+}
+
+.hippo-root .yui-skin-sam .yui-panel {
+ border-width: 1px;
+}
+
+.hippo-root .yui-skin-sam .yui-dialog .ft span.default button {
+ color: #000;
+ background-color: #e3e3e3;
+ border: 1px solid #000;
+}
+
+.hippo-root .yui-skin-sam .yui-dialog .ft span.default button:hover {
+ background-color: #fff;
+ border: 1px solid #000;
+}
+
+.hippo-root .yui-skin-sam .yui-dialog strong {
+ font-weight: bold;
+}
\ No newline at end of file
Index: gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/GalleryWorkflowPlugin.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/GalleryWorkflowPlugin.java (revision 34000)
+++ gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/GalleryWorkflowPlugin.java (revision )
@@ -48,7 +48,6 @@
import org.hippoecm.frontend.plugins.gallery.model.GalleryProcessor;
import org.hippoecm.frontend.plugins.yui.upload.MultiFileUploadDialog;
import org.hippoecm.frontend.service.IBrowseService;
-import org.hippoecm.frontend.service.IEditorManager;
import org.hippoecm.frontend.service.ISettingsService;
import org.hippoecm.frontend.session.UserSession;
import org.hippoecm.frontend.translation.ILocaleProvider;
@@ -78,8 +77,8 @@
public class UploadDialog extends MultiFileUploadDialog {
private static final long serialVersionUID = 1L;
- public UploadDialog(IPluginConfig pluginConfig) {
- super(pluginConfig);
+ public UploadDialog(IPluginContext context, IPluginConfig config) {
+ super(context, config);
}
public IModel getTitle() {
@@ -265,7 +264,7 @@
typeComponent = new Label("type", "default").setVisible(false);
}
- UploadDialog dialog = new UploadDialog(getPluginConfig());
+ UploadDialog dialog = new UploadDialog(getPluginContext(), getPluginConfig());
dialog.add(typeComponent);
return dialog;
}
Index: api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/FileUploadWidget.html
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/FileUploadWidget.html (revision 34000)
+++ api/src/main/java/org/hippoecm/frontend/plugins/yui/upload/FileUploadWidget.html (revision )
@@ -23,6 +23,7 @@