cortex-plugins-core 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ckeditor/plugins/cortex_media_insert/plugin.js +4 -2
- data/app/assets/javascripts/cortex-plugins-core/cells/content_item.js +27 -16
- data/app/assets/javascripts/cortex-plugins-core/cells/text.js +15 -0
- data/app/cells/plugins/core/content_item/popup.haml +1 -1
- data/lib/cortex/plugins/core/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2bc26a1367433e86202de829fb12807904851f1
|
4
|
+
data.tar.gz: 387e17d0795c2011582759c393c1b2092e46a050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7ab2f2f4b14fd5cc30cccaf431424601560303f4360493bee5627b5edeaf772f677e950c35161044767b8097df11b9eda5bfa379aeac064f0cc9e0446cac599
|
7
|
+
data.tar.gz: 7ba6d872a21da3fedc7981c9cfed4675cf008246131aa2dddf9acd898c59c8fe4aaac9157e4ca5c39445708ae24bff864ab8d43cd950640a9db8ffa8e6c26edc
|
@@ -49,14 +49,16 @@
|
|
49
49
|
|
50
50
|
editor.addCommand('insertMedia', {
|
51
51
|
exec: function (editor) {
|
52
|
-
|
52
|
+
global.blur_backdrop();
|
53
|
+
global.dialogs.wysiwyg.showModal();
|
53
54
|
|
54
55
|
global.media_select = {};
|
55
56
|
global.media_select_defer = $.Deferred();
|
56
57
|
global.media_select_defer.promise(global.media_select);
|
57
58
|
|
58
59
|
global.media_select.done(function (media) {
|
59
|
-
|
60
|
+
global.unblur_backdrop();
|
61
|
+
global.dialogs.wysiwyg.close();
|
60
62
|
|
61
63
|
editor.execCommand('media', {
|
62
64
|
startupData: {
|
@@ -1,19 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
var title = $(this).data().title;
|
4
|
-
var thumb_url = $(this).data().thumb;
|
1
|
+
(function (global) {
|
2
|
+
'use strict';
|
5
3
|
|
6
|
-
$("
|
4
|
+
$("#featured-button__select").on("click", function (event) {
|
5
|
+
event.preventDefault();
|
6
|
+
global.blur_backdrop();
|
7
|
+
global.dialogs.featured.showModal();
|
8
|
+
});
|
7
9
|
|
8
|
-
$('.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
'<div class="content-item-button__selection__text">' +
|
13
|
-
'Selected Media: ' +
|
14
|
-
title +
|
15
|
-
'</div></div>'
|
16
|
-
);
|
10
|
+
$('.media-select--featured').click(function (elem) {
|
11
|
+
var id = $(this).data().id;
|
12
|
+
var title = $(this).data().title;
|
13
|
+
var thumb_url = $(this).data().thumb;
|
17
14
|
|
18
|
-
|
19
|
-
|
15
|
+
$(".association_content_item_id").val(id);
|
16
|
+
|
17
|
+
$('.content-item-button__selection').remove();
|
18
|
+
$('.content-item-button').append(
|
19
|
+
'<div class="content-item-button__selection">' +
|
20
|
+
'<img src="' + thumb_url + '" height="50px">' +
|
21
|
+
'<div class="content-item-button__selection__text">' +
|
22
|
+
'Selected Media: ' +
|
23
|
+
title +
|
24
|
+
'</div></div>'
|
25
|
+
);
|
26
|
+
|
27
|
+
global.unblur_backdrop();
|
28
|
+
global.dialogs.featured.close();
|
29
|
+
});
|
30
|
+
}(this));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
(function (global) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
$('.media-select--wysiwyg').on("click", function (event) {
|
5
|
+
event.preventDefault();
|
6
|
+
var element = $(this),
|
7
|
+
id = element.data().id,
|
8
|
+
title = element.data().title,
|
9
|
+
url = element.data().url,
|
10
|
+
alt = element.data().alt,
|
11
|
+
asset_type = element.data().assetType;
|
12
|
+
|
13
|
+
media_select_defer.resolve({id: id, title: title, url: url, alt: alt, asset_type: asset_type});
|
14
|
+
});
|
15
|
+
}(this));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cortex-plugins-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CareerBuilder Employer Site & Content Products
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- app/assets/javascripts/ckeditor/turbolinks.js
|
110
110
|
- app/assets/javascripts/cortex-plugins-core/application.js
|
111
111
|
- app/assets/javascripts/cortex-plugins-core/cells/content_item.js
|
112
|
+
- app/assets/javascripts/cortex-plugins-core/cells/text.js
|
112
113
|
- app/cells/plugins/core/asset/association.haml
|
113
114
|
- app/cells/plugins/core/asset/input.haml
|
114
115
|
- app/cells/plugins/core/asset_cell.rb
|