fix weird checkbox logic in share menu

This commit is contained in:
ansuz
2018-03-19 16:56:09 +01:00
parent 5b21911341
commit 96a63a3b7b
2 changed files with 16 additions and 9 deletions

View File

@@ -246,6 +246,13 @@ define([], function () {
}
};
Util.isChecked = function (el) {
// could be nothing...
if (!el) { return false; }
// jquery or dom elements should both be fine with this
return Boolean($(el).prop('checked'));
};
return Util;
});
}(self));