Ver a proveniência

closes #307 but needs testing first

tags/v0.1.11
Punknoodles há 6 anos
ascendente
cometimento
f3112976ab
1 ficheiros alterados com 10 adições e 2 eliminações
  1. +10
    -2
      src/client/js/main.js

+ 10
- 2
src/client/js/main.js Ver ficheiro

@@ -57,8 +57,16 @@ define([
window.onfocus = this.onFocus.bind(this, true);
window.onblur = this.onFocus.bind(this, false);
$(window).on('contextmenu', function (e) {
e.preventDefault();
return false;
var allowedList = ['txtUsername', 'txtPassword'];
var allowed = allowedList.some(function(item) {
return e.target.hasClass(item);
});
if(!allowed) {
e.preventDefault();
return false;
}
});

objects.init();


Carregando…
Cancelar
Guardar