Browse Source

fix: method syntax

version-14
Faris Ansari 4 years ago
parent
commit
bd487f7ef3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/public/js/frappe/desk.js

+ 1
- 1
frappe/public/js/frappe/desk.js View File

@@ -473,7 +473,7 @@ frappe.Application = class Application {
$('<link rel="shortcut icon" href="' + link + '" type="image/x-icon">').appendTo("head"); $('<link rel="shortcut icon" href="' + link + '" type="image/x-icon">').appendTo("head");
$('<link rel="icon" href="' + link + '" type="image/x-icon">').appendTo("head"); $('<link rel="icon" href="' + link + '" type="image/x-icon">').appendTo("head");
} }
trigger_primary_action: function() {
trigger_primary_action() {
// to trigger change event on active input before triggering primary action // to trigger change event on active input before triggering primary action
$(document.activeElement).blur(); $(document.activeElement).blur();
// wait for possible JS validations triggered after blur (it might change primary button) // wait for possible JS validations triggered after blur (it might change primary button)


Loading…
Cancel
Save