Commit 3006a8cbbe994aabe03596c5b4b49a6959454669

Authored by bernard
1 parent 7c2d851a

Fixed notify javascript and errors from migration from 4.0.0

@@ -22,71 +22,56 @@ @@ -22,71 +22,56 @@
22 22
23 package org.richfaces.component; 23 package org.richfaces.component;
24 24
25 -import org.richfaces.cdk.annotations.Attribute;  
26 -  
27 public interface NotifyAttributes { 25 public interface NotifyAttributes {
28 26
29 - @Attribute  
30 boolean isSticky(); 27 boolean isSticky();
31 28
32 void setSticky(boolean sticky); 29 void setSticky(boolean sticky);
33 30
34 - @Attribute  
35 Integer getStayTime(); 31 Integer getStayTime();
36 32
37 void setStayTime(Integer time); 33 void setStayTime(Integer time);
38 34
39 - @Attribute  
40 Integer getDelay(); 35 Integer getDelay();
41 36
42 void setDelay(Integer delay); 37 void setDelay(Integer delay);
43 38
44 - @Attribute  
45 String getStyleClass(); 39 String getStyleClass();
46 40
47 void setStyleClass(String styleClass); 41 void setStyleClass(String styleClass);
48 42
49 - @Attribute  
50 String getAppearAnimation(); 43 String getAppearAnimation();
51 44
52 void setAppearAnimation(String appearAnimation); 45 void setAppearAnimation(String appearAnimation);
53 46
54 - @Attribute  
55 String getHideAnimation(); 47 String getHideAnimation();
56 48
57 void setHideAnimation(String hideAnimation); 49 void setHideAnimation(String hideAnimation);
58 50
59 - @Attribute  
60 Integer getAnimationSpeed(); 51 Integer getAnimationSpeed();
61 52
62 void setAnimationSpeed(Integer animationSpeed); 53 void setAnimationSpeed(Integer animationSpeed);
63 54
64 - @Attribute  
65 boolean isShowHistory(); 55 boolean isShowHistory();
66 56
67 void setShowHistory(boolean showHistory); 57 void setShowHistory(boolean showHistory);
68 58
69 - @Attribute  
70 boolean isNonblocking(); 59 boolean isNonblocking();
71 60
72 void setNonblocking(boolean nonblocking); 61 void setNonblocking(boolean nonblocking);
73 62
74 - @Attribute  
75 boolean isShowShadow(); 63 boolean isShowShadow();
76 64
77 void setShowShadow(boolean showShadow); 65 void setShowShadow(boolean showShadow);
78 66
79 - @Attribute(defaultValue = "true")  
80 boolean isShowCloseButton(); 67 boolean isShowCloseButton();
81 68
82 void setShowCloseButton(boolean showCloseButton); 69 void setShowCloseButton(boolean showCloseButton);
83 70
84 - @Attribute  
85 Double getNonblockingOpacity(); 71 Double getNonblockingOpacity();
86 72
87 void setNonblockingOpacity(Double nonblockingOpacity); 73 void setNonblockingOpacity(Double nonblockingOpacity);
88 74
89 - @Attribute  
90 String getStack(); 75 String getStack();
91 76
92 void setStack(String stack); 77 void setStack(String stack);
@@ -191,6 +191,12 @@ @@ -191,6 +191,12 @@
191 opts.pnotify_text = options; 191 opts.pnotify_text = options;
192 } else { 192 } else {
193 opts = $.extend({}, $.pnotify.defaults, options); 193 opts = $.extend({}, $.pnotify.defaults, options);
  194 + if (opts['pnotify_animation'] instanceof Object) {
  195 + opts['pnotify_animation'] = $.extend({
  196 + effect_in:$.pnotify.defaults.pnotify_animation,
  197 + effect_out:$.pnotify.defaults.pnotify_animation
  198 + }, opts['pnotify_animation']);
  199 + }
194 } 200 }
195 201
196 if (opts.pnotify_before_init) { 202 if (opts.pnotify_before_init) {
Please register or login to post a comment