Skip to content

Commit

Permalink
Merge branch 'RCandidate'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vienna-PRU committed Dec 15, 2022
2 parents 6c2e8b4 + acfa3e4 commit 5f9d0bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
21 changes: 18 additions & 3 deletions VIS/Areas/VIS/Scripts/F20/wframe.js
Expand Up @@ -469,8 +469,8 @@
* Dynamic Initialization form
* @param AD_Form_ID form
* @param callback to add menu item for form
* @return true if loaded OK
*/
* @return true if loaded OK
*/
AWindow.prototype.initForm = function (AD_Form_ID, callback, action, additionalInfo) {


Expand Down Expand Up @@ -803,7 +803,22 @@
var li = $("<li>");
var d = $("<div></div>");
var fired = true;

var mouseDown = false;
if (this.action == "Save") {
// Handle case if user direct click on save button
li.on("mousedown touchstrat", function (e) {

mouseDown = true;
window.setTimeout(function (md) {
if (mouseDown)
li.trigger('click');
}, 1000);
});
}

li.on(VIS.Events.onClick, function (e) {
mouseDown = false;
e.stopPropagation();
if (fired && that.onAction && that.isEnabled) {
if (that.toggle) {
Expand Down Expand Up @@ -962,7 +977,7 @@
}
};


AppsAction.prototype.highlightNewButton = function (highlight) {
if (highlight) {
if (this.$li.instructionPopRemoved)
Expand Down
4 changes: 2 additions & 2 deletions VIS/Areas/VIS/Scripts/VIS2_0.min.js

Large diffs are not rendered by default.

0 comments on commit 5f9d0bd

Please sign in to comment.