Skip to content

Commit 1e2e906

Browse files
author
Stephan Fischer
committed
Version 1.2.1
jQuery Fix for 1.9.0 - missing $.browser
1 parent 0a84e2d commit 1e2e906

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# jquery.liveurl - a facebook attachment clone (version 1.2.0)
1+
# jquery.liveurl - a facebook attachment clone (version 1.2.1)
22

33
This plugin enables a **live preview** for an url in a *textarea*,
44
like the facebook attachment<br/> of a post. Multiple images and a video preview is in this demo integrated.

Diff for: index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</div>
4242
</div>
4343

44-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" > </script>
44+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" > </script>
4545
<script src="jquery.liveurl.js"> </script>
4646
<script>
4747

Diff for: jquery.liveurl.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* MIT License - You are free to use this commercial projects as long as the copyright header is left intact.
55
* @author Stephan Fischer
66
* @copyright (c) 2012 Stephan Fischer (www.ainetworks.de)
7-
* @version 1.2.0
7+
* @version 1.2.1
88
*
99
* UriParser is a function from my addon "Superswitch" for Mozilla FireFox.
1010
*/
@@ -433,8 +433,9 @@
433433
query: encodeURIComponent(query)
434434
};
435435

436-
437-
if ($.browser.msie && window.XDomainRequest) {
436+
var isIE = /msie/.test(navigator.userAgent.toLowerCase());
437+
438+
if (isIE && window.XDomainRequest) {
438439
var xdr = new XDomainRequest();
439440
xdr.open("get", yql['path'] + yql['query']);
440441
xdr.onload = function()

Diff for: liveurl.jquery.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "liveurl",
3+
"title": "jQuery LiveURL",
4+
"description": "jQuery plugin to get an url preview like the facebook attachment",
5+
"keywords": [
6+
"liveurl",
7+
"url",
8+
"attachement",
9+
"facebook"
10+
],
11+
"version": "1.0.3",
12+
"author": {
13+
"name": "Stephan Fischer",
14+
"url": "https://github.com/stephan-fischer"
15+
},
16+
"maintainers": [
17+
{
18+
"name": "Stephan Fischer",
19+
"email": "[email protected]",
20+
"url": "http://www.ainetworks.de"
21+
}
22+
],
23+
"licenses": [
24+
{
25+
"type": "MIT",
26+
"url" : "https://github.com/stephan-fischer/jQuery-LiveUrl"
27+
}
28+
],
29+
"bugs": "https://github.com/stephan-fischer/jQuery-LiveUrl/issues",
30+
"homepage": "https://github.com/stephan-fischer/jQuery-LiveUrl",
31+
"docs": "https://github.com/jquery/jquery-color",
32+
"download": "https://github.com/stephan-fischer/jQuery-LiveUrl/archive/master.zip",
33+
"demo" : "http://liveurl.ainetworks.de/demo/",
34+
"dependencies": {
35+
"jquery": ">=1.8.2"
36+
}
37+
}

0 commit comments

Comments
 (0)