Skip to content

Commit

Permalink
[update] Last stable version.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyepez003 committed Jul 25, 2014
1 parent 51de25b commit f0824ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<parameter key="jquery.ui.tooltip.class">YsUITooltip</parameter>
<parameter key="jquery.ui.draggable.class">YsUIDraggable</parameter>
<parameter key="jquery.ui.droppable.class">YsUIDroppable</parameter>
<parameter key="jquery.ui.sortable.class">YsUISortable</parameter>
<parameter key="jquery.ui.selectable.class">YsUISelectable</parameter>
<parameter key="jquery.ui.resizable.class">YsUIResizable</parameter>
<parameter key="jquery.ui.effect.class">YsUIEffect</parameter>
<parameter key="jquery.ui.blockUI.class">YsBlockUI</parameter>
Expand Down Expand Up @@ -80,6 +82,8 @@
<argument key="ui.tooltip">%jquery.ui.tooltip.class%</argument>
<argument key="ui.draggable">%jquery.ui.draggable.class%</argument>
<argument key="ui.droppable">%jquery.ui.droppable.class%</argument>
<argument key="ui.sortable">%jquery.ui.sortable.class%</argument>
<argument key="ui.selectable">%jquery.ui.selectable.class%</argument>
<argument key="ui.resizable">%jquery.ui.resizable.class%</argument>
<argument key="ui.effect">%jquery.ui.effect.class%</argument>
<argument key="ui.video">%jquery.ui.video.class%</argument>
Expand Down
12 changes: 11 additions & 1 deletion UI/Message/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
* @author oyepez
*/
class Notification{


const NOTICE_LEVEL = 'notice';
const ERROR_LEVEL = 'error';
const SAY_LEVEL = 'say';
const ALARM_LEVEL = 'alarm';
const ALERT_LEVEL = 'alert';

public static function notice($content){
return self::build(PNotify::notice($content));
}
Expand All @@ -47,4 +53,8 @@ public static function alert($content){
protected static function build($notification){
return JQuery::newInstance()->execute($notification);
}

public static function notify($level, $content){
return self::$level($content);
}
}

0 comments on commit f0824ea

Please sign in to comment.