Skip to content

Commit

Permalink
Migrated gritter to standardized package (openemr#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Sep 3, 2016
1 parent 3c6ecca commit ad9e5ce
Show file tree
Hide file tree
Showing 17 changed files with 846 additions and 40 deletions.
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"datatables.net-scroller-1-4-1": "datatables.net-scroller#1.4.1",
"datatables.net-scroller-jqui-1-4-1": "datatables.net-scroller-jqui#1.4.1",
"font-awesome-4-6-3": "font-awesome#4.6.3",
"jquery.gritter-1-7-4": "jquery.gritter#1.7.4",
"jquery-min-1-2-1": "https://code.jquery.com/jquery-1.2.1.min.js",
"jquery-min-1-2-2": "https://code.jquery.com/jquery-1.2.2.min.js",
"jquery-min-1-3-2": "https://code.jquery.com/jquery-1.3.2.min.js",
Expand Down
19 changes: 0 additions & 19 deletions library/js/jquery.gritter.min.js

This file was deleted.

Binary file removed patients/images/gritter-close-ie6.gif
Binary file not shown.
6 changes: 3 additions & 3 deletions patients/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@
<head>
<title><?php echo xlt('Patient Portal Login'); ?></title>

<script type="text/javascript" src="../library/js/jquery-1.5.js"></script>
<script type="text/javascript" src="../library/js/jquery.gritter.min.js"></script>
<script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-min-1-9-1/index.js"></script>
<script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery.gritter-1-7-4/js/jquery.gritter.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/jquery.gritter.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery.gritter-1-7-4/css/jquery.gritter.css" />
<link rel="stylesheet" type="text/css" href="css/base.css" />

<script type="text/javascript">
Expand Down
21 changes: 21 additions & 0 deletions public/assets/jquery.gritter-1-7-4/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "jquery.gritter",
"version": "1.7.4",
"main": [
"./js/jquery.gritter.js",
"./css/jquery.gritter.css"
],
"dependencies": {
"jquery": ">=1.8.2"
},
"homepage": "https://github.com/jboesch/Gritter",
"_release": "1.7.4",
"_resolution": {
"type": "version",
"tag": "1.7.4",
"commit": "7f0c27823f8862ad22860420d26eca933e60169d"
},
"_source": "https://github.com/jboesch/Gritter.git",
"_target": "1.7.4",
"_originalSource": "jquery.gritter"
}
61 changes: 61 additions & 0 deletions public/assets/jquery.gritter-1-7-4/README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Gritter for jQuery

A small growl-like notification plugin for jQuery
- http:https://boedesign.com/blog/2009/07/11/growl-for-jquery-gritter/

## Installation

$ bower install jquery.gritter

## Change Log

### Changes in 1.7.4 (February 24, 2012)

* Fixing bug where click event was being bound multiple times on hover. The result was the beforeClose callback being called multiple times. Thanks for commit aossowski!

### Changes in 1.7.3 (December 8, 2011)

* Added $.gritter.options.class_name option
* Added 'gritter-light' class_name option to use light messages instead of dark ones

### Changes in 1.7.2 (December 2, 2011)

* Added option to return false on "before_open" callback to determine whether or not to show the gritter message (good for setting a max)

### Changes in 1.7.1 (March 29, 2011)

* Dropped IE6 support
* Added position option to global options (bottom-left, top-left, top-right, bottom-right)

### Changes in 1.7 (March 25, 2011)

* Fixed 404 issue in the css when fetching '.' as an image
* Added callback parameter in before_close and after_close callbacks to determine whether it was closed manually by clicking the (X)

### Changes in 1.6 (December1, 2009)

* Commented code using JSDOC
* Major code cleanup/re-write
* Made it so when you hit the (X) close button, the notification slides up and vanishes instead of just vanishing
* Added optional "class_name" option for $.gritter.add() to apply a class to a specific notification
* Fixed IE7 issue pointed out by stoffel (http:https://boedesign.com/blog/2009/07/11/growl-for-jquery-gritter/)

### Changes in 1.5 (October 21, 2009)

* Renamed the global option parameters to make more sense
* Made it so the global options are only being ran once instead of each $.gritter.add() call

### Changes in 1.4 (October 20, 2009)

* Added callbacks (before_open, before_close, after_open, after_close) to the gritter notifications
* Added callbacks (before_close, after_close) to the removeAll() function
* Using 1 image for the CSS instead of 5 (Thanks to Ozum Eldogan)
* Added option to over-ride gritter global options with $.extend

### Changes in 1.3 (August 1, 2009)

* Fixed IE6 positioning bug

### Changes in 1.2 (July 13, 2009)

* Fixed hover bug (pointed out by Beel & tXptr on the comments)
8 changes: 8 additions & 0 deletions public/assets/jquery.gritter-1-7-4/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "jquery.gritter",
"version": "1.7.4",
"main": ["./js/jquery.gritter.js", "./css/jquery.gritter.css"],
"dependencies": {
"jquery": ">=1.8.2"
}
}
35 changes: 17 additions & 18 deletions patients/css/jquery.gritter.css → ...uery.gritter-1-7-4/css/jquery.gritter.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,25 @@
.gritter-item p {
padding:0;
margin:0;
word-wrap:break-word;
}
.gritter-close {
display:none;
position:absolute;
top:5px;
right:3px;
left:3px;
background:url(../images/gritter.png) no-repeat left top;
cursor:pointer;
width:30px;
height:30px;
text-indent:-9999em;
}
.gritter-title {
font-size:14px;
font-weight:bold;
padding:0 0 7px 0;
display:block;
text-shadow:1px 1px #000; /* Not supported by IE :( */
text-shadow:1px 1px 0 #000; /* Not supported by IE :( */
}
.gritter-image {
width:48px;
Expand All @@ -80,24 +83,20 @@
}
.gritter-with-image,
.gritter-without-image {
padding:0 0 5px 0;
padding:0;
}
.gritter-with-image {
width:220px;
float:right;
}

.red {
background-color: red;
padding: 2px;
}

.green {
background-color: #008000;
padding: 2px;
}

.blue {
background-color: blue;
padding: 2px;
}
/* for the light (white) version of the gritter notice */
.gritter-light .gritter-item,
.gritter-light .gritter-bottom,
.gritter-light .gritter-top,
.gritter-light .gritter-close {
background-image: url(../images/gritter-light.png);
color: #222;
}
.gritter-light .gritter-title {
text-shadow: none;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ad9e5ce

Please sign in to comment.