Tidy up twitter node, add status, i18n etc

This commit is contained in:
Dave Conway-Jones
2016-09-27 17:56:35 +01:00
parent b0c93e44b8
commit 4c5b75f30a
3 changed files with 37 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
<!--
Copyright 2013, 2015 IBM Corp.
Copyright 2013, 2016 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -186,14 +186,13 @@
$("#node-input-user").change();
},
oneditsave: function() {
if ($('#node-input-tags').val() == '' && $("#node-input-user option:selected").val() != 'dm'
&& $("#node-input-user option:selected").val() != 'user') {
this.inputs=1;
}
if ($('#node-input-tags').val() === '' && $("#node-input-user option:selected").val() != 'dm' && $("#node-input-user option:selected").val() != 'user') {
this.inputs=1;
}
else {
//set back the default state of 0 inputs
this.inputs=0;
}
//set back the default state of 0 inputs
this.inputs=0;
}
}
});
</script>