Code Monkey home page Code Monkey logo

Comments (4)

qoomon avatar qoomon commented on June 30, 2024 1

i just include jquery directly into the bookmarkelt, so i really know what version i'm going to use

from jira-issue-card-printer.

qoomon avatar qoomon commented on June 30, 2024

Did jira drop jquery usage?

from jira-issue-card-printer.

wesflo avatar wesflo commented on June 30, 2024

I don't know if Atlassian do this, but in our installation it "$" was not available...

from jira-issue-card-printer.

wesflo avatar wesflo commented on June 30, 2024

this checks if jquery is available...

javascript:(function () {var a = document.getElementsByTagName("head")[0],b = function () {var d = document.createElement("script");d.src = "https://qoomon.github.io/Jira-Issue-Card-Printer/bookmarklet.js", a.appendChild(d), a.removeChild(d)};if ("undefined" == typeof $ || "undefined" == typeof jQuery) {var c = document.createElement("script");c.onload = b, c.src = "https://code.jquery.com/jquery-2.2.4.min.js", a.appendChild(c)} else b()})();

javascript:(function () {
var head = document.getElementsByTagName('head')[0];
var loadCardPrinter = function () {
var script = document.createElement('script');
script.src = 'https://qoomon.github.io/Jira-Issue-Card-Printer/bookmarklet.js';
head.appendChild(script);
head.removeChild(script);
};
if(typeof $ === 'undefined' || typeof jQuery === 'undefined'){
var jq = document.createElement('script');
jq.onload = loadCardPrinter;
jq.src = 'https://code.jquery.com/jquery-2.2.4.min.js';
head.appendChild(jq);
} else {
loadCardPrinter();
}
})();

should also work, but i cant test it at the moment...

from jira-issue-card-printer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.