Skip to content

Commit

Permalink
Merge pull request #17 from venveo/develop
Browse files Browse the repository at this point in the history
Fixed saving bulk edit jobs in Firefox
  • Loading branch information
Mosnar authored Feb 13, 2020
2 parents a366fae + a26aed2 commit 368f7fb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Bulk Edit Changelog

## 2.0.1 - 2020-02-13
### Fixed
- Fixed problem with saving bulk edit jobs in Firefox

## 2.0.0 - 2020-01-24
{warning} The FieldProcessorInterface has slightly changed to better
support old versions of PHP. If you wrote your own FieldProcessor,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "venveo/craft-bulkedit",
"description": "Bulk edit entries",
"type": "craft-plugin",
"version": "2.0.0",
"version": "2.0.1",
"keywords": [
"craft",
"cms",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BulkEditElementActionAsset extends AssetBundle
public function init()
{
// define the path that your publishable resources live
$this->sourcePath = "@venveo/bulkedit/assetbundles/bulkeditelementaction/dist";
$this->sourcePath = __DIR__ . '/dist';

// define the dependencies
$this->depends = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Craft.BulkEditModal = Garnish.Modal.extend(
},

_handleFieldEditorSubmit: function(e) {
e.preventDefault();
this.$container.find('.submit').attr('disabled', 'disabled');
this.$container.find('.submit').addClass('disabled')
const formValues = this.$container.find('#bulk-edit-values-modal').serializeArray();
Expand Down
2 changes: 1 addition & 1 deletion src/templates/elementactions/BulkEdit/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="field-edit-modal-bar">
<div class="buttons right">
<div class="btn" id="field-edit-cancel">Cancel</div>
<input type="submit" value="Save {{ elementIds|length }} Elements" class="btn submit"></div>
<input type="button" value="Save {{ elementIds|length }} Elements" class="btn submit"></div>
</div>
{% else %}
<p>It doesn't look like there are any fields that support bulk editing on these elements.</p>
Expand Down

0 comments on commit 368f7fb

Please sign in to comment.