corn_js 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -377,6 +377,7 @@
|
|
377
377
|
$('.fatpopcorn .stream .content').html(data);
|
378
378
|
$('.fatpopcorn .stream .attachment span.delete').click(FatPopcorn.deleteAttachment);
|
379
379
|
$('.fatpopcorn .stream .note span.delete').click(FatPopcorn.deleteNote);
|
380
|
+
$('.fatpopcorn .stream .note span.star').click(FatPopcorn.starUnstar);
|
380
381
|
};
|
381
382
|
FatPopcorn.deleteAttachment = function(e) {
|
382
383
|
FatPopcorn.deleteStream(e, $('.fatpopcorn .edit').attr('data-attach-url'));
|
@@ -393,6 +394,16 @@
|
|
393
394
|
success('success.rails', FatPopcorn.newNoteOrAttachmentSuccess).
|
394
395
|
fail(FatPopcorn.deleteFailure);
|
395
396
|
};
|
397
|
+
FatPopcorn.starUnstar = function(e, urlPrefix) {
|
398
|
+
var url = $(e.target).attr('data-url');
|
399
|
+
console.log(url);
|
400
|
+
$.post(url, {_method: 'put'}).
|
401
|
+
success('success.rails', function(data){
|
402
|
+
FatPopcorn.getStreamSuccess(data.streamBody)
|
403
|
+
}).
|
404
|
+
fail(FatPopcorn.deleteFailure);
|
405
|
+
};
|
406
|
+
|
396
407
|
FatPopcorn.deleteSuccess = function() {
|
397
408
|
$('.fatpopcorn .stream-tab').click();
|
398
409
|
};
|
@@ -224,6 +224,15 @@ div > h1 > span.delete {
|
|
224
224
|
background: url("data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2tJREFUeNqUVF1IU2EYfs/Ojtv82ZSxWju0ZCsRSoVExEYZWOEQcRFEQbjqVgi6CIJuuulGhNON0EXlVdEP/TGsQd3ovFEswWwrFRRpZlrOn83N7Zzz9XwfBN32wnd+3vP+Pc/7cCTGGP2PSZqm2ZB0b3d3t6tUKq1WVVWp8HdJkuQ1TbO/rKwsuLW1lXY4HCn4z1hxuZnP53tcLldNIBDwTE5OEpI+oEDKMIxgfX09pdNpNZfLqSj8mCdcl2XZ1dvbywNF2/HxcQduTY2NjdTa2koVFRU0ODhIiLvAE3J2u921uLhIDQ0NFA6HCaOQ1WqVOzo6CKNRKpWi7e1tqqys/CZ3dnbOIenizMyMCKytraW6ujryeDxUXl5O09PTNDw8TE6n8/Pa2toA7xBDldf4GBkbG6OWlhYxAjCRrusUi8VEF/gzNpttiCccBDv5nZ0dampqIjwTp5oHYSzy+/3CDzwhTHCEJ/QXCoWzzc3N1NbWRtXV1ZRMJimTyVAoFKJoNCqIKBaLcjwef8UTegBagOVVJyYmaGRkhLLZrOjAWUIwjY6O0sLCwkEO+gToCqysrBB4p0QiQRgvD4qV2dlZwtw0NTXFqdZR8C3fNN/sGCp6VVW1r6+v66isAUcSZwjJv7BtN2LmFEWJSnFVtZmQxoZpdmVNc9WvKEIaMpG3xFi/02IJLuh62iPLQhoWLo2fhtFTqyie7pMnDy+VStXwfciY5i2cYPDYMWq22VQUOAX/Y0KHjSdeLystLTFuP86fZ4N79vCjf29vZ7tfvjBjY4PFfD72XlUZ75BzyzLlsCBu3qdP6Syqnjt9WvbF46QcOkTZZ8/oO5ZYYOwb79CNw4b27mWrfX3srxXn58U9o2nsESZA9ek7bvcVDpow3ysAjCyD1uinT2T1+UQ3VijQ/QMHyIL9RK5eHbXU1LQLaYCdPIBT99GjxCARLISgZZKw0DNcV9eukauvLwTdHOEjvXyIcZYjEQGQ2+aDB2ztxg32rxmbmywdDs/xBOMNGDCLRcZ0nf2+fZu92LeP3fV4xPPf4JXLlwVL8iWn84RNkgL2d++IQTMfNY1WDSO/32pVpqArfy5HmYEBep5I6KD0LQctpLGs697jDof9a7Go2yVJw78kqUMawPYL23bjfa7SYolK//ub+SPAAGX01NPxCvd+AAAAAElFTkSuQmCC") no-repeat scroll transparent;
|
225
225
|
}
|
226
226
|
|
227
|
+
div > h1 > span.star {
|
228
|
+
cursor: pointer;
|
229
|
+
background: url("data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAhRJREFUeNqcU0trGlEYPTM0pCXEWIIxjQiN0W4EQcgiLiQrk0hREV0ksyokIOLeRXZdS7aKiyQ/oTuty6LkF/ig1YCKqKAGxEX6MP1671XTiQ8C+eDemTvfOd/rnpGICGrr9/tULBbFu8PhkDBl0jTB6/USA4p3jUaDSCTylMQJk1WtVsnn81Gj0aB6vU4ej4eazSapMa84KZFIULlcRqVSgdvthsFgeAwYCoVgNpvJ7/fD6XRKEo8SDodhsVi4A/OMB4pGoxgOh5BdLhfy+TxMJhMWGfdxMMei2+2KWuPxOC0y7lMUhThWNJJKpZ4ljQ0yT9npdERqnU6H50wQ2u22OOj1evR6PSSTSbG4ZbNZfjfizvgmxmq325HL5RCLxQSIjW9yiTMZBIF1z9lUKBQQCARgNBpFNJvNRqVSCVardbE0XqSlvb33bHoDaLW7M1qS1YdarUay/AcnJys4Pl5DJpNBq9WimR7UWjo8/ICtraWJa76Wzs607OMqdnbWee//65VWWWn3uL3t4fw8h4cH7UhLhUIL29tvn4BH0h+wfch8awJ8cPARMtMIbm7ucXn5fbqlSR7m+8F+pndQlE+jKaXTaWJ94OjIidPTgTrH42yWlz8L9pSW1se1r7D99VgNEju/ma+ljQ3C3d0vXF39xPX1XwbcZOX+RjD4bb6WLi6+jLW0L57B4Ndx3KWXa+mfAAMAmh1HKsWLkqUAAAAASUVORK5CYII=")
|
230
|
+
}
|
231
|
+
|
232
|
+
div > h1 > span.starred {
|
233
|
+
background-position: 0 bottom;
|
234
|
+
}
|
235
|
+
|
227
236
|
div > h1 > span.delete:hover {
|
228
237
|
background-position: left bottom;
|
229
238
|
cursor: pointer;
|
data/lib/corn_js/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module CornJs
|
2
|
-
VERSION = "0.1"
|
3
|
-
end
|
2
|
+
VERSION = "0.1.1"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corn_js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-23 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70335097575660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70335097575660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jquery-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70335097575040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70335097575040
|
36
36
|
description: It's possible to use the generic popcorn and the app specific fat popcorn
|
37
37
|
plugin
|
38
38
|
email:
|
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
segments:
|
71
71
|
- 0
|
72
|
-
hash:
|
72
|
+
hash: 3824551169967770330
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
segments:
|
80
80
|
- 0
|
81
|
-
hash:
|
81
|
+
hash: 3824551169967770330
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
84
|
rubygems_version: 1.8.10
|