Skip to content

Commit 2faeb05

Browse files
committed
Revert "Merge pull request #318 from mgiannopoulos24/feat/drag-drop-snippets"
This reverts commit 2c8c045, reversing changes made to f269721.
1 parent 2c8c045 commit 2faeb05

File tree

5 files changed

+3
-53
lines changed

5 files changed

+3
-53
lines changed

src/css/manage.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,3 @@ td.column-description {
213213
}
214214
}
215215
}
216-
217-
/* Drag and Drop Sorting */
218-
219-
.sortable-placeholder {
220-
background-color: #f9f9f9;
221-
border: 1px dashed #ccc;
222-
block-size: 50px;
223-
}
224-
225-
.wp-list-table tbody tr {
226-
cursor: move;
227-
}

src/js/manage.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { handleShowCloudPreview, handleSnippetActivationSwitches, handleSnippetOrdering, handleSnippetPriorityChanges } from './services/manage'
1+
import { handleShowCloudPreview, handleSnippetActivationSwitches, handleSnippetPriorityChanges } from './services/manage'
22

33
handleSnippetActivationSwitches()
44
handleSnippetPriorityChanges()
55
handleShowCloudPreview()
6-
handleSnippetOrdering()

src/js/services/manage/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export { handleSnippetActivationSwitches } from './activation'
22
export { handleSnippetPriorityChanges } from './priority'
33
export { handleShowCloudPreview } from './cloud'
4-
export { handleSnippetOrdering } from './ordering'

src/js/services/manage/ordering.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/php/admin-menus/class-manage-menu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function enqueue_assets() {
193193
wp_enqueue_script(
194194
'code-snippets-manage-js',
195195
plugins_url( 'dist/manage.js', $plugin->file ),
196-
[ 'jquery-ui-sortable', 'wp-i18n' ],
196+
[ 'wp-i18n' ],
197197
$plugin->version,
198198
true
199199
);
@@ -334,4 +334,4 @@ public function ajax_callback() {
334334

335335
wp_send_json_success();
336336
}
337-
}
337+
}

0 commit comments

Comments
 (0)