Compare commits

..

8 Commits

Author SHA1 Message Date
n1474335
fad3db1556 5.1.2 2017-04-07 22:24:51 +01:00
n1474335
9d4862b5c8 Merge pull request #111 from gchq/bug-autobake-reorder
BUGFIX #98: Auto-Bake now triggers when operations are re-ordered.
2017-04-07 22:34:32 +01:00
n1474335
2a07999db6 BUGFIX #98: Auto-Bake now triggers when operations are re-ordered. 2017-04-07 22:23:23 +01:00
n1474335
ce2ffcafd3 5.1.1 2017-04-07 21:59:07 +01:00
n1474335
3093794f72 Merge pull request #109 from gchq/bug-search
Fixed popover bug in search. Fixes #107
2017-04-07 22:08:12 +01:00
n1474335
abd05f5105 Fixed popover bug in search and removed popovers when favourites are dragged out. 2017-04-07 21:50:53 +01:00
n1474335
dcb2ad9d2d Merge branch 'l50741-feature/accessibility' 2017-04-07 21:28:22 +01:00
l50741
03ad87d651 add a grunt plugin to check accessibility 2017-04-05 21:30:22 +01:00
4 changed files with 21 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-chmod");
grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-execute");
grunt.loadNpmTasks("grunt-accessibility");
// Project configuration
@@ -133,6 +134,14 @@ module.exports = function (grunt) {
],
}
},
accessibility: {
options: {
accessibilityLevel: "WCAG2A"
},
test: {
src: ["build/**/*.html"]
}
},
webpack: {
options: {
plugins: [

View File

@@ -1,6 +1,6 @@
{
"name": "cyberchef",
"version": "5.1.0",
"version": "5.1.2",
"description": "CyberChef is a simple, intuitive web app for analysing and decoding data within a web browser.",
"author": "n1474335 <n1474335@gmail.com>",
"homepage": "https://gchq.github.io/CyberChef",
@@ -35,6 +35,7 @@
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.10.1",
"grunt": ">=0.4.5",
"grunt-accessibility": "~5.0.0",
"grunt-chmod": "~1.1.1",
"grunt-contrib-clean": "~1.0.0",
"grunt-contrib-copy": "~1.0.0",

View File

@@ -73,7 +73,9 @@ OperationsWaiter.prototype.searchOperations = function(e) {
str = el.value;
while (searchResultsEl.firstChild) {
$(searchResultsEl.firstChild).popover("destroy");
try {
$(searchResultsEl.firstChild).popover("destroy");
} catch (err) {}
searchResultsEl.removeChild(searchResultsEl.firstChild);
}
@@ -209,7 +211,10 @@ OperationsWaiter.prototype.editFavouritesClick = function(e) {
}
},
onEnd: function(evt) {
if (this.removeIntent) evt.item.remove();
if (this.removeIntent) {
$(evt.item).popover("destroy");
evt.item.remove();
}
}.bind(this),
});

View File

@@ -43,6 +43,9 @@ RecipeWaiter.prototype.initialiseOperationDragNDrop = function() {
evt.item.remove();
evt.target.dispatchEvent(this.manager.operationremove);
}
}.bind(this),
onSort: function(evt) {
document.dispatchEvent(this.manager.statechange);
}.bind(this)
});