-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
59,049 additions
and
45,195 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"/dist/js/themosis.core.js": "/dist/js/themosis.core.js" | ||
"/dist/js/themosis.core.js": "/dist/js/themosis.core.js", | ||
"/dist/js/themosis.poststatus.js": "/dist/js/themosis.poststatus.js" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 11 additions & 13 deletions
24
...assets/components/poststatus/quickedit.js → resources/assets/js/deprecated/quickedit.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
import $ from 'jquery'; | ||
import _ from 'underscore'; | ||
import _ from 'lodash'; | ||
|
||
/** | ||
* Handle quickedit status select tag. | ||
*/ | ||
(function($, _) | ||
{ | ||
if (!themosisAdmin._themosisPostTypes) return;// Check if global object is defined first. | ||
(function ($, _) { | ||
if (! themosisGlobal.post_types) { | ||
return;// Check if global object is defined first. | ||
} | ||
|
||
let cpts = themosisAdmin._themosisPostTypes, | ||
let cpts = themosisGlobal.post_types, | ||
cptInput = $('input.post_type_page'), | ||
cpt = cptInput.val(), | ||
select = $('.inline-edit-status select[name=_status]'); | ||
|
||
// Check if current post type screen use custom statuses. | ||
let keys = _.keys(cpts); // Grab object keys first level down. | ||
|
||
if (!_.contains(keys, cpt)) return; // Return false if cpt is not found in the keys array. If so, stop and return. | ||
if (-1 === keys.indexOf(cpt)) { | ||
return; // Return false if cpt is not found in the keys array. If so, stop and return. | ||
} | ||
|
||
// Clean select tag | ||
// Keep Draft option only. | ||
select.find('option[value!="draft"]').remove(); | ||
select.find('option').remove(); | ||
|
||
// Loop through the statuses | ||
_.each(cpts[cpt]['statuses'], (obj, key) => { | ||
select.append(`<option value="${key}">${obj.label}</option>`); | ||
}); | ||
|
||
})($, _); | ||
|
||
})($, _); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
import './fields/fields.styl'; | ||
import './fields/color/color'; | ||
import './fields/collection/collection'; | ||
import './fields/media/media'; | ||
import './pages/pages.styl'; | ||
import './poststatus/posts.styl'; | ||
import './poststatus/poststatus'; | ||
import './fields/infinite/infinite'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
src/_assets/components/fields/collection/ItemsCollection.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.