papermill 1.3.6 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +225 -82
- data/TODO.txt +0 -6
- data/VERSION +1 -1
- data/app/controllers/papermill_controller.rb +5 -4
- data/generators/papermill_initializer/papermill_initializer.rb +2 -3
- data/lib/papermill/papermill_helper.rb +13 -15
- data/lib/papermill/papermill_options.rb +1 -1
- data/public/.DS_Store +0 -0
- data/public/{papermill → Jcrop}/images/Jcrop.gif +0 -0
- data/public/{papermill → Jcrop}/jquery.Jcrop.css +1 -1
- data/public/Jcrop/jquery.Jcrop.js +1197 -0
- data/public/{papermill → Jcrop}/jquery.Jcrop.min.js +0 -0
- data/public/jgrowl/jquery.jgrowl.css +18 -14
- data/public/jgrowl/jquery.jgrowl.js +314 -0
- data/public/jgrowl/jquery.jgrowl_minimized.js +9 -4
- data/public/papermill/papermill.css +0 -11
- data/public/{papermill → swfupload}/swfupload.js +0 -0
- data/public/{papermill → swfupload}/swfupload.swf +0 -0
- metadata +8 -8
- data/public/papermill/jquery-1.3.2.min.js +0 -19
- data/public/papermill/jquery-ui-1.7.2.custom.min.js +0 -34
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
|
-
|
2
1
|
div.jGrowl {
|
3
2
|
padding: 10px;
|
4
3
|
z-index: 9999;
|
5
4
|
color: #fff;
|
5
|
+
font-size: 12px;
|
6
6
|
}
|
7
7
|
|
8
8
|
/** Special IE6 Style Positioning **/
|
@@ -39,31 +39,35 @@ div.ie6.center {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
/** Normal Style Positions **/
|
42
|
+
div.jGrowl {
|
43
|
+
position: absolute;
|
44
|
+
}
|
45
|
+
|
42
46
|
body > div.jGrowl {
|
43
47
|
position: fixed;
|
44
48
|
}
|
45
49
|
|
46
|
-
|
50
|
+
div.jGrowl.top-left {
|
47
51
|
left: 0px;
|
48
52
|
top: 0px;
|
49
53
|
}
|
50
54
|
|
51
|
-
|
55
|
+
div.jGrowl.top-right {
|
52
56
|
right: 0px;
|
53
57
|
top: 0px;
|
54
58
|
}
|
55
59
|
|
56
|
-
|
60
|
+
div.jGrowl.bottom-left {
|
57
61
|
left: 0px;
|
58
62
|
bottom: 0px;
|
59
63
|
}
|
60
64
|
|
61
|
-
|
65
|
+
div.jGrowl.bottom-right {
|
62
66
|
right: 0px;
|
63
67
|
bottom: 0px;
|
64
68
|
}
|
65
69
|
|
66
|
-
|
70
|
+
div.jGrowl.center {
|
67
71
|
top: 0px;
|
68
72
|
width: 50%;
|
69
73
|
left: 25%;
|
@@ -78,14 +82,15 @@ div.center div.jGrowl-notification, div.center div.jGrowl-closer {
|
|
78
82
|
div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
|
79
83
|
background-color: #000;
|
80
84
|
opacity: .85;
|
81
|
-
|
85
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
|
86
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
|
82
87
|
zoom: 1;
|
83
88
|
width: 235px;
|
84
89
|
padding: 10px;
|
85
90
|
margin-top: 5px;
|
86
91
|
margin-bottom: 5px;
|
87
92
|
font-family: Tahoma, Arial, Helvetica, sans-serif;
|
88
|
-
font-size:
|
93
|
+
font-size: 1em;
|
89
94
|
text-align: left;
|
90
95
|
display: none;
|
91
96
|
-moz-border-radius: 5px;
|
@@ -96,25 +101,24 @@ div.jGrowl div.jGrowl-notification {
|
|
96
101
|
min-height: 40px;
|
97
102
|
}
|
98
103
|
|
99
|
-
div.jGrowl div.jGrowl-notification div.header {
|
104
|
+
div.jGrowl div.jGrowl-notification div.jGrowl-header {
|
100
105
|
font-weight: bold;
|
101
|
-
font-size:
|
106
|
+
font-size: .85em;
|
102
107
|
}
|
103
108
|
|
104
|
-
div.jGrowl div.jGrowl-notification div.close {
|
109
|
+
div.jGrowl div.jGrowl-notification div.jGrowl-close {
|
105
110
|
z-index: 99;
|
106
111
|
float: right;
|
107
112
|
font-weight: bold;
|
108
|
-
font-size:
|
113
|
+
font-size: 1em;
|
109
114
|
cursor: pointer;
|
110
115
|
}
|
111
116
|
|
112
117
|
div.jGrowl div.jGrowl-closer {
|
113
|
-
height: 15px;
|
114
118
|
padding-top: 4px;
|
115
119
|
padding-bottom: 4px;
|
116
120
|
cursor: pointer;
|
117
|
-
font-size:
|
121
|
+
font-size: .9em;
|
118
122
|
font-weight: bold;
|
119
123
|
text-align: center;
|
120
124
|
}
|
@@ -0,0 +1,314 @@
|
|
1
|
+
/**
|
2
|
+
* jGrowl 1.2.5
|
3
|
+
*
|
4
|
+
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
|
+
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
6
|
+
*
|
7
|
+
* Written by Stan Lemon <stosh1985@gmail.com>
|
8
|
+
* Last updated: 2009.12.15
|
9
|
+
*
|
10
|
+
* jGrowl is a jQuery plugin implementing unobtrusive userland notifications. These
|
11
|
+
* notifications function similarly to the Growl Framework available for
|
12
|
+
* Mac OS X (http://growl.info).
|
13
|
+
*
|
14
|
+
* To Do:
|
15
|
+
* - Move library settings to containers and allow them to be changed per container
|
16
|
+
*
|
17
|
+
* Changes in 1.2.5
|
18
|
+
* - Changed wrapper jGrowl's options usage to "o" instead of $.jGrowl.defaults
|
19
|
+
* - Added themeState option to control 'highlight' or 'error' for jQuery UI
|
20
|
+
* - Ammended some CSS to provide default positioning for nested usage.
|
21
|
+
* - Changed some CSS to be prefixed with jGrowl- to prevent namespacing issues
|
22
|
+
*
|
23
|
+
* Changes in 1.2.4
|
24
|
+
* - Fixed IE bug with the close-all button
|
25
|
+
* - Fixed IE bug with the filter CSS attribute (special thanks to gotwic)
|
26
|
+
* - Update IE opacity CSS
|
27
|
+
* - Changed font sizes to use "em", and only set the base style
|
28
|
+
*
|
29
|
+
* Changes in 1.2.3
|
30
|
+
* - The callbacks no longer use the container as context, instead they use the actual notification
|
31
|
+
* - The callbacks now receive the container as a parameter after the options parameter
|
32
|
+
* - beforeOpen and beforeClose now check the return value, if it's false - the notification does
|
33
|
+
* not continue. The open callback will also halt execution if it returns false.
|
34
|
+
* - Fixed bug where containers would get confused
|
35
|
+
* - Expanded the pause functionality to pause an entire container.
|
36
|
+
*
|
37
|
+
* Changes in 1.2.2
|
38
|
+
* - Notification can now be theme rolled for jQuery UI, special thanks to Jeff Chan!
|
39
|
+
*
|
40
|
+
* Changes in 1.2.1
|
41
|
+
* - Fixed instance where the interval would fire the close method multiple times.
|
42
|
+
* - Added CSS to hide from print media
|
43
|
+
* - Fixed issue with closer button when div { position: relative } is set
|
44
|
+
* - Fixed leaking issue with multiple containers. Special thanks to Matthew Hanlon!
|
45
|
+
*
|
46
|
+
* Changes in 1.2.0
|
47
|
+
* - Added message pooling to limit the number of messages appearing at a given time.
|
48
|
+
* - Closing a notification is now bound to the notification object and triggered by the close button.
|
49
|
+
*
|
50
|
+
* Changes in 1.1.2
|
51
|
+
* - Added iPhone styled example
|
52
|
+
* - Fixed possible IE7 bug when determining if the ie6 class shoudl be applied.
|
53
|
+
* - Added template for the close button, so that it's content could be customized.
|
54
|
+
*
|
55
|
+
* Changes in 1.1.1
|
56
|
+
* - Fixed CSS styling bug for ie6 caused by a mispelling
|
57
|
+
* - Changes height restriction on default notifications to min-height
|
58
|
+
* - Added skinned examples using a variety of images
|
59
|
+
* - Added the ability to customize the content of the [close all] box
|
60
|
+
* - Added jTweet, an example of using jGrowl + Twitter
|
61
|
+
*
|
62
|
+
* Changes in 1.1.0
|
63
|
+
* - Multiple container and instances.
|
64
|
+
* - Standard $.jGrowl() now wraps $.fn.jGrowl() by first establishing a generic jGrowl container.
|
65
|
+
* - Instance methods of a jGrowl container can be called by $.fn.jGrowl(methodName)
|
66
|
+
* - Added glue preferenced, which allows notifications to be inserted before or after nodes in the container
|
67
|
+
* - Added new log callback which is called before anything is done for the notification
|
68
|
+
* - Corner's attribute are now applied on an individual notification basis.
|
69
|
+
*
|
70
|
+
* Changes in 1.0.4
|
71
|
+
* - Various CSS fixes so that jGrowl renders correctly in IE6.
|
72
|
+
*
|
73
|
+
* Changes in 1.0.3
|
74
|
+
* - Fixed bug with options persisting across notifications
|
75
|
+
* - Fixed theme application bug
|
76
|
+
* - Simplified some selectors and manipulations.
|
77
|
+
* - Added beforeOpen and beforeClose callbacks
|
78
|
+
* - Reorganized some lines of code to be more readable
|
79
|
+
* - Removed unnecessary this.defaults context
|
80
|
+
* - If corners plugin is present, it's now customizable.
|
81
|
+
* - Customizable open animation.
|
82
|
+
* - Customizable close animation.
|
83
|
+
* - Customizable animation easing.
|
84
|
+
* - Added customizable positioning (top-left, top-right, bottom-left, bottom-right, center)
|
85
|
+
*
|
86
|
+
* Changes in 1.0.2
|
87
|
+
* - All CSS styling is now external.
|
88
|
+
* - Added a theme parameter which specifies a secondary class for styling, such
|
89
|
+
* that notifications can be customized in appearance on a per message basis.
|
90
|
+
* - Notification life span is now customizable on a per message basis.
|
91
|
+
* - Added the ability to disable the global closer, enabled by default.
|
92
|
+
* - Added callbacks for when a notification is opened or closed.
|
93
|
+
* - Added callback for the global closer.
|
94
|
+
* - Customizable animation speed.
|
95
|
+
* - jGrowl now set itself up and tears itself down.
|
96
|
+
*
|
97
|
+
* Changes in 1.0.1:
|
98
|
+
* - Removed dependency on metadata plugin in favor of .data()
|
99
|
+
* - Namespaced all events
|
100
|
+
*/
|
101
|
+
(function($) {
|
102
|
+
|
103
|
+
/** jGrowl Wrapper - Establish a base jGrowl Container for compatibility with older releases. **/
|
104
|
+
$.jGrowl = function( m , o ) {
|
105
|
+
// To maintain compatibility with older version that only supported one instance we'll create the base container.
|
106
|
+
if ( $('#jGrowl').size() == 0 )
|
107
|
+
$('<div id="jGrowl"></div>').addClass( (o && o.position) ? o.position : $.jGrowl.defaults.position ).appendTo('body');
|
108
|
+
|
109
|
+
// Create a notification on the container.
|
110
|
+
$('#jGrowl').jGrowl(m,o);
|
111
|
+
};
|
112
|
+
|
113
|
+
|
114
|
+
/** Raise jGrowl Notification on a jGrowl Container **/
|
115
|
+
$.fn.jGrowl = function( m , o ) {
|
116
|
+
if ( $.isFunction(this.each) ) {
|
117
|
+
var args = arguments;
|
118
|
+
|
119
|
+
return this.each(function() {
|
120
|
+
var self = this;
|
121
|
+
|
122
|
+
/** Create a jGrowl Instance on the Container if it does not exist **/
|
123
|
+
if ( $(this).data('jGrowl.instance') == undefined ) {
|
124
|
+
$(this).data('jGrowl.instance', $.extend( new $.fn.jGrowl(), { notifications: [], element: null, interval: null } ));
|
125
|
+
$(this).data('jGrowl.instance').startup( this );
|
126
|
+
}
|
127
|
+
|
128
|
+
/** Optionally call jGrowl instance methods, or just raise a normal notification **/
|
129
|
+
if ( $.isFunction($(this).data('jGrowl.instance')[m]) ) {
|
130
|
+
$(this).data('jGrowl.instance')[m].apply( $(this).data('jGrowl.instance') , $.makeArray(args).slice(1) );
|
131
|
+
} else {
|
132
|
+
$(this).data('jGrowl.instance').create( m , o );
|
133
|
+
}
|
134
|
+
});
|
135
|
+
};
|
136
|
+
};
|
137
|
+
|
138
|
+
$.extend( $.fn.jGrowl.prototype , {
|
139
|
+
|
140
|
+
/** Default JGrowl Settings **/
|
141
|
+
defaults: {
|
142
|
+
pool: 0,
|
143
|
+
header: '',
|
144
|
+
group: '',
|
145
|
+
sticky: false,
|
146
|
+
position: 'top-right',
|
147
|
+
glue: 'after',
|
148
|
+
theme: 'default',
|
149
|
+
themeState: 'highlight',
|
150
|
+
corners: '10px',
|
151
|
+
check: 250,
|
152
|
+
life: 3000,
|
153
|
+
speed: 'normal',
|
154
|
+
easing: 'swing',
|
155
|
+
closer: true,
|
156
|
+
closeTemplate: '×',
|
157
|
+
closerTemplate: '<div>[ close all ]</div>',
|
158
|
+
log: function(e,m,o) {},
|
159
|
+
beforeOpen: function(e,m,o) {},
|
160
|
+
open: function(e,m,o) {},
|
161
|
+
beforeClose: function(e,m,o) {},
|
162
|
+
close: function(e,m,o) {},
|
163
|
+
animateOpen: {
|
164
|
+
opacity: 'show'
|
165
|
+
},
|
166
|
+
animateClose: {
|
167
|
+
opacity: 'hide'
|
168
|
+
}
|
169
|
+
},
|
170
|
+
|
171
|
+
notifications: [],
|
172
|
+
|
173
|
+
/** jGrowl Container Node **/
|
174
|
+
element: null,
|
175
|
+
|
176
|
+
/** Interval Function **/
|
177
|
+
interval: null,
|
178
|
+
|
179
|
+
/** Create a Notification **/
|
180
|
+
create: function( message , o ) {
|
181
|
+
var o = $.extend({}, this.defaults, o);
|
182
|
+
|
183
|
+
this.notifications.push({ message: message , options: o });
|
184
|
+
|
185
|
+
o.log.apply( this.element , [this.element,message,o] );
|
186
|
+
},
|
187
|
+
|
188
|
+
render: function( notification ) {
|
189
|
+
var self = this;
|
190
|
+
var message = notification.message;
|
191
|
+
var o = notification.options;
|
192
|
+
|
193
|
+
var notification = $(
|
194
|
+
'<div class="jGrowl-notification ' + o.themeState + ' ui-corner-all' +
|
195
|
+
((o.group != undefined && o.group != '') ? ' ' + o.group : '') + '">' +
|
196
|
+
'<div class="jGrowl-close">' + o.closeTemplate + '</div>' +
|
197
|
+
'<div class="jGrowl-header">' + o.header + '</div>' +
|
198
|
+
'<div class="jGrowl-message">' + message + '</div></div>'
|
199
|
+
).data("jGrowl", o).addClass(o.theme).children('div.jGrowl-close').bind("click.jGrowl", function() {
|
200
|
+
$(this).parent().trigger('jGrowl.close');
|
201
|
+
}).parent();
|
202
|
+
|
203
|
+
|
204
|
+
/** Notification Actions **/
|
205
|
+
$(notification).bind("mouseover.jGrowl", function() {
|
206
|
+
$('div.jGrowl-notification', self.element).data("jGrowl.pause", true);
|
207
|
+
}).bind("mouseout.jGrowl", function() {
|
208
|
+
$('div.jGrowl-notification', self.element).data("jGrowl.pause", false);
|
209
|
+
}).bind('jGrowl.beforeOpen', function() {
|
210
|
+
if ( o.beforeOpen.apply( notification , [notification,message,o,self.element] ) != false ) {
|
211
|
+
$(this).trigger('jGrowl.open');
|
212
|
+
}
|
213
|
+
}).bind('jGrowl.open', function() {
|
214
|
+
if ( o.open.apply( notification , [notification,message,o,self.element] ) != false ) {
|
215
|
+
if ( o.glue == 'after' ) {
|
216
|
+
$('div.jGrowl-notification:last', self.element).after(notification);
|
217
|
+
} else {
|
218
|
+
$('div.jGrowl-notification:first', self.element).before(notification);
|
219
|
+
}
|
220
|
+
|
221
|
+
$(this).animate(o.animateOpen, o.speed, o.easing, function() {
|
222
|
+
// Fixes some anti-aliasing issues with IE filters.
|
223
|
+
if ($.browser.msie && (parseInt($(this).css('opacity'), 10) === 1 || parseInt($(this).css('opacity'), 10) === 0))
|
224
|
+
this.style.removeAttribute('filter');
|
225
|
+
|
226
|
+
$(this).data("jGrowl").created = new Date();
|
227
|
+
});
|
228
|
+
}
|
229
|
+
}).bind('jGrowl.beforeClose', function() {
|
230
|
+
if ( o.beforeClose.apply( notification , [notification,message,o,self.element] ) != false )
|
231
|
+
$(this).trigger('jGrowl.close');
|
232
|
+
}).bind('jGrowl.close', function() {
|
233
|
+
// Pause the notification, lest during the course of animation another close event gets called.
|
234
|
+
$(this).data('jGrowl.pause', true);
|
235
|
+
$(this).animate(o.animateClose, o.speed, o.easing, function() {
|
236
|
+
$(this).remove();
|
237
|
+
var close = o.close.apply( notification , [notification,message,o,self.element] );
|
238
|
+
|
239
|
+
if ( $.isFunction(close) )
|
240
|
+
close.apply( notification , [notification,message,o,self.element] );
|
241
|
+
});
|
242
|
+
}).trigger('jGrowl.beforeOpen');
|
243
|
+
|
244
|
+
/** Optional Corners Plugin **/
|
245
|
+
if ( $.fn.corner != undefined ) $(notification).corner( o.corners );
|
246
|
+
|
247
|
+
/** Add a Global Closer if more than one notification exists **/
|
248
|
+
if ( $('div.jGrowl-notification:parent', self.element).size() > 1 &&
|
249
|
+
$('div.jGrowl-closer', self.element).size() == 0 && this.defaults.closer != false ) {
|
250
|
+
$(this.defaults.closerTemplate).addClass('jGrowl-closer ui-state-highlight ui-corner-all').addClass(this.defaults.theme)
|
251
|
+
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
|
252
|
+
.bind("click.jGrowl", function() {
|
253
|
+
$(this).siblings().children('div.close').trigger("click.jGrowl");
|
254
|
+
|
255
|
+
if ( $.isFunction( self.defaults.closer ) ) {
|
256
|
+
self.defaults.closer.apply( $(this).parent()[0] , [$(this).parent()[0]] );
|
257
|
+
}
|
258
|
+
});
|
259
|
+
};
|
260
|
+
},
|
261
|
+
|
262
|
+
/** Update the jGrowl Container, removing old jGrowl notifications **/
|
263
|
+
update: function() {
|
264
|
+
$(this.element).find('div.jGrowl-notification:parent').each( function() {
|
265
|
+
if ( $(this).data("jGrowl") != undefined && $(this).data("jGrowl").created != undefined &&
|
266
|
+
($(this).data("jGrowl").created.getTime() + $(this).data("jGrowl").life) < (new Date()).getTime() &&
|
267
|
+
$(this).data("jGrowl").sticky != true &&
|
268
|
+
($(this).data("jGrowl.pause") == undefined || $(this).data("jGrowl.pause") != true) ) {
|
269
|
+
|
270
|
+
// Pause the notification, lest during the course of animation another close event gets called.
|
271
|
+
$(this).trigger('jGrowl.beforeClose');
|
272
|
+
}
|
273
|
+
});
|
274
|
+
|
275
|
+
if ( this.notifications.length > 0 &&
|
276
|
+
(this.defaults.pool == 0 || $(this.element).find('div.jGrowl-notification:parent').size() < this.defaults.pool) )
|
277
|
+
this.render( this.notifications.shift() );
|
278
|
+
|
279
|
+
if ( $(this.element).find('div.jGrowl-notification:parent').size() < 2 ) {
|
280
|
+
$(this.element).find('div.jGrowl-closer').animate(this.defaults.animateClose, this.defaults.speed, this.defaults.easing, function() {
|
281
|
+
$(this).remove();
|
282
|
+
});
|
283
|
+
}
|
284
|
+
},
|
285
|
+
|
286
|
+
/** Setup the jGrowl Notification Container **/
|
287
|
+
startup: function(e) {
|
288
|
+
this.element = $(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');
|
289
|
+
this.interval = setInterval( function() {
|
290
|
+
$(e).data('jGrowl.instance').update();
|
291
|
+
}, this.defaults.check);
|
292
|
+
|
293
|
+
if ($.browser.msie && parseInt($.browser.version) < 7 && !window["XMLHttpRequest"]) {
|
294
|
+
$(this.element).addClass('ie6');
|
295
|
+
}
|
296
|
+
},
|
297
|
+
|
298
|
+
/** Shutdown jGrowl, removing it and clearing the interval **/
|
299
|
+
shutdown: function() {
|
300
|
+
$(this.element).removeClass('jGrowl').find('div.jGrowl-notification').remove();
|
301
|
+
clearInterval( this.interval );
|
302
|
+
},
|
303
|
+
|
304
|
+
close: function() {
|
305
|
+
$(this.element).find('div.jGrowl-notification').each(function(){
|
306
|
+
$(this).trigger('jGrowl.beforeClose');
|
307
|
+
});
|
308
|
+
}
|
309
|
+
});
|
310
|
+
|
311
|
+
/** Reference the Defaults Object for compatibility with older versions of jGrowl **/
|
312
|
+
$.jGrowl.defaults = $.fn.jGrowl.prototype.defaults;
|
313
|
+
|
314
|
+
})(jQuery);
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
if($.isFunction($(this).data('jGrowl.instance')[m])){$(this).data('jGrowl.instance')[m].apply($(this).data('jGrowl.instance'),$.makeArray(args).slice(1));}else{$(this).data('jGrowl.instance').create(m,o);}});};};$.extend($.fn.jGrowl.prototype,{defaults:{pool:0,header:'',group:'',sticky:false,position:'top-right',glue:'after',theme:'default',corners:'10px',check:250,life:3000,speed:'normal',easing:'swing',closer:true,closeTemplate:'×',closerTemplate:'<div>[ close all ]</div>',log:function(e,m,o){},beforeOpen:function(e,m,o){},open:function(e,m,o){},beforeClose:function(e,m,o){},close:function(e,m,o){},animateOpen:{opacity:'show'},animateClose:{opacity:'hide'}},notifications:[],element:null,interval:null,create:function(message,o){var o=$.extend({},this.defaults,o);this.notifications
|
4
|
-
|
1
|
+
(function($){$.jGrowl=function(m,o){if($('#jGrowl').size()==0)
|
2
|
+
$('<div id="jGrowl"></div>').addClass($.jGrowl.defaults.position).appendTo('body');$('#jGrowl').jGrowl(m,o);};$.fn.jGrowl=function(m,o){if($.isFunction(this.each)){var args=arguments;return this.each(function(){var self=this;if($(this).data('jGrowl.instance')==undefined){$(this).data('jGrowl.instance',$.extend(new $.fn.jGrowl(),{notifications:[],element:null,interval:null}));$(this).data('jGrowl.instance').startup(this);}
|
3
|
+
if($.isFunction($(this).data('jGrowl.instance')[m])){$(this).data('jGrowl.instance')[m].apply($(this).data('jGrowl.instance'),$.makeArray(args).slice(1));}else{$(this).data('jGrowl.instance').create(m,o);}});};};$.extend($.fn.jGrowl.prototype,{defaults:{pool:0,header:'',group:'',sticky:false,position:'top-right',glue:'after',theme:'default',corners:'10px',check:250,life:3000,speed:'normal',easing:'swing',closer:true,closeTemplate:'×',closerTemplate:'<div>[ close all ]</div>',log:function(e,m,o){},beforeOpen:function(e,m,o){},open:function(e,m,o){},beforeClose:function(e,m,o){},close:function(e,m,o){},animateOpen:{opacity:'show'},animateClose:{opacity:'hide'}},notifications:[],element:null,interval:null,create:function(message,o){var o=$.extend({},this.defaults,o);this.notifications.push({message:message,options:o});o.log.apply(this.element,[this.element,message,o]);},render:function(notification){var self=this;var message=notification.message;var o=notification.options;var notification=$('<div class="jGrowl-notification ui-state-highlight ui-corner-all'+
|
4
|
+
((o.group!=undefined&&o.group!='')?' '+o.group:'')+'">'+'<div class="close">'+o.closeTemplate+'</div>'+'<div class="header">'+o.header+'</div>'+'<div class="message">'+message+'</div></div>').data("jGrowl",o).addClass(o.theme).children('div.close').bind("click.jGrowl",function(){$(this).parent().trigger('jGrowl.close');}).parent();$(notification).bind("mouseover.jGrowl",function(){$('div.jGrowl-notification',self.element).data("jGrowl.pause",true);}).bind("mouseout.jGrowl",function(){$('div.jGrowl-notification',self.element).data("jGrowl.pause",false);}).bind('jGrowl.beforeOpen',function(){if(o.beforeOpen.apply(notification,[notification,message,o,self.element])!=false){$(this).trigger('jGrowl.open');}}).bind('jGrowl.open',function(){if(o.open.apply(notification,[notification,message,o,self.element])!=false){if(o.glue=='after'){$('div.jGrowl-notification:last',self.element).after(notification);}else{$('div.jGrowl-notification:first',self.element).before(notification);}
|
5
|
+
$(this).animate(o.animateOpen,o.speed,o.easing,function(){if($.browser.msie&&(parseInt($(this).css('opacity'),10)===1||parseInt($(this).css('opacity'),10)===0))
|
6
|
+
this.style.removeAttribute('filter');$(this).data("jGrowl").created=new Date();});}}).bind('jGrowl.beforeClose',function(){if(o.beforeClose.apply(notification,[notification,message,o,self.element])!=false)
|
7
|
+
$(this).trigger('jGrowl.close');}).bind('jGrowl.close',function(){$(this).data('jGrowl.pause',true);$(this).animate(o.animateClose,o.speed,o.easing,function(){$(this).remove();var close=o.close.apply(notification,[notification,message,o,self.element]);if($.isFunction(close))
|
8
|
+
close.apply(notification,[notification,message,o,self.element]);});}).trigger('jGrowl.beforeOpen');if($.fn.corner!=undefined)$(notification).corner(o.corners);if($('div.jGrowl-notification:parent',self.element).size()>1&&$('div.jGrowl-closer',self.element).size()==0&&this.defaults.closer!=false){$(this.defaults.closerTemplate).addClass('jGrowl-closer ui-state-highlight ui-corner-all').addClass(this.defaults.theme).appendTo(self.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){$(this).siblings().children('div.close').trigger("click.jGrowl");if($.isFunction(self.defaults.closer)){self.defaults.closer.apply($(this).parent()[0],[$(this).parent()[0]]);}});};},update:function(){$(this.element).find('div.jGrowl-notification:parent').each(function(){if($(this).data("jGrowl")!=undefined&&$(this).data("jGrowl").created!=undefined&&($(this).data("jGrowl").created.getTime()+$(this).data("jGrowl").life)<(new Date()).getTime()&&$(this).data("jGrowl").sticky!=true&&($(this).data("jGrowl.pause")==undefined||$(this).data("jGrowl.pause")!=true)){$(this).trigger('jGrowl.beforeClose');}});if(this.notifications.length>0&&(this.defaults.pool==0||$(this.element).find('div.jGrowl-notification:parent').size()<this.defaults.pool))
|
9
|
+
this.render(this.notifications.shift());if($(this.element).find('div.jGrowl-notification:parent').size()<2){$(this.element).find('div.jGrowl-closer').animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){$(this).remove();});}},startup:function(e){this.element=$(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){$(e).data('jGrowl.instance').update();},this.defaults.check);if($.browser.msie&&parseInt($.browser.version)<7&&!window["XMLHttpRequest"]){$(this.element).addClass('ie6');}},shutdown:function(){$(this.element).removeClass('jGrowl').find('div.jGrowl-notification').remove();clearInterval(this.interval);},close:function(){$(this.element).find('div.jGrowl-notification').each(function(){$(this).trigger('jGrowl.beforeClose');});}});$.jGrowl.defaults=$.fn.jGrowl.prototype.defaults;})(jQuery);
|
@@ -14,17 +14,6 @@
|
|
14
14
|
#papermill-box .right-cell {}
|
15
15
|
#papermill-box .left-cell {font-weight:bold; padding-right:10px; text-align:right;}
|
16
16
|
|
17
|
-
|
18
|
-
#jGrowl.jGrowl .notice {
|
19
|
-
background: green;
|
20
|
-
}
|
21
|
-
#jGrowl.jGrowl .warning {
|
22
|
-
background: orange;
|
23
|
-
}
|
24
|
-
#jGrowl.jGrowl .error {
|
25
|
-
background: red;
|
26
|
-
}
|
27
|
-
|
28
17
|
.papermill { overflow:hidden; }
|
29
18
|
.papermill a img { border:0px; }
|
30
19
|
.papermill .asset:hover { border-color:blue; }
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: papermill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Benoit B\xC3\xA9n\xC3\xA9zech"
|
@@ -77,6 +77,10 @@ files:
|
|
77
77
|
- lib/papermill/papermill_options.rb
|
78
78
|
- lib/papermill/papermill_paperclip_processor.rb
|
79
79
|
- public/.DS_Store
|
80
|
+
- public/Jcrop/images/Jcrop.gif
|
81
|
+
- public/Jcrop/jquery.Jcrop.css
|
82
|
+
- public/Jcrop/jquery.Jcrop.js
|
83
|
+
- public/Jcrop/jquery.Jcrop.min.js
|
80
84
|
- public/facebox/README.txt
|
81
85
|
- public/facebox/b.png
|
82
86
|
- public/facebox/bl.png
|
@@ -88,9 +92,9 @@ files:
|
|
88
92
|
- public/facebox/tl.png
|
89
93
|
- public/facebox/tr.png
|
90
94
|
- public/jgrowl/jquery.jgrowl.css
|
95
|
+
- public/jgrowl/jquery.jgrowl.js
|
91
96
|
- public/jgrowl/jquery.jgrowl_minimized.js
|
92
97
|
- public/papermill/README
|
93
|
-
- public/papermill/images/Jcrop.gif
|
94
98
|
- public/papermill/images/background.png
|
95
99
|
- public/papermill/images/container-background.jpg
|
96
100
|
- public/papermill/images/delete.png
|
@@ -99,14 +103,10 @@ files:
|
|
99
103
|
- public/papermill/images/mass-thumbnail-reset.png
|
100
104
|
- public/papermill/images/upload-blank.png
|
101
105
|
- public/papermill/images/upload.png
|
102
|
-
- public/papermill/jquery-1.3.2.min.js
|
103
|
-
- public/papermill/jquery-ui-1.7.2.custom.min.js
|
104
|
-
- public/papermill/jquery.Jcrop.css
|
105
|
-
- public/papermill/jquery.Jcrop.min.js
|
106
106
|
- public/papermill/papermill.css
|
107
107
|
- public/papermill/papermill.js
|
108
|
-
- public/
|
109
|
-
- public/
|
108
|
+
- public/swfupload/swfupload.js
|
109
|
+
- public/swfupload/swfupload.swf
|
110
110
|
- rails/init.rb
|
111
111
|
- tasks/papermill_tasks.rake
|
112
112
|
- test/fixtures/12k.png
|