console.log("Loading format_jquery_prototypes.js\n"); $(document).ready(function() { /* var collection = ""; var regex = new RegExp("[?&]c="); var matches = regex.exec(document.URL); if(matches != null) { var startIndex = matches.index; var endIndex = document.URL.indexOf("&", startIndex + 1); if(endIndex == -1) { endIndex = document.URL.length; } collection = document.URL.substring(startIndex, endIndex); } */ //Retrieve the collection metadataset using ajax $.ajax ({ type: "GET", url: "?a=g&s=CoverageMetadataRetrieve&o=xml&rt=r&c=" + host_info.collection_name, done: function(data) { var str = ""; selectorArea.innerHTML = str; gsf_metadata_element = "
" + str + "
"; //console.log("Metadata element from ajax: " + gsf_metadata_element); } }); $.ui.draggable.prototype._createHelper = function(event) { var o = this.options; var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone().removeAttr('id') : this.element); var select = $(this.element).find('select'); var value = select.attr('value'); console.log("Found "+value+" in helper"); CURRENT_SELECT_VALUE = value; helper.find('select').attr('value', value); if(!helper.parents('body').length) helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position"))) helper.css("position", "absolute"); return helper; }; $.ui.sortable.prototype._removeCurrentsFromItems = function() { //console.log("IN _removeCurrentsFromItems FUNCTION"); //console.log("this = " + this.currentItem[0].getAttribute('class')); var list = this.currentItem.find(":data(sortable-item)"); var i = 0; while (i