This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.portlet-dropzone { | |
transition: padding 0.5s linear; | |
} | |
.yui3-dd-drop-active-valid .portlet-dropzone { | |
outline: 1px dotted black; | |
padding: 10px; | |
margin: 3px; | |
min-height: 100px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.portlet-dropzone { | |
transition: padding 0.5s linear; | |
} | |
.dragging .portlet-dropzone { | |
outline: 1px dotted black; | |
padding: 10px; | |
margin: 3px; | |
min-height: 100px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="java.util.HashMap"%> | |
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> | |
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> | |
<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui" %> | |
<portlet:defineObjects /> | |
<portlet:actionURL name="submitArticle" var="submitArticle"></portlet:actionURL> | |
<aui:form action="<%=submitArticle %>"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.olafk.liferay.rsp.portlet; | |
import com.liferay.portal.kernel.util.ParamUtil; | |
import com.liferay.portal.kernel.util.WebKeys; | |
import com.liferay.portal.kernel.workflow.WorkflowConstants; | |
import com.liferay.portal.service.ServiceContext; | |
import com.liferay.portal.theme.ThemeDisplay; | |
import com.liferay.portlet.journal.model.JournalArticle; | |
import com.liferay.portlet.journal.model.JournalArticleConstants; | |
import com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<definition xmlns="http://www.xmlportletfactory.org/xml/xmlportletfactory" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xmlportletfactory.org/xml/xmlportletfactory xmlportletfactory.xsd"> | |
<commonData> | |
<client>olafk</client> | |
<projectName>customer</projectName> | |
<version>1</version> | |
</commonData> | |
<applications> | |
<application> | |
<classDef> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Liferay.on('initLayout', function(event) { | |
Liferay.once(function() { | |
Liferay.Layout.on([ 'drag:end', 'drag:start' ], function(event) { | |
console.log('event type', event.type, event); | |
AUI().one("#main-content").toggleClass('dragging', event.type == 'drag:start'); | |
}); | |
}, Liferay.Layout, 'bindDragDropListeners'); | |
}); |