Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Generators with ByteKit Models #434

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions assets/css/admin-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@
}
}



// Fix select2 width in filter
.tablenav {
.wcsn_search_product,
Expand All @@ -184,14 +182,6 @@
}
}

// Fix source meta field width.
._serial_key_source_field {
label {
margin: 0;
width: 100%;
}
}

// Status tab
.wcsn-tools-tab-status {
table {
Expand Down
19 changes: 19 additions & 0 deletions assets/js/admin-product.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* WC Serial Numbers
* https://pluginever.com
*
* Copyright (c) 2014 PluginEver
* Licensed under the GPLv2+ license.
*/
jQuery( function ( $ ) {
/********** ADMIN:PRODUCT EDIT **********/
$(document.body)
.on('change', ':input[name="_serial_key_source"]', function(){
var source = $(this).val();
$('*[class*="wcsn_show_if_key_source__"]').hide();
$('.wcsn_show_if_key_source__' + source).show();
});

// Trigger change to show/hide fields on load.
$(':input[name="_serial_key_source"]').trigger('change');
});
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
{
"url": "[email protected]:pluginever/framework-model.git",
"type": "github"
},
{
"type": "github",
"url": "[email protected]:byteever/bytekit-models.git"
}
],
"require": {
Expand All @@ -28,7 +32,8 @@
"coenjacobs/mozart": "^0.7.1",
"pluginever/framework-model": "dev-master",
"pluginever/framework-plugin": "dev-master",
"pluginever/framework-settings": "dev-master"
"pluginever/framework-settings": "dev-master",
"byteever/bytekit-models": "dev-master"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -65,7 +70,8 @@
"packages": [
"pluginever/framework-plugin",
"pluginever/framework-settings",
"pluginever/framework-model"
"pluginever/framework-model",
"byteever/bytekit-models"
]
}
}
Expand Down
101 changes: 99 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading