Skip to content

Instantly share code, notes, and snippets.

@vstorm83
vstorm83 / dialog.patch
Created April 1, 2013 03:35
dialog patch
diff --git a/home/phuongvv/Desktop/Classy Groundcovers - Finding Your Perfect Plants_files/dialog.js b/Classy Groundcovers - Finding Your Perfect Plants_files/dialog.js
index ee6badf..b941c2c 100644
--- a/home/phuongvv/Desktop/Classy Groundcovers - Finding Your Perfect Plants_files/dialog.js
+++ b/Classy Groundcovers - Finding Your Perfect Plants_files/dialog.js
@@ -18,6 +18,7 @@ $(function() {
} else if (typeof (r.w) === 'number') {
w = r.w;
}
+ var $link = $(this);
d
@vstorm83
vstorm83 / TemplateResolver.patch
Created January 10, 2013 05:26
Problem when import Juzu (0.6.0-beta9-SNAPSHOT) project into Eclipse
diff --git a/core/src/main/java/juzu/impl/plugin/template/metamodel/TemplateResolver.java b/core/src/main/java/juzu/impl/plugin/template/metamodel/TemplateResolv
index e50e05d..4badab3 100644
--- a/core/src/main/java/juzu/impl/plugin/template/metamodel/TemplateResolver.java
+++ b/core/src/main/java/juzu/impl/plugin/template/metamodel/TemplateResolver.java
@@ -165,7 +165,7 @@ public class TemplateResolver implements Serializable {
final Element[] elements = new Element[types.size()];
int index = 0;
for (Name type : types) {
- elements[index++] = context.getTypeElement(type.getIdentifier());
+ elements[index++] = context.getTypeElement(type.toString());
@vstorm83
vstorm83 / juzu-ajax.patch
Created April 16, 2012 11:11
Juzu ajax bug on IE
diff --git a/core/src/main/java/org/juzu/impl/plugin/ajax/ApplicationAsset.java b/core/src/main/java/org/juzu/impl/plugin/ajax/ApplicationAsset.java
index 85739cb..ada70f7 100644
--- a/core/src/main/java/org/juzu/impl/plugin/ajax/ApplicationAsset.java
+++ b/core/src/main/java/org/juzu/impl/plugin/ajax/ApplicationAsset.java
@@ -51,8 +51,10 @@ public class ApplicationAsset extends Route implements Provider<ApplicationAsset
resp.setContentType("text/javascript");
PrintWriter printer = resp.getWriter();
- //
- printer.println("HTMLElement.prototype." + scope + "=function(){");
@vstorm83
vstorm83 / TestNavigationServiceRebase.java
Created June 20, 2011 10:51
TestNavigationServiceRebase - testConsistentStateAfterRebase
public void testConsistentStateAfterRebase() throws Exception
{
MOPService mop = mgr.getPOMService();
Site portal = mop.getModel().getWorkspace().addSite(ObjectType.PORTAL_SITE, "consistent_state_after_rebase");
Navigation def = portal.getRootNavigation().addChild("default");
def.addChild("a");
//
sync(true);
@vstorm83
vstorm83 / RenameNode.java
Created May 25, 2011 02:25
TestNavigationServiceSave - TestRename
public void testRenameNode() throws Exception
{
MOPService mop = mgr.getPOMService();
Site portal = mop.getModel().getWorkspace().addSite(ObjectType.PORTAL_SITE, "rename_node2");
portal.getRootNavigation().addChild("default");
//
sync(true);
//
@vstorm83
vstorm83 / NAVIGATION_NO_SITE.java
Created May 23, 2011 08:36
test NavigationError.NAVIGATION_NO_SITE
public void testRebaseAfterRemoveNavigation()
{
new UnitTest()
{
public void execute() throws Exception
{
storage_.create(new PortalConfig("portal", "testRebaseAfterRemoveNavigation"));
end(true);
//