Fix: Javascript Bugs

jQuery v1.9 migrations; Isotope Update
This commit is contained in:
Gary Sharp
2013-02-19 19:17:06 +11:00
parent a76cd8c829
commit 20a12c1c99
60 changed files with 15323 additions and 15642 deletions
@@ -1,45 +1,47 @@
/// <reference path="../../Core/jquery-1.8.1.js" />
/// <reference path="../../Core/jquery-ui-1.8.23.js" />
(function ($, window, document) {
$(function () {
var createJobDialog = null;
var dialogMethods = {
close: function () {
createJobDialog.dialog('close');
},
setButtons: function (buttons) {
if (createJobDialog)
createJobDialog.dialog('option', 'buttons', buttons);
}
}
// Create Job Button
$('#buttonCreateJob').click(function () {
var $this = $(this);
var href = $this.attr('href');
var iframe = $('<iframe>').attr({ 'src': href }).width('100%').height('100%').css('border', 'none');
createJobDialog = $('<div>').attr('id', 'createJobDialog').width('100%').height('100%')
.appendTo(document)
.append(iframe)
.dialog({
resizable: false,
draggable: false,
modal: true,
autoOpen: true,
title: 'Create Job',
width: 850,
height: $(window).height() - 50,
close: function () {
createJobDialog.find('iframe').attr('src', 'about:blank');
createJobDialog.dialog('destroy').remove();
createJobDialog = null;
},
buttons: {}
});
createJobDialog[0].discoDialogMethods = dialogMethods;
return false;
});
})
/// <reference path="../../Core/jquery-1.8.1.js" />
/// <reference path="../../Core/jquery-ui-1.8.23.js" />
(function ($, window, document) {
$(function () {
var createJobDialog = null;
var dialogMethods = {
close: function () {
createJobDialog.dialog('close');
},
setButtons: function (buttons) {
if (createJobDialog)
createJobDialog.dialog('option', 'buttons', buttons);
}
}
// Create Job Button
$('#buttonCreateJob').click(function () {
var $this = $(this);
var href = $this.attr('href');
createJobDialog = $('<div>').attr('id', 'createJobDialog').width('100%').height('100%').appendTo(document.body);
createJobDialog.dialog({
resizable: false,
draggable: false,
modal: true,
autoOpen: true,
title: 'Create Job',
width: 850,
height: $(window).height() - 50,
close: function () {
createJobDialog.find('iframe').attr('src', 'about:blank');
createJobDialog.dialog('destroy').remove();
createJobDialog = null;
},
buttons: {}
});
var iframe = $('<iframe>').attr({ 'src': href }).width('100%').height('100%').css('border', 'none').appendTo(createJobDialog);
createJobDialog[0].discoDialogMethods = dialogMethods;
return false;
});
})
})($, window, document);