rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
moved : function (obj, ref_node, position, is_copy, rb) { if(ref_node != -1) ref_node = this.get_node(ref_node); if(typeof position == "undefined") position = "inside"; if(ref_node != -1 && position != "after" && position != "before" && ref_node.hasClass("closed") && this.settings.data.async && ref_node.children("ul").size() == 0) { var _this = this; return this.open_branch(ref_node, true, function () { _this.moved.apply(_this, [obj, ref_node, position, is_copy, rb]); } ); } if($(obj).size() > 1) { var _this = this; var tmp = this.moved(obj.eq(0), ref_node, position, is_copy, rb); obj.each(function (i) { if(i == 0) return; if(tmp) { tmp = _this.moved(this, tmp, "after", is_copy, rb); } }); return obj; } if(!this.check_move(obj, ref_node, position)) return false; obj = this.get_node(obj); switch(position) { case "before": position = ref_node.parent().children().index(ref_node); ref_node = this.parent(ref_node); break; case "after": position = ref_node.parent().children().index(ref_node) + 1; ref_node = this.parent(ref_node); break; case "inside": position = (this.settings.rules.createat == "top") ? 0 : this.children(ref_node).size(); break; default: break; } var new_parent = (ref_node == -1) ? this.container : ref_node; var old_parent = this.parent(obj); var tree_1 = $.tree.reference(obj); var tree_2 = ref_node == -1 ? this : $.tree.reference(ref_node); if(!this.callback( (is_copy ? "beforecopy" : "beforemove"), [{ 'node' : obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : false, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }])) return false; | moved : function (what, where, how, is_new, is_copy, rb) { var what = $(what); var $parent = $(what).parents("ul:eq(0)"); var $where = $(where); if($where.is("ins")) $where = $where.parent(); | moved : function (obj, ref_node, position, is_copy, rb) { if(ref_node != -1) ref_node = this.get_node(ref_node); if(typeof position == "undefined") position = "inside"; if(ref_node != -1 && position != "after" && position != "before" && ref_node.hasClass("closed") && this.settings.data.async && ref_node.children("ul").size() == 0) { var _this = this; return this.open_branch(ref_node, true, function () { _this.moved.apply(_this, [obj, ref_node, position, is_copy, rb]); } ); } if($(obj).size() > 1) { var _this = this; var tmp = this.moved(obj.eq(0), ref_node, position, is_copy, rb); obj.each(function (i) { if(i == 0) return; if(tmp) { // if tmp is false - the previous move was a no-go tmp = _this.moved(this, tmp, "after", is_copy, rb); } }); return obj; } if(!this.check_move(obj, ref_node, position)) return false; obj = this.get_node(obj); switch(position) { case "before": position = ref_node.parent().children().index(ref_node); ref_node = this.parent(ref_node); break; case "after": position = ref_node.parent().children().index(ref_node) + 1; ref_node = this.parent(ref_node); break; case "inside": position = (this.settings.rules.createat == "top") ? 0 : this.children(ref_node).size(); break; default: break; } var new_parent = (ref_node == -1) ? this.container : ref_node; var old_parent = this.parent(obj); var tree_1 = $.tree.reference(obj); var tree_2 = ref_node == -1 ? this : $.tree.reference(ref_node); if(!this.callback( (is_copy ? "beforecopy" : "beforemove"), [{ 'node' : obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : false, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }])) return false; // Rollback if(!rb) { var rb = {}; rb[tree_1.container.attr("id")] = tree_1.get_rollback(); rb[tree_2.container.attr("id")] = tree_2.get_rollback(); } var _obj = this._move(obj, ref_node, position, is_copy, true); if(_obj) { var _this = this; _obj.parents(".closed").each(function () { _this.open_branch(this); }); } this.callback( (is_copy ? "oncopy" : "onmove"), [{ 'node' : _obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : true, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }]); return _obj; }, |
rb[tree_1.container.attr("id")] = tree_1.get_rollback(); rb[tree_2.container.attr("id")] = tree_2.get_rollback(); | rb[this.container.attr("id")] = this.get_rollback(); if(!is_new) { var tmp = what.size() > 1 ? what.eq(0).parents(".tree:eq(0)") : what.parents(".tree:eq(0)"); if(tmp.get(0) != this.container.get(0)) { tmp = tree_component.inst[tmp.attr("id")]; rb[tmp.container.attr("id")] = tmp.get_rollback(); } delete tmp; } | moved : function (obj, ref_node, position, is_copy, rb) { if(ref_node != -1) ref_node = this.get_node(ref_node); if(typeof position == "undefined") position = "inside"; if(ref_node != -1 && position != "after" && position != "before" && ref_node.hasClass("closed") && this.settings.data.async && ref_node.children("ul").size() == 0) { var _this = this; return this.open_branch(ref_node, true, function () { _this.moved.apply(_this, [obj, ref_node, position, is_copy, rb]); } ); } if($(obj).size() > 1) { var _this = this; var tmp = this.moved(obj.eq(0), ref_node, position, is_copy, rb); obj.each(function (i) { if(i == 0) return; if(tmp) { // if tmp is false - the previous move was a no-go tmp = _this.moved(this, tmp, "after", is_copy, rb); } }); return obj; } if(!this.check_move(obj, ref_node, position)) return false; obj = this.get_node(obj); switch(position) { case "before": position = ref_node.parent().children().index(ref_node); ref_node = this.parent(ref_node); break; case "after": position = ref_node.parent().children().index(ref_node) + 1; ref_node = this.parent(ref_node); break; case "inside": position = (this.settings.rules.createat == "top") ? 0 : this.children(ref_node).size(); break; default: break; } var new_parent = (ref_node == -1) ? this.container : ref_node; var old_parent = this.parent(obj); var tree_1 = $.tree.reference(obj); var tree_2 = ref_node == -1 ? this : $.tree.reference(ref_node); if(!this.callback( (is_copy ? "beforecopy" : "beforemove"), [{ 'node' : obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : false, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }])) return false; // Rollback if(!rb) { var rb = {}; rb[tree_1.container.attr("id")] = tree_1.get_rollback(); rb[tree_2.container.attr("id")] = tree_2.get_rollback(); } var _obj = this._move(obj, ref_node, position, is_copy, true); if(_obj) { var _this = this; _obj.parents(".closed").each(function () { _this.open_branch(this); }); } this.callback( (is_copy ? "oncopy" : "onmove"), [{ 'node' : _obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : true, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }]); return _obj; }, |
var _obj = this._move(obj, ref_node, position, is_copy, true); if(_obj) { var _this = this; _obj.parents(".closed").each(function () { _this.open_branch(this); }); } this.callback( (is_copy ? "oncopy" : "onmove"), [{ 'node' : _obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : true, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }]); return _obj; | if(how == "inside" && this.settings.data.async) { var _this = this; if(this.get_node($where).hasClass("closed")) { return this.open_branch(this.get_node($where), true, function () { _this.moved.apply(_this, [what, where, how, is_new, is_copy, rb]); }); } if(this.get_node($where).find("> ul > li > a.loading").size() == 1) { setTimeout(function () { _this.moved.apply(_this, [what, where, how, is_new, is_copy]); }, 200); return; } } if(what.size() > 1) { var _this = this; var tmp = this.moved(what.eq(0), where, how, false, is_copy, rb); what.each(function (i) { if(i == 0) return; if(tmp) { tmp = _this.moved(this, tmp.children("a:eq(0)"), "after", false, is_copy, rb); } }); return what; } if(is_copy) { _what = what.clone(); _what.each(function (i) { this.id = this.id + "_copy"; $(this).find("li").each(function () { this.id = this.id + "_copy"; }); $(this).removeClass("dragged").find("a.clicked").removeClass("clicked").end().find("li.dragged").removeClass("dragged"); }); } else _what = what; if(is_new) { if(!this.callback("beforecreate", [this.get_node(what).get(0), this.get_node(where).get(0),how,this])) return false; } else { if(!this.callback("beforemove", [this.get_node(what).get(0), this.get_node(where).get(0),how,this])) return false; } if(!is_new) { var tmp = what.parents(".tree:eq(0)"); if(tmp.get(0) != this.container.get(0)) { tmp = tree_component.inst[tmp.attr("id")]; if(tmp.settings.languages.length) { var res = []; if(this.settings.languages.length == 0) res.push("." + tmp.current_lang); else { for(var i in this.settings.languages) { if(!this.settings.languages.hasOwnProperty(i)) continue; for(var j in tmp.settings.languages) { if(!tmp.settings.languages.hasOwnProperty(j)) continue; if(this.settings.languages[i] == tmp.settings.languages[j]) res.push("." + this.settings.languages[i]); } } } if(res.length == 0) return this.error("MOVE: NO COMMON LANGUAGES"); _what.find("a").not(res.join(",")).remove(); } _what.find("a.clicked").removeClass("clicked"); } } what = _what; switch(how) { case "before": $where.parents("ul:eq(0)").children("li.last").removeClass("last"); $where.parent().before(what.removeClass("last")); $where.parents("ul:eq(0)").children("li:last").addClass("last"); break; case "after": $where.parents("ul:eq(0)").children("li.last").removeClass("last"); $where.parent().after(what.removeClass("last")); $where.parents("ul:eq(0)").children("li:last").addClass("last"); break; case "inside": if($where.parent().children("ul:first").size()) { if(this.settings.rules.createat == "top") { $where.parent().children("ul:first").prepend(what.removeClass("last")).children("li:last").addClass("last"); var tmp_node = $where.parent().children("ul:first").children("li:first"); if(tmp_node.size()) { how = "before"; where = tmp_node; } } else { var tmp_node = $where.parent().children("ul:first").children(".last"); if(tmp_node.size()) { how = "after"; where = tmp_node; } $where.parent().children("ul:first").children(".last").removeClass("last").end().append(what.removeClass("last")).children("li:last").addClass("last"); } } else { what.addClass("last"); $where.parent().removeClass("leaf").append("<ul/>"); if(!$where.parent().hasClass("open")) $where.parent().addClass("closed"); $where.parent().children("ul:first").prepend(what); } if($where.parent().hasClass("closed")) { this.open_branch($where); } break; default: break; } if($parent.find("li").size() == 0) { var $li = $parent.parent(); $li.removeClass("open").removeClass("closed").addClass("leaf"); if(!$li.is(".tree")) $li.children("ul").remove(); $li.parents("ul:eq(0)").children("li.last").removeClass("last").end().children("li:last").addClass("last"); } else { $parent.children("li.last").removeClass("last"); $parent.children("li:last").addClass("last"); } if(is_copy) this.callback("oncopy", [this.get_node(what).get(0), this.get_node(where).get(0), how, this, rb]); else if(is_new) this.callback("oncreate", [this.get_node(what).get(0), ($where.is("ul") ? -1 : this.get_node(where).get(0) ), how, this, rb]); else this.callback("onmove", [this.get_node(what).get(0), this.get_node(where).get(0), how, this, rb]); return what; | moved : function (obj, ref_node, position, is_copy, rb) { if(ref_node != -1) ref_node = this.get_node(ref_node); if(typeof position == "undefined") position = "inside"; if(ref_node != -1 && position != "after" && position != "before" && ref_node.hasClass("closed") && this.settings.data.async && ref_node.children("ul").size() == 0) { var _this = this; return this.open_branch(ref_node, true, function () { _this.moved.apply(_this, [obj, ref_node, position, is_copy, rb]); } ); } if($(obj).size() > 1) { var _this = this; var tmp = this.moved(obj.eq(0), ref_node, position, is_copy, rb); obj.each(function (i) { if(i == 0) return; if(tmp) { // if tmp is false - the previous move was a no-go tmp = _this.moved(this, tmp, "after", is_copy, rb); } }); return obj; } if(!this.check_move(obj, ref_node, position)) return false; obj = this.get_node(obj); switch(position) { case "before": position = ref_node.parent().children().index(ref_node); ref_node = this.parent(ref_node); break; case "after": position = ref_node.parent().children().index(ref_node) + 1; ref_node = this.parent(ref_node); break; case "inside": position = (this.settings.rules.createat == "top") ? 0 : this.children(ref_node).size(); break; default: break; } var new_parent = (ref_node == -1) ? this.container : ref_node; var old_parent = this.parent(obj); var tree_1 = $.tree.reference(obj); var tree_2 = ref_node == -1 ? this : $.tree.reference(ref_node); if(!this.callback( (is_copy ? "beforecopy" : "beforemove"), [{ 'node' : obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : false, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }])) return false; // Rollback if(!rb) { var rb = {}; rb[tree_1.container.attr("id")] = tree_1.get_rollback(); rb[tree_2.container.attr("id")] = tree_2.get_rollback(); } var _obj = this._move(obj, ref_node, position, is_copy, true); if(_obj) { var _this = this; _obj.parents(".closed").each(function () { _this.open_branch(this); }); } this.callback( (is_copy ? "oncopy" : "onmove"), [{ 'node' : _obj.get(0), 'parent' : ref_node == -1 ? -1 : ref_node.get(0), 'position' : position, 'is_ui' : true, 'old_parent' : old_parent == -1 ? -1 : old_parent.get(0), 'origin_tree' : tree_1, 'receiving_tree': tree_2 }]); return _obj; }, |
}.bind(this) | }.bind(this), onFailure: indicateFail | movePackage: function(event){ indicateLoad(); new Request({ method: 'get', url: '/json/move_package/'+((this.ui.type +1) % 2) +"/"+ this.id, onSuccess: function(){ this.ele.nix(); indicateFinish(); }.bind(this) }).send(); event.stop(); }, |
moveMapToBounds(superBbox); | if (superBbox) { moveMapToBounds(superBbox); } | var moveToBoundsKnownFeatureType = function(knownFeatureType) { var linkedRecords = knownFeatureType.getLinkedCSWRecords(cswRecordStore); var superBbox = null; for (var i = 0; i < linkedRecords.length; i++) { var bboxToCombine = linkedRecords[i].generateGeographicExtent(); if (bboxToCombine != null) { if (superBbox == null) { superBbox = bboxToCombine; } else { superBbox = superBbox.combine(bboxToCombine); } } } moveMapToBounds(superBbox); }; |
if (bboxToCombine != null) { if (superBbox == null) { | if (bboxToCombine !== null) { if (superBbox === null) { | var moveToBoundsKnownLayer = function(knownLayer) { var linkedRecords = knownLayer.getLinkedCSWRecords(cswRecordStore); var superBbox = null; for (var i = 0; i < linkedRecords.length; i++) { var bboxToCombine = linkedRecords[i].generateGeographicExtent(); if (bboxToCombine != null) { if (superBbox == null) { superBbox = bboxToCombine; } else { superBbox = superBbox.combine(bboxToCombine); } } } if (superBbox) { moveMapToBounds(superBbox); } }; |
if(code == 13 || String.fromCharCode(code) == options.splitChar) | if(code == 13 || $(this).val().indexOf(options.splitChar) != -1) | $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-' + id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-' + id).addClass('disabledButton'); } else $('#addButton-' + id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.inputField-' + id).live('blur', function(evt) { // clear elements elements = []; // loop $('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); }); // set new value $('#' + id).val(elements.join(options.splitChar)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); }; |
$('#addValue-' + id).bind('blur', function(evt){ blockSubmit = false; }); | $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-' + id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-' + id).addClass('disabledButton'); } else $('#addButton-' + id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.inputField-' + id).live('blur', function(evt) { // clear elements elements = []; // loop $('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); }); // set new value $('#' + id).val(elements.join(options.splitChar)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); }; |
|
$('.inputField-' + id).live('blur', function(evt) | $('.inputField-' + id).live('keyup', function(evt) | $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-' + id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-' + id).addClass('disabledButton'); } else $('#addButton-' + id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.inputField-' + id).live('blur', function(evt) { // clear elements elements = []; // loop $('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); }); // set new value $('#' + id).val(elements.join(options.splitChar)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); }; |
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); | var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '').replace(options.splitChar, ''); | $.fn.multipleTextbox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: false, afterBuild: null }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }); // remove previous HTML if($('#elementList-' + id).length > 0) { $('#elementList-' + id).parent('.multipleTextWrapper').remove(); } // build replace html var html = '<div class="multipleTextWrapper">' + ' <div id="elementList-' + id + '" class="multipleTextList">' + ' </div>' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-' + id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-' + id).addClass('disabledButton'); } else $('#addButton-' + id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // bind blur event on inputfields $('.inputField-' + id).live('blur', function(evt) { // clear elements elements = []; // loop $('.inputField-' + id).each(function() { // cleanup var value = $(this).val().replace(/^\s+|\s+$/g, ''); // empty elements shouldn't be added if(value == '') { $(this).parent().parent().remove(); } // add else elements.push(value); }); // set new value $('#' + id).val(elements.join(options.splitChar)); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">' + options.emptyMessage + '</p>'; // items available else { // start html html = '<ul>'; // loop elements for( var i in elements) { html += ' <li class="oneLiner">' + ' <p><input class="inputText dontSubmit inputField-' + id + '" name="inputField-' + id + '[]" type="text" value="' + elements[i] + '" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" class="button icon iconDelete iconOnly deleteButton-' + id + '" rel="' + elements[i] + '" title="' + options.removeLabel + '"><span>' + options.removeLabel + '</span></a>' + ' </div>' + ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-' + id).html(html); // call callback if specified if(options.afterBuild != null){ options.afterBuild(id); } } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); }; |
WT_DECLARE_WT_MEMBER(1,"WTreeView",function(l,d,i,p,q){function n(c){var a=-1,b=null,f=false,e=false,h=null;for(c=c.target||c.srcElement;c;){if(c.className.indexOf("c1 rh")==0){if(a==-1)a=0}else if(c.className.indexOf("Wt-tv-c")==0){if(c.className.indexOf("Wt-tv-c")==0)a=c.className.split(" ")[0].substring(7)*1;else if(a==-1)a=0;if(c.getAttribute("drop")==="true")e=true;h=c}else if(c.className=="Wt-tv-node"){b=c.id;break}if(c.className==="Wt-selected")f=true;c=c.parentNode;if(g.hasTag(c,"BODY"))break}return{columnId:a, nodeId:b,selected:f,drop:e,el:h}}jQuery.data(d,"obj",this);var o=i.firstChild,j=p.firstChild,g=l.WT;this.click=function(c,a){var b=n(a);b.columnId!=-1&&l.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"clicked","","")};this.dblClick=function(c,a){var b=n(a);b.columnId!=-1&&l.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"dblclicked","","")};this.mouseDown=function(c,a){g.capture(null);var b=n(a);if(b.columnId!=-1){l.emit(d,{name:"itemEvent",eventObject:c, | WT_DECLARE_WT_MEMBER(1,"WTreeView",function(m,d,i,p,q){function n(c){var a=-1,b=null,e=false,f=false,j=null;for(c=c.target||c.srcElement;c;){if(c.className.indexOf("c1 rh")==0){if(a==-1)a=0}else if(c.className.indexOf("Wt-tv-c")==0){if(c.className.indexOf("Wt-tv-c")==0)a=c.className.split(" ")[0].substring(7)*1;else if(a==-1)a=0;if(c.getAttribute("drop")==="true")f=true;j=c}else if(c.className=="Wt-tv-node"){b=c.id;break}if(c.className==="Wt-selected")e=true;c=c.parentNode;if(g.hasTag(c,"BODY"))break}return{columnId:a, nodeId:b,selected:e,drop:f,el:j}}jQuery.data(d,"obj",this);var o=i.firstChild,k=p.firstChild,g=m.WT;this.click=function(c,a){var b=n(a);b.columnId!=-1&&m.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"clicked","","")};this.dblClick=function(c,a){var b=n(a);b.columnId!=-1&&m.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"dblclicked","","")};this.mouseDown=function(c,a){g.capture(null);var b=n(a);if(b.columnId!=-1){m.emit(d,{name:"itemEvent",eventObject:c, | WT_DECLARE_WT_MEMBER(1,"WTreeView",function(l,d,i,p,q){function n(c){var a=-1,b=null,f=false,e=false,h=null;for(c=c.target||c.srcElement;c;){if(c.className.indexOf("c1 rh")==0){if(a==-1)a=0}else if(c.className.indexOf("Wt-tv-c")==0){if(c.className.indexOf("Wt-tv-c")==0)a=c.className.split(" ")[0].substring(7)*1;else if(a==-1)a=0;if(c.getAttribute("drop")==="true")e=true;h=c}else if(c.className=="Wt-tv-node"){b=c.id;break}if(c.className==="Wt-selected")f=true;c=c.parentNode;if(g.hasTag(c,"BODY"))break}return{columnId:a,nodeId:b,selected:f,drop:e,el:h}}jQuery.data(d,"obj",this);var o=i.firstChild,j=p.firstChild,g=l.WT;this.click=function(c,a){var b=n(a);b.columnId!=-1&&l.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"clicked","","")};this.dblClick=function(c,a){var b=n(a);b.columnId!=-1&&l.emit(d,{name:"itemEvent",eventObject:c,event:a},b.nodeId,b.columnId,"dblclicked","","")};this.mouseDown=function(c,a){g.capture(null);var b=n(a);if(b.columnId!=-1){l.emit(d,{name:"itemEvent",eventObject:c, |
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return l(b)}function n(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= | 3:2)+"}");p=b.substring(s).match(p);if(!p)throw"Missing number at position "+s;s+=p[0].length;return parseInt(p[0],10)},n=function(p,w,H){p=o(p)?H:w;for(w=0;w<p.length;w++)if(b.substr(s,p[w].length).toLowerCase()==p[w].toLowerCase()){s+=p[w].length;return w+1}throw"Unknown name at position "+s;},r=function(){if(b.charAt(s)!=a.charAt(z))throw"Unexpected literal at position "+s;s++},s=0,z=0;z<a.length;z++)if(j)if(a.charAt(z)=="'"&&!o("'"))j=false;else r();else switch(a.charAt(z)){case "d":l=m("d"); | 16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return l(b)}function n(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= |
null}document.addEventListener("focus",c,true);document.addEventListener("blur",d,true)}h.history._initialize();U();if(!ja){ja=true;_$_ONLOAD_$_();R||(aa=setTimeout(P,_$_KEEP_ALIVE_$_000))}}function b(c){clearTimeout(c);document.body.style.cursor="auto";if(ea!=null){try{ea()}catch(d){}ea=null}}function f(){document.body.style.cursor="wait";ea=hideLoadingIndicator;showLoadingIndicator()}function l(c){ka=c}function n(c){if(c){c="(function() {"+c+"})();";window.execScript?window.execScript(c):window.eval(c)}k._p_.autoJavaScript()} | e.target==document?null:e.target}function d(){document.activeElement=null}document.addEventListener("focus",c,true);document.addEventListener("blur",d,true)}h.history._initialize();U();if(!ja){ja=true;_$_ONLOAD_$_();R||(aa=setTimeout(z,_$_KEEP_ALIVE_$_000))}}function b(c){clearTimeout(c);document.body.style.cursor="auto";if(ea!=null){try{ea()}catch(d){}ea=null}}function f(){document.body.style.cursor="wait";ea=hideLoadingIndicator;showLoadingIndicator()}function l(c){ka=c}function n(c){if(c){c="(function() {"+ c+"})();";window.execScript?window.execScript(c):window.eval(c)}k._p_.autoJavaScript()}function o(c,d,e){if(!R){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();n(d);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&b(e)}else y=ga.concat(y);ga=[];if(P){clearTimeout(P);P=null}F=null;if(c>0)++ba;else ba=0;if(!R)if(ka||y.length>0)if(c==1){c=Math.min(12E4,Math.exp(ba)*500);S=setTimeout(function(){r()},c)}else r()}}function L(){F.abort(); | null}document.addEventListener("focus",c,true);document.addEventListener("blur",d,true)}h.history._initialize();U();if(!ja){ja=true;_$_ONLOAD_$_();R||(aa=setTimeout(P,_$_KEEP_ALIVE_$_000))}}function b(c){clearTimeout(c);document.body.style.cursor="auto";if(ea!=null){try{ea()}catch(d){}ea=null}}function f(){document.body.style.cursor="wait";ea=hideLoadingIndicator;showLoadingIndicator()}function l(c){ka=c}function n(c){if(c){c="(function() {"+c+"})();";window.execScript?window.execScript(c):window.eval(c)}k._p_.autoJavaScript()} |
m.timer=setTimeout(j,d);m.tm=j}function K(c,d){setTimeout(function(){if(T[c]===true)d();else T[c]=d},20)}function M(c){if(T[c]!==true){typeof T[c]!=="undefined"&&T[c]();T[c]=true}}function N(c,d,e){function j(){var t=e===undefined?2:e;if(t>1)N(c,d,t-1);else{alert("Fatal error: failed loading "+c);z()}}var m=false;if(d!="")try{m=!eval("typeof "+d+" === 'undefined'")}catch(i){m=false}if(m)M(c);else{var p=document.createElement("script");p.setAttribute("src",c);p.onload=function(){M(c)};p.onerror=j; p.onreadystatechange=function(){var t=p.readyState;if(t=="loaded")h.isOpera?M(c):j();else t=="complete"&&M(c)};document.getElementsByTagName("head")[0].appendChild(p)}}function x(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}function D(c){if(c.ieAlternativeExecuted)return"0";k.emit(c.parentNode,"IeAltnernative");c.style.width="";c.ieAlternativeExecuted=true;return"0"}function Y(c){window.onbeforeunload=c&&c!=""? | d+"rotation="+j.rotation;c.data=e;return c}function X(){for(var c="",d=false,e=0;e<y.length;++e){d=d||y[e].feedback;c+=y[e].data}ga=y;y=[];return{feedback:d,result:c}}function N(){R=true;if(aa){clearTimeout(aa);aa=null}var c=$("#Wt-timers");c.size()>0&&h.setHtml(c.get(0),"",false)}function z(){h.history._initTimeout();ba==0&&u(null,"none",null,false);aa=setTimeout(z,_$_KEEP_ALIVE_$_000)}function da(c){if(!h.isIEMobile)document.title=c}function a(){if(!document.activeElement){function c(e){if(e&&e.target)document.activeElement= | m.timer=setTimeout(j,d);m.tm=j}function K(c,d){setTimeout(function(){if(T[c]===true)d();else T[c]=d},20)}function M(c){if(T[c]!==true){typeof T[c]!=="undefined"&&T[c]();T[c]=true}}function N(c,d,e){function j(){var t=e===undefined?2:e;if(t>1)N(c,d,t-1);else{alert("Fatal error: failed loading "+c);z()}}var m=false;if(d!="")try{m=!eval("typeof "+d+" === 'undefined'")}catch(i){m=false}if(m)M(c);else{var p=document.createElement("script");p.setAttribute("src",c);p.onload=function(){M(c)};p.onerror=j;p.onreadystatechange=function(){var t=p.readyState;if(t=="loaded")h.isOpera?M(c):j();else t=="complete"&&M(c)};document.getElementsByTagName("head")[0].appendChild(p)}}function x(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}function D(c){if(c.ieAlternativeExecuted)return"0";k.emit(c.parentNode,"IeAltnernative");c.style.width="";c.ieAlternativeExecuted=true;return"0"}function Y(c){window.onbeforeunload=c&&c!=""? |
try{p=A.contentWindow.document;p.open();p.write(l);p.close();return true}catch(r){return false}}function i(){var l,p,r,y;if(!A.contentWindow||!A.contentWindow.document)setTimeout(i,10);else{l=A.contentWindow.document;r=(p=l.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var o,H;l=A.contentWindow.document;o=(p=l.getElementById("state"))?p.innerText:null;H=a();if(o!==r){r=o;e(r);H=r?r:L;y=location.hash=H;b()}else if(H!==y){y=H;k(H)}},50);I=true;x!=null&&x()}}function n(){if(!q){var l= a(),p=history.length;G&&clearInterval(G);G=setInterval(function(){var r,y;r=a();y=history.length;if(r!==l){l=r;p=y;e(l);b()}else if(y!==p&&u){l=r;p=y;r=M[p-1];e(r);b()}},50)}}function K(){var l;l=F.value.split("|");if(l.length>1){L=l[0];E=l[1]}if(l.length>2)M=l[2].split(",");if(q)i();else{n();I=true;x!=null&&x()}}var u=false,q=false,D=false,x=null,A=null,F=null,I=false,G=null,M=[],L,E,N=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){F!= | x){x=G;j(G)}},50);H=true;w!=null&&w()}}function n(){if(!q){var l=a(),p=history.length;F&&clearInterval(F);F=setInterval(function(){var r,x;r=a();x=history.length;if(r!==l){l=r;p=x;e(l);b()}else if(x!==p&&u){l=r;p=x;r=L[p-1];e(r);b()}},50)}}function J(){var l;l=E.value.split("|");if(l.length>1){K=l[0];D=l[1]}if(l.length>2)L=l[2].split(",");if(q)i();else{n();H=true;w!=null&&w()}}var u=false,q=false,C=false,w=null,z=null,E=null,H=false,F=null,L=[],K,D,M=function(){};return{onReady:function(l){if(H)setTimeout(function(){l()}, | try{p=A.contentWindow.document;p.open();p.write(l);p.close();return true}catch(r){return false}}function i(){var l,p,r,y;if(!A.contentWindow||!A.contentWindow.document)setTimeout(i,10);else{l=A.contentWindow.document;r=(p=l.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var o,H;l=A.contentWindow.document;o=(p=l.getElementById("state"))?p.innerText:null;H=a();if(o!==r){r=o;e(r);H=r?r:L;y=location.hash=H;b()}else if(H!==y){y=H;k(H)}},50);I=true;x!=null&&x()}}function n(){if(!q){var l=a(),p=history.length;G&&clearInterval(G);G=setInterval(function(){var r,y;r=a();y=history.length;if(r!==l){l=r;p=y;e(l);b()}else if(y!==p&&u){l=r;p=y;r=M[p-1];e(r);b()}},50)}}function K(){var l;l=F.value.split("|");if(l.length>1){L=l[0];E=l[1]}if(l.length>2)M=l[2].split(",");if(q)i();else{n();I=true;x!=null&&x()}}var u=false,q=false,D=false,x=null,A=null,F=null,I=false,G=null,M=[],L,E,N=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){F!= |
WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(c,h,e,k,o,p,q,r,f,l,m,i,j){function n(b){b=c.pageCoordinates(b);return Math.min(Math.max(h=="h"?b.x-g.x-d.x:b.y-g.y-d.y,o),p)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(h=="v"){a.style.width=k+"px";a.style.height=e+"px"}else{a.style.height=k+"px";a.style.width=e+"px"}var g=c.widgetCoordinates(f,m),d=c.widgetPageCoordinates(f);e=c.widgetPageCoordinates(l);i-=c.px(f,"marginLeft");j-=c.px(f,"marginTop");d.x+=i- | WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(c,j,e,m,p,q,r,s,g,h,i,k,l){function n(b){b=b.changedTouches?{x:b.changedTouches[0].pageX,y:b.changedTouches[0].pageY}:c.pageCoordinates(b);return Math.min(Math.max(j=="h"?b.x-f.x-d.x:b.y-f.y-d.y,p),q)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(j=="v"){a.style.width=m+"px";a.style.height=e+"px"}else{a.style.height=m+"px";a.style.width=e+"px"}var f,d=c.widgetPageCoordinates(g);e=c.widgetPageCoordinates(h);if(i.touches)f= | WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(c,h,e,k,o,p,q,r,f,l,m,i,j){function n(b){b=c.pageCoordinates(b);return Math.min(Math.max(h=="h"?b.x-g.x-d.x:b.y-g.y-d.y,o),p)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(h=="v"){a.style.width=k+"px";a.style.height=e+"px"}else{a.style.height=k+"px";a.style.width=e+"px"}var g=c.widgetCoordinates(f,m),d=c.widgetPageCoordinates(f);e=c.widgetPageCoordinates(l);i-=c.px(f,"marginLeft");j-=c.px(f,"marginTop");d.x+=i- |
WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(c,j,e,m,p,q,r,s,g,h,i,k,l){function n(b){b=b.changedTouches?{x:b.changedTouches[0].pageX,y:b.changedTouches[0].pageY}:c.pageCoordinates(b);return Math.min(Math.max(j=="h"?b.x-f.x-d.x:b.y-f.y-d.y,p),q)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(j=="v"){a.style.width=m+"px";a.style.height=e+"px"}else{a.style.height=m+"px";a.style.width=e+"px"}var f,d=c.widgetPageCoordinates(g);e=c.widgetPageCoordinates(h);if(i.touches)f= | WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(b,j,e,m,p,q,r,s,g,h,i,k,l){function n(c){c=!b.isIE&&c.changedTouches?{x:c.changedTouches[0].pageX,y:c.changedTouches[0].pageY}:b.pageCoordinates(c);return Math.min(Math.max(j=="h"?c.x-f.x-d.x:c.y-f.y-d.y,p),q)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(j=="v"){a.style.width=m+"px";a.style.height=e+"px"}else{a.style.height=m+"px";a.style.width=e+"px"}var f,d=b.widgetPageCoordinates(g);e=b.widgetPageCoordinates(h); | WT_DECLARE_WT_MEMBER(1,"SizeHandle",function(c,j,e,m,p,q,r,s,g,h,i,k,l){function n(b){b=b.changedTouches?{x:b.changedTouches[0].pageX,y:b.changedTouches[0].pageY}:c.pageCoordinates(b);return Math.min(Math.max(j=="h"?b.x-f.x-d.x:b.y-f.y-d.y,p),q)}var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="100";if(j=="v"){a.style.width=m+"px";a.style.height=e+"px"}else{a.style.height=m+"px";a.style.width=e+"px"}var f,d=c.widgetPageCoordinates(g);e=c.widgetPageCoordinates(h);if(i.touches)f= |
},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; | },getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this.externals[n]={dir:k,file:l};}},load:function(j,k,l){if(!e.isArray(j))j=j?[j]:[];var m=this.loaded,n=this.registered,o=[],p={},q={};for(var r=0;r<j.length;r++){var s=j[r];if(!s)continue;if(!m[s]&&!n[s]){var t=this.getFilePath(s);o.push(t);if(!(t in p))p[t]=[];p[t].push(s);}else q[s]=this.get(s);}a.scriptLoader.load(o,function(u,v){if(v.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+p[v[0]].join(',')+'" was not found at "'+v[0]+'".';for(var w=0;w<u.length;w++){var x=p[u[w]];for(var y=0;y<x.length;y++){var z=x[y];q[z]=this.get(z);m[z]=1;}}k.call(l,q);},this);}};a.plugins=new a.resourceManager('plugins/','plugin');var j=a.plugins;j.load=e.override(j.load,function(k){return function(l,m,n){var o={},p=function(q){k.call(this,q,function(r){e.extend(o,r);var s=[];for(var t in r){var u=r[t],v=u&&u.requires;if(v)for(var w=0;w<v.length;w++){if(!o[v[w]])s.push(v[w]);}}if(s.length)p.call(this,s);else{for(t in o){u=o[t];if(u.onLoad&&!u.onLoad._called){u.onLoad();u.onLoad._called=1;}}if(m)m.call(n||window,o);}},this);};p.call(this,l);};});j.setLang=function(k,l,m){var n=this.get(k),o=n.lang||(n.lang={});o[l]=m;};(function(){var k={},l=function(m,n){var o=function(){p.removeAllListeners();k[m]=1;n();},p=new h('img');p.on('load',o);p.on('error',o);p.setAttribute('src',m);};a.imageCacher={load:function(m,n){var o=m.length,p=function(){if(--o===0)n();};for(var q=0;q<m.length;q++){var r=m[q];if(k[r])p();else l(r,p);}}};})();a.skins=(function(){var k={},l={},m={},n=function(o,p,q,r){var s=k[p];if(!o.skin){o.skin=s;if(s.init)s.init(o);}var t=function(D){for(var E=0;E<D.length;E++)D[E]=a.getUrl(m[p]+D[E]);};function u(D,E){return D.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(F,G,H,I){if(/^\/|^\w?:/.test(H))return F;else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B); for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';var A=x.config;A.contentsLangDirection=='ui'&&(A.contentsLangDirection=x.lang.dir);s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[]; | },onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; |
R in P&&delete P[Q[S]];}}return O;},embed:function(O){var P=O.parent;if(P&&P.name=='object'){var Q=P.attributes.width,R=P.attributes.height;Q&&(O.attributes.width=Q);R&&(O.attributes.height=R);}},param:function(O){O.children=[];O.isEmpty=true;return O;},a:function(O){if(!(O.children.length||O.attributes.name||O.attributes._cke_saved_name))return false;},body:function(O){delete O.attributes.spellcheck;delete O.attributes.contenteditable;},style:function(O){var P=O.children[0];P&&P.value&&(P.value=e.trim(P.value));if(!O.attributes.type)O.attributes.type='text/css';},title:function(O){O.children[0].value=O.attributes._cke_title;}},attributes:{'class':function(O,P){return e.ltrim(O.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(O){if(O.substr(0,m.length)==m){if(O.substr(m.length,3)=='{C}')O=O.substr(m.length+3);else O=O.substr(m.length);return new a.htmlParser.cdata(decodeURIComponent(O));}return O;}},y={elements:{}};for(u in t)y.elements[u]=r;if(c)x.attributes.style=function(O,P){return O.toLowerCase();};var z=/<(?:a|area|img|input)[\s\S]*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi,A=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,B=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,C=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,D=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,E=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function F(O){return O.replace(z,'$& _cke_saved_$1');};function G(O){return O.replace(A,function(P){return '<cke:encoded>'+encodeURIComponent(P)+'</cke:encoded>';});};function H(O){return O.replace(B,function(P,Q){return decodeURIComponent(Q);});};function I(O){return O.replace(C,'$1cke:$2');};function J(O){return O.replace(D,'$1$2');};function K(O){return O.replace(E,'<cke:$1$2></cke:$1>');};function L(O){return O.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(P){return '<!--'+m+'{C}'+encodeURIComponent(P).replace(/--/g,'%2D%2D')+'-->';});};function M(O){return O.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(P,Q){return decodeURIComponent(Q);});};function N(O,P){var Q=[],R=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,S=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(P);O=O.replace(/<!--[\s\S]*?-->/g,function(U){return '<!--{cke_tempcomment}'+(Q.push(U)-1)+'-->';});for(var T=0;T<S.length;T++)O=O.replace(S[T],function(U){U=U.replace(R,function(V,W,X){return Q[X];});return '<!--{cke_temp}'+(Q.push(U)-1)+'-->';});O=O.replace(R,function(U,V,W){return '<!--'+m+(V?'{C}':'')+encodeURIComponent(Q[W]).replace(/--/g,'%2D%2D')+'-->'; });return O;};j.add('htmldataprocessor',{requires:['htmlwriter'],init:function(O){var P=O.dataProcessor=new a.htmlDataProcessor(O);P.writer.forceSimpleAmpersand=O.config.forceSimpleAmpersand;P.dataFilter.addRules(v);P.dataFilter.addRules(w);P.htmlFilter.addRules(x);P.htmlFilter.addRules(y);}});a.htmlDataProcessor=function(O){var P=this;P.editor=O;P.writer=new a.htmlWriter();P.dataFilter=new a.htmlParser.filter();P.htmlFilter=new a.htmlParser.filter();};a.htmlDataProcessor.prototype={toHtml:function(O,P){O=N(O,this.editor.config.protectedSource);O=F(O);O=G(O);O=I(O);O=K(O);var Q=new h('div');Q.setHtml('a'+O);O=Q.getHtml().substr(1);O=J(O);O=H(O);O=M(O);var R=a.htmlParser.fragment.fromHtml(O,P),S=new a.htmlParser.basicWriter();R.writeHtml(S,this.dataFilter);O=S.getHtml(true);O=L(O);return O;},toDataFormat:function(O,P){var Q=this.writer,R=a.htmlParser.fragment.fromHtml(O,P);Q.reset();R.writeHtml(Q,this.htmlFilter);return Q.getHtml(true);}};})();i.forceSimpleAmpersand=false;j.add('image',{init:function(l){var m='image';a.dialog.add(m,this.path+'dialogs/image.js');l.addCommand(m,new a.dialogCommand(m));l.ui.addButton('Image',{label:l.lang.common.image,command:m});if(l.addMenuItems)l.addMenuItems({image:{label:l.lang.image.menu,command:'image',group:'image'}});if(l.contextMenu)l.contextMenu.addListener(function(n,o){if(!n||!n.is('img')||n.getAttribute('_cke_realelement'))return null;return{image:2};});}});i.image_removeLinkByEmptyURL=true;(function(){var l={ol:1,ul:1};function m(r,s){r.getCommand(this.name).setState(s);};function n(r){var C=this;var s=r.data.path.elements,t,u,v=r.editor;for(var w=0;w<s.length;w++){if(s[w].getName()=='li'){u=s[w];continue;}if(l[s[w].getName()]){t=s[w];break;}}if(t)if(C.name=='outdent')return m.call(C,v,2);else{while(u&&(u=u.getPrevious(d.walker.whitespaces(true)))){if(u.getName&&u.getName()=='li')return m.call(C,v,2);}return m.call(C,v,0);}if(!C.useIndentClasses&&C.name=='indent')return m.call(C,v,2);var x=r.data.path,y=x.block||x.blockLimit;if(!y)return m.call(C,v,0);if(C.useIndentClasses){var z=y.$.className.match(C.classNameRegex),A=0;if(z){z=z[1];A=C.indentClassMap[z];}if(C.name=='outdent'&&!A||C.name=='indent'&&A==v.config.indentClasses.length)return m.call(C,v,0);return m.call(C,v,2);}else{var B=parseInt(y.getStyle(C.indentCssProperty),10);if(isNaN(B))B=0;if(B<=0)return m.call(C,v,0);return m.call(C,v,2);}};function o(r,s,t){var u=s.startContainer,v=s.endContainer;while(u&&!u.getParent().equals(t))u=u.getParent();while(v&&!v.getParent().equals(t))v=v.getParent(); | delete R.attributes.contenteditable;},style:function(R){var S=R.children[0];S&&S.value&&(S.value=e.trim(S.value));if(!R.attributes.type)R.attributes.type='text/css';},title:function(R){var S=R.children[0];S&&(S.value=R.attributes._cke_title||'');}},attributes:{'class':function(R,S){return e.ltrim(R.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(R){if(R.substr(0,m.length)==m){if(R.substr(m.length,3)=='{C}')R=R.substr(m.length+3);else R=R.substr(m.length);return new a.htmlParser.cdata(decodeURIComponent(R));}return R;}},y={elements:{}};for(u in t)y.elements[u]=r;if(c)x.attributes.style=function(R,S){return R.toLowerCase();};function z(R){R.attributes.contenteditable='false';};function A(R){delete R.attributes.contenteditable;};for(u in {input:1,textarea:1}){v.elements[u]=z;x.elements[u]=A;}var B=/<((?:a|area|img|input)[\s\S]*?\s)((href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))([^>]*)>/gi,C=/\s_cke_saved_src\s*=/,D=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,E=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,F=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,G=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,H=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function I(R){return R.replace(B,function(S,T,U,V,W){if(V=='src'&&C.test(S))return S;else return '<'+T+U+' _cke_saved_'+U+W+'>';});};function J(R){return R.replace(D,function(S){return '<cke:encoded>'+encodeURIComponent(S)+'</cke:encoded>';});};function K(R){return R.replace(E,function(S,T){return decodeURIComponent(T);});};function L(R){return R.replace(F,'$1cke:$2');};function M(R){return R.replace(G,'$1$2');};function N(R){return R.replace(H,'<cke:$1$2></cke:$1>');};function O(R){return R.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(S){return '<!--'+m+'{C}'+encodeURIComponent(S).replace(/--/g,'%2D%2D')+'-->';});};function P(R){return R.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(S,T){return decodeURIComponent(T);});};function Q(R,S){var T=[],U=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,V=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(S);R=R.replace(/<!--[\s\S]*?-->/g,function(X){return '<!--{cke_tempcomment}'+(T.push(X)-1)+'-->';});for(var W=0;W<V.length;W++)R=R.replace(V[W],function(X){X=X.replace(U,function(Y,Z,aa){return T[aa];});return '<!--{cke_temp}'+(T.push(X)-1)+'-->';});R=R.replace(U,function(X,Y,Z){return '<!--'+m+(Y?'{C}':'')+encodeURIComponent(T[Z]).replace(/--/g,'%2D%2D')+'-->'; | R in P&&delete P[Q[S]];}}return O;},embed:function(O){var P=O.parent;if(P&&P.name=='object'){var Q=P.attributes.width,R=P.attributes.height;Q&&(O.attributes.width=Q);R&&(O.attributes.height=R);}},param:function(O){O.children=[];O.isEmpty=true;return O;},a:function(O){if(!(O.children.length||O.attributes.name||O.attributes._cke_saved_name))return false;},body:function(O){delete O.attributes.spellcheck;delete O.attributes.contenteditable;},style:function(O){var P=O.children[0];P&&P.value&&(P.value=e.trim(P.value));if(!O.attributes.type)O.attributes.type='text/css';},title:function(O){O.children[0].value=O.attributes._cke_title;}},attributes:{'class':function(O,P){return e.ltrim(O.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(O){if(O.substr(0,m.length)==m){if(O.substr(m.length,3)=='{C}')O=O.substr(m.length+3);else O=O.substr(m.length);return new a.htmlParser.cdata(decodeURIComponent(O));}return O;}},y={elements:{}};for(u in t)y.elements[u]=r;if(c)x.attributes.style=function(O,P){return O.toLowerCase();};var z=/<(?:a|area|img|input)[\s\S]*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi,A=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,B=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,C=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,D=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,E=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function F(O){return O.replace(z,'$& _cke_saved_$1');};function G(O){return O.replace(A,function(P){return '<cke:encoded>'+encodeURIComponent(P)+'</cke:encoded>';});};function H(O){return O.replace(B,function(P,Q){return decodeURIComponent(Q);});};function I(O){return O.replace(C,'$1cke:$2');};function J(O){return O.replace(D,'$1$2');};function K(O){return O.replace(E,'<cke:$1$2></cke:$1>');};function L(O){return O.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(P){return '<!--'+m+'{C}'+encodeURIComponent(P).replace(/--/g,'%2D%2D')+'-->';});};function M(O){return O.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(P,Q){return decodeURIComponent(Q);});};function N(O,P){var Q=[],R=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,S=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(P);O=O.replace(/<!--[\s\S]*?-->/g,function(U){return '<!--{cke_tempcomment}'+(Q.push(U)-1)+'-->';});for(var T=0;T<S.length;T++)O=O.replace(S[T],function(U){U=U.replace(R,function(V,W,X){return Q[X];});return '<!--{cke_temp}'+(Q.push(U)-1)+'-->';});O=O.replace(R,function(U,V,W){return '<!--'+m+(V?'{C}':'')+encodeURIComponent(Q[W]).replace(/--/g,'%2D%2D')+'-->';});return O;};j.add('htmldataprocessor',{requires:['htmlwriter'],init:function(O){var P=O.dataProcessor=new a.htmlDataProcessor(O);P.writer.forceSimpleAmpersand=O.config.forceSimpleAmpersand;P.dataFilter.addRules(v);P.dataFilter.addRules(w);P.htmlFilter.addRules(x);P.htmlFilter.addRules(y);}});a.htmlDataProcessor=function(O){var P=this;P.editor=O;P.writer=new a.htmlWriter();P.dataFilter=new a.htmlParser.filter();P.htmlFilter=new a.htmlParser.filter();};a.htmlDataProcessor.prototype={toHtml:function(O,P){O=N(O,this.editor.config.protectedSource);O=F(O);O=G(O);O=I(O);O=K(O);var Q=new h('div');Q.setHtml('a'+O);O=Q.getHtml().substr(1);O=J(O);O=H(O);O=M(O);var R=a.htmlParser.fragment.fromHtml(O,P),S=new a.htmlParser.basicWriter();R.writeHtml(S,this.dataFilter);O=S.getHtml(true);O=L(O);return O;},toDataFormat:function(O,P){var Q=this.writer,R=a.htmlParser.fragment.fromHtml(O,P);Q.reset();R.writeHtml(Q,this.htmlFilter);return Q.getHtml(true);}};})();i.forceSimpleAmpersand=false;j.add('image',{init:function(l){var m='image';a.dialog.add(m,this.path+'dialogs/image.js');l.addCommand(m,new a.dialogCommand(m));l.ui.addButton('Image',{label:l.lang.common.image,command:m});if(l.addMenuItems)l.addMenuItems({image:{label:l.lang.image.menu,command:'image',group:'image'}});if(l.contextMenu)l.contextMenu.addListener(function(n,o){if(!n||!n.is('img')||n.getAttribute('_cke_realelement'))return null;return{image:2};});}});i.image_removeLinkByEmptyURL=true;(function(){var l={ol:1,ul:1};function m(r,s){r.getCommand(this.name).setState(s);};function n(r){var C=this;var s=r.data.path.elements,t,u,v=r.editor;for(var w=0;w<s.length;w++){if(s[w].getName()=='li'){u=s[w];continue;}if(l[s[w].getName()]){t=s[w];break;}}if(t)if(C.name=='outdent')return m.call(C,v,2);else{while(u&&(u=u.getPrevious(d.walker.whitespaces(true)))){if(u.getName&&u.getName()=='li')return m.call(C,v,2);}return m.call(C,v,0);}if(!C.useIndentClasses&&C.name=='indent')return m.call(C,v,2);var x=r.data.path,y=x.block||x.blockLimit;if(!y)return m.call(C,v,0);if(C.useIndentClasses){var z=y.$.className.match(C.classNameRegex),A=0;if(z){z=z[1];A=C.indentClassMap[z];}if(C.name=='outdent'&&!A||C.name=='indent'&&A==v.config.indentClasses.length)return m.call(C,v,0);return m.call(C,v,2);}else{var B=parseInt(y.getStyle(C.indentCssProperty),10);if(isNaN(B))B=0;if(B<=0)return m.call(C,v,0);return m.call(C,v,2);}};function o(r,s,t){var u=s.startContainer,v=s.endContainer;while(u&&!u.getParent().equals(t))u=u.getParent();while(v&&!v.getParent().equals(t))v=v.getParent(); |
R=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,Ka=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,la=/<([\w:]+)/,La=/<tbody/i,Ma=/<|&\w+;/,Na=function(a,b,e){return Ka.test(e)?a:b+"></"+e+">"},y={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"], | ""+e);a=!c.support.hrefNormalized&&f&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,e)}});var ka=/ jQuery\d+="(?:\d+|null)"/g,R=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,Ka=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,la=/<([\w:]+)/,La=/<tbody/i,Ma=/<|&\w+;/,Na=function(a,b,e){return Ka.test(e)?a:b+"></"+e+">"},z={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"], | R=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,Ka=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,la=/<([\w:]+)/,La=/<tbody/i,Ma=/<|&\w+;/,Na=function(a,b,e){return Ka.test(e)?a:b+"></"+e+">"},y={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"], |
h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash= fqstate;if(u){O[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); | "";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]= fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); | h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); |
"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]= fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); | navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); | "";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); |
"undefined")z=true;else if(typeof document.all!=="undefined")s=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(s){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(s)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]= fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=m.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=m.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;m.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=m.getElement(d.getAttribute("dwid"));if(e.object== | q){if(!I){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")z=true;else if(typeof document.all!=="undefined")s=true;else if(r.indexOf("Apple Computer, Inc.")>-1)v=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){w=l;if(s){if(typeof q==="string")q=document.getElementById(q);!q||q.tagName.toUpperCase()!=="IFRAME"||(F=q)}}}},navigate:function(l){if(I){fqstate= l;if(s)k(fqstate);else{location.hash=fqstate;if(v){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=m.pageCoordinates(d);N=d.x;J=d.y}function u(){var d=m.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;m.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d, | "undefined")z=true;else if(typeof document.all!=="undefined")s=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(s){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(s)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=m.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=m.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;m.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=m.getElement(d.getAttribute("dwid"));if(e.object== |
p){if(!F){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")s=true;else if(!q&&r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){J=g;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(I=p)}}}},navigate:function(g){if(F){fqstate=g;if(q)j(fqstate);else{location.hash= | p){if(!F){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")s=true;else if(!q&&r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){K=g;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(I=p)}}}},navigate:function(g){if(F){fqstate=g;if(q)j(fqstate);else{location.hash= | p){if(!F){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")s=true;else if(!q&&r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){J=g;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(I=p)}}}},navigate:function(g){if(F){fqstate=g;if(q)j(fqstate);else{location.hash=fqstate;if(u){D[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!F)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=g.pageCoordinates(d);p=d.x;r=d.y}function w(){var d=g.history.getCurrentState();if(v!=d){v=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function G(d){if(v!=d){v=d;g.history.navigate(escape(d))}}function U(){window.onresize=function(){j()};document.body.ondragstart=function(){return false}}function Z(d,c){var f=M;f.object=g.getElement(d.getAttribute("dwid")); |
fqstate;if(u){N[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); | fqstate;if(u){O[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); | h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){N[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!K)return"";return D}}}()}); |
l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d= | "undefined")y=true;else if(typeof document.all!=="undefined")r=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]= fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=n.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){y(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;n.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=n.getElement(d.getAttribute("dwid"));if(e.object== | l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d= |
navigator.vendor||"";if(n!=="KDE")if(typeof window.opera!=="undefined")C=true;else if(typeof document.all!=="undefined")t=true;else if(n.indexOf("Apple Computer, Inc.")>-1)r=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){H=g;if(t){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(K=p)}}}},navigate:function(g){if(E){fqstate=g; if(t)m(fqstate);else{location.hash=fqstate;if(r){A[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!E)return"";return z}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=n.pageCoordinates(d);y=d.x;M=d.y}function s(){var d=n.history.getCurrentState();if(w!=d){w=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function F(d){if(w!=d){w=d;n.history.navigate(escape(d))}}function k(){window.onresize=function(){C()};document.body.ondragstart=function(){return false}}function G(d, | true;else if(p.indexOf("Apple Computer, Inc.")>-1)q=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){L=g;if(u){if(typeof o==="string")o=document.getElementById(o);!o||o.tagName.toUpperCase()!=="IFRAME"||(F=o)}}}},navigate:function(g){if(w){fqstate=g;if(u)m(fqstate);else{location.hash=fqstate;if(q){N[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!w)return""; | navigator.vendor||"";if(n!=="KDE")if(typeof window.opera!=="undefined")C=true;else if(typeof document.all!=="undefined")t=true;else if(n.indexOf("Apple Computer, Inc.")>-1)r=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){H=g;if(t){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(K=p)}}}},navigate:function(g){if(E){fqstate=g;if(t)m(fqstate);else{location.hash=fqstate;if(r){A[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!E)return"";return z}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=n.pageCoordinates(d);y=d.x;M=d.y}function s(){var d=n.history.getCurrentState();if(w!=d){w=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function F(d){if(w!=d){w=d;n.history.navigate(escape(d))}}function k(){window.onresize=function(){C()};document.body.ondragstart=function(){return false}}function G(d, |
navi = api.getRoot().parent().find(conf.navi), | navi = find(api.getRoot(), conf.navi), | $.fn.navigator = function(conf) { // configuration if (typeof conf == 'string') { conf = {navi: conf}; } conf = $.extend({}, t.navigator.conf, conf); var ret; this.each(function() { var api = $(this).data("scrollable"), navi = api.getRoot().parent().find(conf.navi), buttons = api.getNaviButtons(), cls = conf.activeClass, history = conf.history && $.fn.history; // @deprecated stuff if (api) { ret = api; } api.getNaviButtons = function() { return buttons.add(navi); }; function doClick(el, i, e) { api.seekTo(i); if (history) { if (location.hash) { location.hash = el.attr("href").replace("#", ""); } } else { return e.preventDefault(); } } function els() { return navi.find(conf.naviItem || '> *'); } function addItem(i) { var item = $("<" + (conf.naviItem || 'a') + "/>").click(function(e) { doClick($(this), i, e); }).attr("href", "#" + i); // index number / id attribute if (i === 0) { item.addClass(cls); } if (conf.indexed) { item.text(i + 1); } if (conf.idPrefix) { item.attr("id", conf.idPrefix + i); } return item.appendTo(navi); } // generate navigator if (els().length) { els().each(function(i) { $(this).click(function(e) { doClick($(this), i, e); }); }); } else { $.each(api.getItems(), function(i) { addItem(i); }); } // activate correct entry api.onBeforeSeek(function(e, index) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } }); function doHistory(evt, hash) { var el = els().eq(hash.replace("#", "")); if (!el.length) { el = els().filter("[href=" + hash + "]"); } el.click(); } // new item being added api.onAddItem(function(e, item) { item = addItem(api.getItems().index(item)); if (history) { item.history(doHistory); } }); if (history) { els().history(doHistory); } }); return conf.api ? ret : this; }; |
var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } | setTimeout(function() { if (!e.isDefaultPrevented()) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } } }, 1); | $.fn.navigator = function(conf) { // configuration if (typeof conf == 'string') { conf = {navi: conf}; } conf = $.extend({}, t.navigator.conf, conf); var ret; this.each(function() { var api = $(this).data("scrollable"), navi = find(api.getRoot(), conf.navi), buttons = api.getNaviButtons(), cls = conf.activeClass, history = conf.history && $.fn.history; // @deprecated stuff if (api) { ret = api; } api.getNaviButtons = function() { return buttons.add(navi); }; function doClick(el, i, e) { api.seekTo(i); if (history) { if (location.hash) { location.hash = el.attr("href").replace("#", ""); } } else { return e.preventDefault(); } } function els() { return navi.find(conf.naviItem || '> *'); } function addItem(i) { var item = $("<" + (conf.naviItem || 'a') + "/>").click(function(e) { doClick($(this), i, e); }).attr("href", "#" + i); // index number / id attribute if (i === 0) { item.addClass(cls); } if (conf.indexed) { item.text(i + 1); } if (conf.idPrefix) { item.attr("id", conf.idPrefix + i); } return item.appendTo(navi); } // generate navigator if (els().length) { els().each(function(i) { $(this).click(function(e) { doClick($(this), i, e); }); }); } else { $.each(api.getItems(), function(i) { addItem(i); }); } // activate correct entry api.onBeforeSeek(function(e, index) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } }); function doHistory(evt, hash) { var el = els().eq(hash.replace("#", "")); if (!el.length) { el = els().filter("[href=" + hash + "]"); } el.click(); } // new item being added api.onAddItem(function(e, item) { item = addItem(api.getItems().index(item)); if (history) { item.history(doHistory); } }); if (history) { els().history(doHistory); } }); return conf.api ? ret : this; }; |
this.row = this.rows.item(++this.rowIndex); | this.rowIndex += 1; this.row = this.rows.item(this.rowIndex); | next: function(){ this.row = this.rows.item(++this.rowIndex); }, |
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling", | a);return this.pushStack(a[0]&&(a[0].setInterval||a[0].nodeType===9||a[0].parentNode&&a[0].parentNode.nodeType!==11)?c.unique(b):b)},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,e){return c.dir(a,"parentNode",e)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a, | d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling", |
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling", | a);return this.pushStack(a[0]&&(a[0].setInterval||a[0].nodeType===9||a[0].parentNode&&a[0].parentNode.nodeType!==11)?c.unique(b):b)},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,e){return c.dir(a,"parentNode",e)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a, "nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,e){return c.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return c.dir(a,"previousSibling",e)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(e,f){var h=c.map(this,b,e);Ba.test(a)|| | d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling", |
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling", | "nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,e){return c.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return c.dir(a,"previousSibling",e)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(e,f){var h=c.map(this,b,e);Ba.test(a)|| | d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return d.dir(a,"previousSibling", |
if($('#nickname').val() == jsBackend.users.controls.calculateNick()) { $('#name').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); }); $('#surname').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); }); } | if($('#nickname').val() != jsBackend.users.controls.calculateNick()) { change = false; } $('#name').keyup(function() { if(change) { $('#nickname').val(jsBackend.users.controls.calculateNick()); } }); $('#surname').keyup(function() { if(change) { $('#nickname').val(jsBackend.users.controls.calculateNick()); } }); $('#nickname').keyup(function() { change = false; }); | nick: function() { // are all elements available if($('#nickname').length > 0 && $('#name').length > 0 && $('#surname').length > 0) { // if the current value is the same as the one that would be generated then we bind the events if($('#nickname').val() == jsBackend.users.controls.calculateNick()) { // bind events $('#name').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); }); $('#surname').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); }); } } }, |
var r = win.Raphael, u; | var r = Raphael; | R.ninja = function () { var r = win.Raphael, u; if (oldRaphael.was) { win.Raphael = oldRaphael.is; } else { try { delete win.Raphael; } catch (e) { win.Raphael = u; } } return r; }; |
win.Raphael = oldRaphael.is; | Raphael = oldRaphael.is; | R.ninja = function () { var r = win.Raphael, u; if (oldRaphael.was) { win.Raphael = oldRaphael.is; } else { try { delete win.Raphael; } catch (e) { win.Raphael = u; } } return r; }; |
try { delete win.Raphael; } catch (e) { win.Raphael = u; } | delete Raphael; | R.ninja = function () { var r = win.Raphael, u; if (oldRaphael.was) { win.Raphael = oldRaphael.is; } else { try { delete win.Raphael; } catch (e) { win.Raphael = u; } } return r; }; |
splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,h,k,l,q;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(g&&q&&(d.isPlainObject(q)||d.isArray(q))){l=l&&(d.isPlainObject(l)||d.isArray(l))?l:d.isArray(q)?[]:{};a[k]=d.extend(g,l,q)}else if(q!==v)a[k]=q}return a};d.extend({noConflict:function(a){x.$= ta;if(a)x.jQuery=sa;return d},isReady:false,ready:function(){if(!d.isReady){if(!r.body)return setTimeout(d.ready,13);d.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,d);H=null}d.fn.triggerHandler&&d(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return d.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",d.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload", | splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,f=false,h,k,l,q;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(f&&q&&(c.isPlainObject(q)||c.isArray(q))){l=l&&(c.isPlainObject(l)||c.isArray(l))?l:c.isArray(q)?[]:{};a[k]=c.extend(f,l,q)}else if(q!==v)a[k]=q}return a};c.extend({noConflict:function(a){x.$= ta;if(a)x.jQuery=sa;return c},isReady:false,ready:function(){if(!c.isReady){if(!r.body)return setTimeout(c.ready,13);c.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,c);H=null}c.fn.triggerHandler&&c(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return c.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",c.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload", | splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,h,k,l,q;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(g&&q&&(d.isPlainObject(q)||d.isArray(q))){l=l&&(d.isPlainObject(l)||d.isArray(l))?l:d.isArray(q)?[]:{};a[k]=d.extend(g,l,q)}else if(q!==v)a[k]=q}return a};d.extend({noConflict:function(a){x.$=ta;if(a)x.jQuery=sa;return d},isReady:false,ready:function(){if(!d.isReady){if(!r.body)return setTimeout(d.ready,13);d.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,d);H=null}d.fn.triggerHandler&&d(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return d.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",d.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload", |
this.$.focus();},getViewPaneSize:function(){var g=this.$.document,h=g.compatMode=='CSS1Compat';return{width:(h?g.documentElement.clientWidth:g.body.clientWidth)||0,height:(h?g.documentElement.clientHeight:g.body.clientHeight)||0};},getScrollPosition:function(){var g=this.$;if('pageXOffset' in g)return{x:g.pageXOffset||0,y:g.pageYOffset||0};else{var h=g.document;return{x:h.documentElement.scrollLeft||h.body.scrollLeft||0,y:h.documentElement.scrollTop||h.body.scrollTop||0};}}});d.document=function(g){d.domObject.call(this,g);};var g=d.document;g.prototype=new d.domObject();e.extend(g.prototype,{appendStyleSheet:function(h){if(this.$.createStyleSheet)this.$.createStyleSheet(h);else{var i=new d.element('link');i.setAttributes({rel:'stylesheet',type:'text/css',href:h});this.getHead().append(i);}},appendStyleText:function(h){var k=this;if(k.$.createStyleSheet){var i=k.$.createStyleSheet('');i.cssText=h;}else{var j=new d.element('style',k);j.append(new d.text(h,k));k.getHead().append(j);}},createElement:function(h,i){var j=new d.element(h,this);if(i){if(i.attributes)j.setAttributes(i.attributes);if(i.styles)j.setStyles(i.styles);}return j;},createText:function(h){return new d.text(h,this);},focus:function(){this.getWindow().focus();},getById:function(h){var i=this.$.getElementById(h);return i?new d.element(i):null;},getByAddress:function(h,i){var j=this.$.documentElement;for(var k=0;j&&k<h.length;k++){var l=h[k];if(!i){j=j.childNodes[l];continue;}var m=-1;for(var n=0;n<j.childNodes.length;n++){var o=j.childNodes[n];if(i===true&&o.nodeType==3&&o.previousSibling&&o.previousSibling.nodeType==3)continue;m++;if(m==l){j=o;break;}}}return j?new d.node(j):null;},getElementsByTag:function(h,i){if(!c&&i)h=i+':'+h;return new d.nodeList(this.$.getElementsByTagName(h));},getHead:function(){var h=this.$.getElementsByTagName('head')[0];h=new d.element(h);return(this.getHead=function(){return h;})();},getBody:function(){var h=new d.element(this.$.body);return(this.getBody=function(){return h;})();},getDocumentElement:function(){var h=new d.element(this.$.documentElement);return(this.getDocumentElement=function(){return h;})();},getWindow:function(){var h=new d.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow=function(){return h;})();}});d.node=function(h){if(h){switch(h.nodeType){case 9:return new g(h);case 1:return new d.element(h);case 3:return new d.text(h);}d.domObject.call(this,h);}return this;};d.node.prototype=new d.domObject();a.NODE_ELEMENT=1;a.NODE_DOCUMENT=9; | e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},getViewPaneSize:function(){var g=this.$.document,h=g.compatMode=='CSS1Compat';return{width:(h?g.documentElement.clientWidth:g.body.clientWidth)||0,height:(h?g.documentElement.clientHeight:g.body.clientHeight)||0};},getScrollPosition:function(){var g=this.$;if('pageXOffset' in g)return{x:g.pageXOffset||0,y:g.pageYOffset||0};else{var h=g.document;return{x:h.documentElement.scrollLeft||h.body.scrollLeft||0,y:h.documentElement.scrollTop||h.body.scrollTop||0};}}});d.document=function(g){d.domObject.call(this,g);};var g=d.document;g.prototype=new d.domObject();e.extend(g.prototype,{appendStyleSheet:function(h){if(this.$.createStyleSheet)this.$.createStyleSheet(h);else{var i=new d.element('link');i.setAttributes({rel:'stylesheet',type:'text/css',href:h});this.getHead().append(i);}},appendStyleText:function(h){var k=this;if(k.$.createStyleSheet){var i=k.$.createStyleSheet('');i.cssText=h;}else{var j=new d.element('style',k);j.append(new d.text(h,k));k.getHead().append(j);}},createElement:function(h,i){var j=new d.element(h,this);if(i){if(i.attributes)j.setAttributes(i.attributes);if(i.styles)j.setStyles(i.styles);}return j;},createText:function(h){return new d.text(h,this);},focus:function(){this.getWindow().focus();},getById:function(h){var i=this.$.getElementById(h);return i?new d.element(i):null;},getByAddress:function(h,i){var j=this.$.documentElement;for(var k=0;j&&k<h.length;k++){var l=h[k];if(!i){j=j.childNodes[l];continue;}var m=-1;for(var n=0;n<j.childNodes.length;n++){var o=j.childNodes[n];if(i===true&&o.nodeType==3&&o.previousSibling&&o.previousSibling.nodeType==3)continue;m++;if(m==l){j=o;break;}}}return j?new d.node(j):null;},getElementsByTag:function(h,i){if(!c&&i)h=i+':'+h;return new d.nodeList(this.$.getElementsByTagName(h));},getHead:function(){var h=this.$.getElementsByTagName('head')[0];h=new d.element(h);return(this.getHead=function(){return h;})();},getBody:function(){var h=new d.element(this.$.body);return(this.getBody=function(){return h;})();},getDocumentElement:function(){var h=new d.element(this.$.documentElement);return(this.getDocumentElement=function(){return h;})();},getWindow:function(){var h=new d.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow=function(){return h;})();}});d.node=function(h){if(h){switch(h.nodeType){case 9:return new g(h);case 1:return new d.element(h);case 3:return new d.text(h);}d.domObject.call(this,h); }return this;};d.node.prototype=new d.domObject();a.NODE_ELEMENT=1;a.NODE_DOCUMENT=9;a.NODE_TEXT=3;a.NODE_COMMENT=8;a.NODE_DOCUMENT_FRAGMENT=11;a.POSITION_IDENTICAL=0;a.POSITION_DISCONNECTED=1;a.POSITION_FOLLOWING=2;a.POSITION_PRECEDING=4;a.POSITION_IS_CONTAINED=8;a.POSITION_CONTAINS=16;e.extend(d.node.prototype,{appendTo:function(h,i){h.append(this,i);return h;},clone:function(h,i){var j=this.$.cloneNode(h);if(!i){var k=function(l){if(l.nodeType!=1)return;l.removeAttribute('id',false);l.removeAttribute('_cke_expando',false);var m=l.childNodes;for(var n=0;n<m.length;n++)k(m[n]);};k(j);}return new d.node(j);},hasPrevious:function(){return!!this.$.previousSibling;},hasNext:function(){return!!this.$.nextSibling;},insertAfter:function(h){h.$.parentNode.insertBefore(this.$,h.$.nextSibling);return h;},insertBefore:function(h){h.$.parentNode.insertBefore(this.$,h.$);return h;},insertBeforeMe:function(h){this.$.parentNode.insertBefore(h.$,this.$);return h;},getAddress:function(h){var i=[],j=this.getDocument().$.documentElement,k=this.$;while(k&&k!=j){var l=k.parentNode,m=-1;if(l){for(var n=0;n<l.childNodes.length;n++){var o=l.childNodes[n];if(h&&o.nodeType==3&&o.previousSibling&&o.previousSibling.nodeType==3)continue;m++;if(o==k)break;}i.unshift(m);}k=l;}return i;},getDocument:function(){var h=new g(this.$.ownerDocument||this.$.parentNode.ownerDocument);return(this.getDocument=function(){return h;})();},getIndex:function(){var h=this.$,i=h.parentNode&&h.parentNode.firstChild,j=-1;while(i){j++;if(i==h)return j;i=i.nextSibling;}return-1;},getNextSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getFirst&&this.getFirst(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getNext();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getNext();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&i!=l.type)return l.getNextSourceNode(false,i,j);return l;},getPreviousSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getLast&&this.getLast(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getPrevious();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getPrevious();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&l.type!=i)return l.getPreviousSourceNode(false,i,j);return l;},getPrevious:function(h){var i=this.$,j;do{i=i.previousSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j; | this.$.focus();},getViewPaneSize:function(){var g=this.$.document,h=g.compatMode=='CSS1Compat';return{width:(h?g.documentElement.clientWidth:g.body.clientWidth)||0,height:(h?g.documentElement.clientHeight:g.body.clientHeight)||0};},getScrollPosition:function(){var g=this.$;if('pageXOffset' in g)return{x:g.pageXOffset||0,y:g.pageYOffset||0};else{var h=g.document;return{x:h.documentElement.scrollLeft||h.body.scrollLeft||0,y:h.documentElement.scrollTop||h.body.scrollTop||0};}}});d.document=function(g){d.domObject.call(this,g);};var g=d.document;g.prototype=new d.domObject();e.extend(g.prototype,{appendStyleSheet:function(h){if(this.$.createStyleSheet)this.$.createStyleSheet(h);else{var i=new d.element('link');i.setAttributes({rel:'stylesheet',type:'text/css',href:h});this.getHead().append(i);}},appendStyleText:function(h){var k=this;if(k.$.createStyleSheet){var i=k.$.createStyleSheet('');i.cssText=h;}else{var j=new d.element('style',k);j.append(new d.text(h,k));k.getHead().append(j);}},createElement:function(h,i){var j=new d.element(h,this);if(i){if(i.attributes)j.setAttributes(i.attributes);if(i.styles)j.setStyles(i.styles);}return j;},createText:function(h){return new d.text(h,this);},focus:function(){this.getWindow().focus();},getById:function(h){var i=this.$.getElementById(h);return i?new d.element(i):null;},getByAddress:function(h,i){var j=this.$.documentElement;for(var k=0;j&&k<h.length;k++){var l=h[k];if(!i){j=j.childNodes[l];continue;}var m=-1;for(var n=0;n<j.childNodes.length;n++){var o=j.childNodes[n];if(i===true&&o.nodeType==3&&o.previousSibling&&o.previousSibling.nodeType==3)continue;m++;if(m==l){j=o;break;}}}return j?new d.node(j):null;},getElementsByTag:function(h,i){if(!c&&i)h=i+':'+h;return new d.nodeList(this.$.getElementsByTagName(h));},getHead:function(){var h=this.$.getElementsByTagName('head')[0];h=new d.element(h);return(this.getHead=function(){return h;})();},getBody:function(){var h=new d.element(this.$.body);return(this.getBody=function(){return h;})();},getDocumentElement:function(){var h=new d.element(this.$.documentElement);return(this.getDocumentElement=function(){return h;})();},getWindow:function(){var h=new d.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow=function(){return h;})();}});d.node=function(h){if(h){switch(h.nodeType){case 9:return new g(h);case 1:return new d.element(h);case 3:return new d.text(h);}d.domObject.call(this,h);}return this;};d.node.prototype=new d.domObject();a.NODE_ELEMENT=1;a.NODE_DOCUMENT=9; |
if (node.isRoot) | if (node.isRoot || this.payload.get('repoType') == 'group') | nodeClickHandler : function(node, e) { if (e.target.nodeName == 'A') return; // no menu on links if (this.nodeClickEvent) { Sonatype.Events.fireEvent(this.nodeClickEvent, node, this.nodeClickPassthru); } if (node) { if (node.isRoot) { this.deleteButton.disable(); } else { this.deleteButton.enable(); } this.viewButton.enable(); this.viewRemoteButton.enable(); this.clearCacheButton.enable(); this.rebuildMetadataButton.enable(); } else { this.viewButton.disable(); this.viewRemoteButton.disable(); this.deleteButton.disable(); this.clearCacheButton.disable(); this.rebuildMetadataButton.disable(); } }, |
this.viewRemoteButton.enable(); this.clearCacheButton.enable(); this.rebuildMetadataButton.enable(); | if (this.payload.get('userManaged')) { if (this.sp.checkPermission('nexus:cache', this.sp.DELETE) && this.payload.get('repoType') != 'virtual') { this.clearCacheButton.enable(); } else { this.clearCacheButton.disable(); } if (this.sp.checkPermission('nexus:metadata', this.sp.DELETE) && (this.payload.get('format') == 'maven2' || this.payload.get('format') == 'maven1') && (this.payload.get('repoType') == 'hosted' || this.payload.get('repoType') == 'group')) { this.rebuildMetadataButton.enable(); } else { this.rebuildMetadataButton.disable(); } } | nodeClickHandler : function(node, e) { if (e.target.nodeName == 'A') return; // no menu on links if (this.nodeClickEvent) { Sonatype.Events.fireEvent(this.nodeClickEvent, node, this.nodeClickPassthru); } if (node) { if (node.isRoot) { this.deleteButton.disable(); } else { this.deleteButton.enable(); } this.viewButton.enable(); this.viewRemoteButton.enable(); this.clearCacheButton.enable(); this.rebuildMetadataButton.enable(); } else { this.viewButton.disable(); this.viewRemoteButton.disable(); this.deleteButton.disable(); this.clearCacheButton.disable(); this.rebuildMetadataButton.disable(); } }, |
},getParent:function(){var h=this.$.parentNode;return h&&h.nodeType==1?new d.node(h):null;},getParents:function(h){var i=this,j=[];do j[h?'push':'unshift'](i);while(i=i.getParent())return j;},getCommonAncestor:function(h){var j=this;if(h.equals(j))return j;if(h.contains&&h.contains(j))return h;var i=j.contains?j:j.getParent();do{if(i.contains(h))return i;}while(i=i.getParent())return null;},getPosition:function(h){var i=this.$,j=h.$;if(i.compareDocumentPosition)return i.compareDocumentPosition(j);if(i==j)return 0;if(this.type==1&&h.type==1){if(i.contains){if(i.contains(j))return 16+4;if(j.contains(i))return 8+2;}if('sourceIndex' in i)return i.sourceIndex<0||j.sourceIndex<0?1:i.sourceIndex<j.sourceIndex?4:2;}var k=this.getAddress(),l=h.getAddress(),m=Math.min(k.length,l.length);for(var n=0;n<=m-1;n++){if(k[n]!=l[n]){if(n<m)return k[n]<l[n]?4:2;break;}}return k.length<l.length?16+4:8+2;},getAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return new d.node(j);j=j.parentNode;}return null;},hasAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return true;j=j.parentNode;}return false;},move:function(h,i){h.append(this.remove(),i);},remove:function(h){var i=this.$,j=i.parentNode;if(j){if(h)for(var k;k=i.firstChild;)j.insertBefore(i.removeChild(k),i);j.removeChild(i);}return this;},replace:function(h){this.insertBefore(h);h.remove();},trim:function(){this.ltrim();this.rtrim();},ltrim:function(){var k=this;var h;while(k.getFirst&&(h=k.getFirst())){if(h.type==3){var i=e.ltrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(j-i.length);k.$.removeChild(k.$.firstChild);}}break;}},rtrim:function(){var k=this;var h;while(k.getLast&&(h=k.getLast())){if(h.type==3){var i=e.rtrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(i.length);k.$.lastChild.parentNode.removeChild(k.$.lastChild);}}break;}if(!c&&!b.opera){h=k.$.lastChild;if(h&&h.type==1&&h.nodeName.toLowerCase()=='br')h.parentNode.removeChild(h);}}});d.nodeList=function(h){this.$=h;};d.nodeList.prototype={count:function(){return this.$.length;},getItem:function(h){var i=this.$[h];return i?new d.node(i):null;}};d.element=function(h,i){if(typeof h=='string')h=(i?i.$:document).createElement(h);d.domObject.call(this,h);};var h=d.element;h.get=function(i){return i&&(i.$?i:new h(i));};h.prototype=new d.node();h.createFromHtml=function(i,j){var k=new h('div',j); | },getNext:function(h){var i=this.$,j;do{i=i.nextSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j;},getParent:function(){var h=this.$.parentNode;return h&&h.nodeType==1?new d.node(h):null;},getParents:function(h){var i=this,j=[];do j[h?'push':'unshift'](i);while(i=i.getParent())return j;},getCommonAncestor:function(h){var j=this;if(h.equals(j))return j;if(h.contains&&h.contains(j))return h;var i=j.contains?j:j.getParent();do{if(i.contains(h))return i;}while(i=i.getParent())return null;},getPosition:function(h){var i=this.$,j=h.$;if(i.compareDocumentPosition)return i.compareDocumentPosition(j);if(i==j)return 0;if(this.type==1&&h.type==1){if(i.contains){if(i.contains(j))return 16+4;if(j.contains(i))return 8+2;}if('sourceIndex' in i)return i.sourceIndex<0||j.sourceIndex<0?1:i.sourceIndex<j.sourceIndex?4:2;}var k=this.getAddress(),l=h.getAddress(),m=Math.min(k.length,l.length);for(var n=0;n<=m-1;n++){if(k[n]!=l[n]){if(n<m)return k[n]<l[n]?4:2;break;}}return k.length<l.length?16+4:8+2;},getAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return new d.node(j);j=j.parentNode;}return null;},hasAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return true;j=j.parentNode;}return false;},move:function(h,i){h.append(this.remove(),i);},remove:function(h){var i=this.$,j=i.parentNode;if(j){if(h)for(var k;k=i.firstChild;)j.insertBefore(i.removeChild(k),i);j.removeChild(i);}return this;},replace:function(h){this.insertBefore(h);h.remove();},trim:function(){this.ltrim();this.rtrim();},ltrim:function(){var k=this;var h;while(k.getFirst&&(h=k.getFirst())){if(h.type==3){var i=e.ltrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(j-i.length);k.$.removeChild(k.$.firstChild);}}break;}},rtrim:function(){var k=this;var h;while(k.getLast&&(h=k.getLast())){if(h.type==3){var i=e.rtrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(i.length);k.$.lastChild.parentNode.removeChild(k.$.lastChild);}}break;}if(!c&&!b.opera){h=k.$.lastChild;if(h&&h.type==1&&h.nodeName.toLowerCase()=='br')h.parentNode.removeChild(h);}},isReadOnly:function(){var h=this;while(h){if(h.type==1){if(h.is('body')||h.getCustomData('_cke_notReadOnly'))break;if(h.getAttribute('contentEditable')=='false')return h;else if(h.getAttribute('contentEditable')=='true')break;}h=h.getParent();}return false;}});d.nodeList=function(h){this.$=h; };d.nodeList.prototype={count:function(){return this.$.length;},getItem:function(h){var i=this.$[h];return i?new d.node(i):null;}};d.element=function(h,i){if(typeof h=='string')h=(i?i.$:document).createElement(h);d.domObject.call(this,h);};var h=d.element;h.get=function(i){return i&&(i.$?i:new h(i));};h.prototype=new d.node();h.createFromHtml=function(i,j){var k=new h('div',j);k.setHtml(i);return k.getFirst().remove();};h.setMarker=function(i,j,k,l){var m=j.getCustomData('list_marker_id')||j.setCustomData('list_marker_id',e.getNextNumber()).getCustomData('list_marker_id'),n=j.getCustomData('list_marker_names')||j.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');i[m]=j;n[k]=1;return j.setCustomData(k,l);};h.clearAllMarkers=function(i){for(var j in i)h.clearMarkers(i,i[j],true);};h.clearMarkers=function(i,j,k){var l=j.getCustomData('list_marker_names'),m=j.getCustomData('list_marker_id');for(var n in l)j.removeCustomData(n);j.removeCustomData('list_marker_names');if(k){j.removeCustomData('list_marker_id');delete i[m];}};e.extend(h.prototype,{type:1,addClass:function(i){var j=this.$.className;if(j){var k=new RegExp('(?:^|\\s)'+i+'(?:\\s|$)','');if(!k.test(j))j+=' '+i;}this.$.className=j||i;},removeClass:function(i){var j=this.getAttribute('class');if(j){var k=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','i');if(k.test(j)){j=j.replace(k,'').replace(/^\s+/,'');if(j)this.setAttribute('class',j);else this.removeAttribute('class');}}},hasClass:function(i){var j=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','');return j.test(this.getAttribute('class'));},append:function(i,j){var k=this;if(typeof i=='string')i=k.getDocument().createElement(i);if(j)k.$.insertBefore(i.$,k.$.firstChild);else k.$.appendChild(i.$);return i;},appendHtml:function(i){var k=this;if(!k.$.childNodes.length)k.setHtml(i);else{var j=new h('div',k.getDocument());j.setHtml(i);j.moveChildren(k);}},appendText:function(i){if(this.$.text!=undefined)this.$.text+=i;else this.append(new d.text(i));},appendBogus:function(){var k=this;var i=k.getLast();while(i&&i.type==3&&!e.rtrim(i.getText()))i=i.getPrevious();if(!i||!i.is||!i.is('br')){var j=b.opera?k.getDocument().createText(''):k.getDocument().createElement('br');b.gecko&&j.setAttribute('type','_moz');k.append(j);}},breakParent:function(i){var l=this;var j=new d.range(l.getDocument());j.setStartAfter(l);j.setEndAfter(i);var k=j.extractContents();j.insertNode(l.remove());k.insertAfterNode(l);},contains:c||b.webkit?function(i){var j=this.$;return i.type!=1?j.contains(i.getParent().$):j!=i.$&&j.contains(i.$); | },getParent:function(){var h=this.$.parentNode;return h&&h.nodeType==1?new d.node(h):null;},getParents:function(h){var i=this,j=[];do j[h?'push':'unshift'](i);while(i=i.getParent())return j;},getCommonAncestor:function(h){var j=this;if(h.equals(j))return j;if(h.contains&&h.contains(j))return h;var i=j.contains?j:j.getParent();do{if(i.contains(h))return i;}while(i=i.getParent())return null;},getPosition:function(h){var i=this.$,j=h.$;if(i.compareDocumentPosition)return i.compareDocumentPosition(j);if(i==j)return 0;if(this.type==1&&h.type==1){if(i.contains){if(i.contains(j))return 16+4;if(j.contains(i))return 8+2;}if('sourceIndex' in i)return i.sourceIndex<0||j.sourceIndex<0?1:i.sourceIndex<j.sourceIndex?4:2;}var k=this.getAddress(),l=h.getAddress(),m=Math.min(k.length,l.length);for(var n=0;n<=m-1;n++){if(k[n]!=l[n]){if(n<m)return k[n]<l[n]?4:2;break;}}return k.length<l.length?16+4:8+2;},getAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return new d.node(j);j=j.parentNode;}return null;},hasAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return true;j=j.parentNode;}return false;},move:function(h,i){h.append(this.remove(),i);},remove:function(h){var i=this.$,j=i.parentNode;if(j){if(h)for(var k;k=i.firstChild;)j.insertBefore(i.removeChild(k),i);j.removeChild(i);}return this;},replace:function(h){this.insertBefore(h);h.remove();},trim:function(){this.ltrim();this.rtrim();},ltrim:function(){var k=this;var h;while(k.getFirst&&(h=k.getFirst())){if(h.type==3){var i=e.ltrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(j-i.length);k.$.removeChild(k.$.firstChild);}}break;}},rtrim:function(){var k=this;var h;while(k.getLast&&(h=k.getLast())){if(h.type==3){var i=e.rtrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(i.length);k.$.lastChild.parentNode.removeChild(k.$.lastChild);}}break;}if(!c&&!b.opera){h=k.$.lastChild;if(h&&h.type==1&&h.nodeName.toLowerCase()=='br')h.parentNode.removeChild(h);}}});d.nodeList=function(h){this.$=h;};d.nodeList.prototype={count:function(){return this.$.length;},getItem:function(h){var i=this.$[h];return i?new d.node(i):null;}};d.element=function(h,i){if(typeof h=='string')h=(i?i.$:document).createElement(h);d.domObject.call(this,h);};var h=d.element;h.get=function(i){return i&&(i.$?i:new h(i));};h.prototype=new d.node();h.createFromHtml=function(i,j){var k=new h('div',j); |
a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this, | 0,f=b.length;e<f;e++)if(c.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var e=[],f=this[0],h,k={},l;if(f&&a.length){h=0;for(var q=a.length;h<q;h++){l=a[h];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;f&&f.ownerDocument&&f!==b;){for(l in k){h=k[l];if(h.jquery?h.index(f)> | a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this, |
notify : function (subject, topic, data) { | notify: function(timer) { | notify : function (subject, topic, data) { } |
dump("alldone"); } | notify : function (subject, topic, data) { } |
|
log.debug("Preparing a JSON-RPC notification object..." + method + ":" + params); | if (log.logSensitiveData) log.debug("Preparing a JSON-RPC notification object: " + method + ":" + params); else log.debug("Preparing a JSON-RPC notification object."); | this.notify = function(session, method, params, callback) { log.debug("Preparing a JSON-RPC notification object..." + method + ":" + params); var data = JSON.stringify({ "params": params, "method": method }); session.writeData(data); } |
d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/[\n\t]/g,W=/\s+/,Ea=/\r/g,Fa=/href|src|style/,Ga=/(button|input)/i,Ha=/(button|input|object|select|textarea)/i, | nth: function(a,i,m){return m[3]-0==i;}, | d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/[\n\t]/g,W=/\s+/,Ea=/\r/g,Fa=/href|src|style/,Ga=/(button|input)/i,Ha=/(button|input|object|select|textarea)/i, |
"<div>" + "<b>" + this.boreholeId + "</b>" + "<p style=\"text-align:center;\">" + "<img src=\"img/wait.gif\" style=\"padding-top:50px;\" />" + "</p>" + "</div>"; | '<div>' + '<b>' + this.boreholeId + '</b>' + '<p style="text-align:center;">' + '<img src="img/wait.gif" style="padding-top:50px;" />' + '</p>' + '</div>'; | function NvclInfoWindow(iMap, iMarker, wfsUrl) { this.Map = iMap; this.Marker = iMarker; this.tabsArray = []; // Window Tabs this.boreholeId = iMarker.title || ""; this.summaryHtml = iMarker.description || ""; this.waitHtml = "<div>" + "<b>" + this.boreholeId + "</b>" + "<p style=\"text-align:center;\">" + "<img src=\"img/wait.gif\" style=\"padding-top:50px;\" />" + "</p>" + "</div>"; this.wfsServiceUrl = wfsUrl; /** * iMarker.wfsUrl comes from GeoNetwork and represents GeoServer's service * Url. From this Url we remove pathname and return only protocol with * hostname eg.: http://server.com.au/nvcl/wfs --> http://server.com.au */ this.geoServerUrl = (function(url) { var str = url.slice( ("http://").length); return 'http://' + str.slice(0,str.indexOf("/")); })(wfsUrl);} |
this.maMosaicTrays = new Array(); this.maScalars = new Array(); this.maScalarNames = new Array(); this.maScalarNotes = new Array(); this.maScalarSelected = new Array(); | this.maMosaicTrays = []; this.maScalars = []; this.maScalarNames = []; this.maScalarNotes = []; this.maScalarSelected = []; | function NVCLMarker (boreholeId, marker, description) { // Create the Borehole object from the XML node //this.moBorehole = new Borehole(pBoreholeNode); this.moMarker = marker; this.boreholeId = boreholeId; this.msSummaryHtml = description; this.msMosaicHtml = ""; this.msPlotScalarsHtml = ""; this.msPlotsHtml = ""; // Create the various arrays for the borehole this.maMosaicTrays = new Array(); this.maScalars = new Array(); this.maScalarNames = new Array(); this.maScalarNotes = new Array(); this.maScalarSelected = new Array(); this.mnStartDepth = 0; this.mnEndDepth = 0; this.mnSamplingInterval = 1; this.msPlotImageSrc = ""; // Create updateCSWRecords GMarker object for each station using the location information for the same. /*var longitude = this.moBorehole.moLocation.msLongitude; var latitude = this.moBorehole.moLocation.msLatitude; var oPoint = new GPoint(parseFloat(longitude), parseFloat(latitude)); var oMarkerIcon = new GIcon(goBaseIcon, psIcon); var oMarker = new GMarker(oPoint, oMarkerIcon); this.moMarker = oMarker; // Add updateCSWRecords listener for updateCSWRecords click event on this marker GEvent.addListener(oMarker, "click", this.getMarkerClickedFn());*/} |
if (oNVCLMarker.maScalars.length == 0) { | if (oNVCLMarker.maScalars.length === 0) { | function NVCLMarker_createPlotScalarsTabHtml() { var oNVCLMarker = this; //var oBorehole = this.moBorehole; var plotScalarHtml = ""; if (oNVCLMarker.maScalars.length == 0) { // No scalars for this borehole plotScalarHtml += '<div style="color:red">No scalars for this borehole</div>'; } else { var nListSize = 20; // If the number of scalars is less than nListSize if (oNVCLMarker.maScalars.length < nListSize) { nListSize = oNVCLMarker.maScalars.length; } // Add the Available Scalars List Box plotScalarHtml += '<table width="100%" style="font-size:11px">'; plotScalarHtml += '<tr><td width="45%" align="center" bgcolor="#E0EEEE" colspan="2">'; plotScalarHtml += '<div style="font-size:12px; height:20px; background-color:#3e91da; color:#ffffff; text-align:left"> Available Scalars</div>'; plotScalarHtml += '<div id="div_available_scalars">'; plotScalarHtml += '<select name="avaiable_scalars" id="'+oNVCLMarker.msAvailableListId+'" style="width:100%" multiple="true" size="'+nListSize+'">'; for (var i=0; i<oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; if (oNVCLMarker.maScalarSelected[scalarId] == false) { plotScalarHtml += '<option value="'+scalarId; plotScalarHtml += '" title="'+oNVCLMarker.maScalarNotes[scalarId]+'">'; plotScalarHtml += oNVCLMarker.maScalarNames[scalarId]; } } plotScalarHtml += '</select>'; plotScalarHtml += '</div></td>'; // Add the "Add" and "Remove" buttons plotScalarHtml += '<td width="10%" align="center">'; plotScalarHtml += '<div id="div_add_remove_btns">'; plotScalarHtml += '<button id="'+oNVCLMarker.msAddBtnId+'" style="width:70px" > Add </button><br/><br/>'; plotScalarHtml += '<button id="'+oNVCLMarker.msRemoveBtnId+'" style="width:70px"> Remove </button>'; plotScalarHtml += '</div></td>'; // Add the selected Scalars list box plotScalarHtml += '<td width="45%" align="center" bgcolor="#E0EEEE" colspan="2">'; plotScalarHtml += '<div style="font-size:12px; height:20px; background-color:#3e91da; color:#ffffff; text-align:left"> Selected Scalars</div>'; plotScalarHtml += '<div id="div_selected_scalars">'; plotScalarHtml += '<select name="selected_scalars" id="'+oNVCLMarker.msSelectedListId+'" style="width:100%" multiple="true" size="'+nListSize+'">'; for (var i=0; i<oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; if (oNVCLMarker.maScalarSelected[scalarId] == true) { plotScalarHtml += '<option value="'+scalarId+'">' plotScalarHtml += '" title="'+oNVCLMarker.maScalarNotes[scalarId]+'">'; plotScalarHtml += oNVCLMarker.maScalarNames[scalarId]; } } plotScalarHtml += '</select>'; plotScalarHtml += '</div></td></tr>'; // Start depth plotScalarHtml += '<tr><td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="60%" style="color:#000000" align="right">Start Depth(m)</td>'; plotScalarHtml += '<td rowspan="2" width="20%"><input id="start_depth" type="text" name="start_depth" value="'+oNVCLMarker.mnStartDepth+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.start_depth.value++;"></td>'; plotScalarHtml += '</tr>'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.start_depth.value--;" ></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // End depth plotScalarHtml += '<td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="55" style="color:#000000" align="right">End Depth(m)</td>'; plotScalarHtml += '<td rowspan="2" width="25"><input id="end_depth" type="text" name="end_depth" value="'+oNVCLMarker.mnEndDepth+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.end_depth.value++;"></td>'; plotScalarHtml += '</tr><tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.end_depth.value--;"></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // Empty column for alignment plotScalarHtml += '<td align="left"><br/>'; plotScalarHtml += '</td>'; // Sampling interval plotScalarHtml += '<td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="55" style="color:#000000" align="right">Interval(m) </td>'; plotScalarHtml += '<td rowspan="2" width="25"><input id="sample_int" type="text" name="sample_int" value="'+oNVCLMarker.mnSamplingInterval+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.sample_int.value++;"></td>'; plotScalarHtml += '</tr><tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.sample_int.value--;"></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // Empty column for alignment plotScalarHtml += '<td align="left">'; plotScalarHtml += '</td></tr>'; // Plot button plotScalarHtml += '<tr>'; plotScalarHtml += '<td colspan=2 align="center" style="color:#000000" valign="top">'; plotScalarHtml += '(Please use 0 and 0 for the entire depth)'; plotScalarHtml += '</td>'; plotScalarHtml += '<td colspan=3 align="right">'; plotScalarHtml += '<div id="div_plot_btn" style="vertical-align:middle"><br/>'; plotScalarHtml += '<button id="'+oNVCLMarker.msPlotBtnId+'" style="width:80px"> Plot </button><br/>'; plotScalarHtml += '</div></td></tr>'; // Messages row plotScalarHtml += '<tr>'; plotScalarHtml += '<td colspan=5 align="center" valign="top">'; plotScalarHtml += '<div id="div_messages" style="color:blue; font-weight:bold">'; plotScalarHtml += 'Please add scalars to the "Select Scalars" table and then click on "Plot"'; plotScalarHtml += '</div></td></tr>'; plotScalarHtml += '</table>'; } return plotScalarHtml;} |
if (oNVCLMarker.maScalarSelected[scalarId] == false) { | if (oNVCLMarker.maScalarSelected[scalarId] === false) { | function NVCLMarker_createPlotScalarsTabHtml() { var oNVCLMarker = this; //var oBorehole = this.moBorehole; var plotScalarHtml = ""; if (oNVCLMarker.maScalars.length == 0) { // No scalars for this borehole plotScalarHtml += '<div style="color:red">No scalars for this borehole</div>'; } else { var nListSize = 20; // If the number of scalars is less than nListSize if (oNVCLMarker.maScalars.length < nListSize) { nListSize = oNVCLMarker.maScalars.length; } // Add the Available Scalars List Box plotScalarHtml += '<table width="100%" style="font-size:11px">'; plotScalarHtml += '<tr><td width="45%" align="center" bgcolor="#E0EEEE" colspan="2">'; plotScalarHtml += '<div style="font-size:12px; height:20px; background-color:#3e91da; color:#ffffff; text-align:left"> Available Scalars</div>'; plotScalarHtml += '<div id="div_available_scalars">'; plotScalarHtml += '<select name="avaiable_scalars" id="'+oNVCLMarker.msAvailableListId+'" style="width:100%" multiple="true" size="'+nListSize+'">'; for (var i=0; i<oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; if (oNVCLMarker.maScalarSelected[scalarId] == false) { plotScalarHtml += '<option value="'+scalarId; plotScalarHtml += '" title="'+oNVCLMarker.maScalarNotes[scalarId]+'">'; plotScalarHtml += oNVCLMarker.maScalarNames[scalarId]; } } plotScalarHtml += '</select>'; plotScalarHtml += '</div></td>'; // Add the "Add" and "Remove" buttons plotScalarHtml += '<td width="10%" align="center">'; plotScalarHtml += '<div id="div_add_remove_btns">'; plotScalarHtml += '<button id="'+oNVCLMarker.msAddBtnId+'" style="width:70px" > Add </button><br/><br/>'; plotScalarHtml += '<button id="'+oNVCLMarker.msRemoveBtnId+'" style="width:70px"> Remove </button>'; plotScalarHtml += '</div></td>'; // Add the selected Scalars list box plotScalarHtml += '<td width="45%" align="center" bgcolor="#E0EEEE" colspan="2">'; plotScalarHtml += '<div style="font-size:12px; height:20px; background-color:#3e91da; color:#ffffff; text-align:left"> Selected Scalars</div>'; plotScalarHtml += '<div id="div_selected_scalars">'; plotScalarHtml += '<select name="selected_scalars" id="'+oNVCLMarker.msSelectedListId+'" style="width:100%" multiple="true" size="'+nListSize+'">'; for (var i=0; i<oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; if (oNVCLMarker.maScalarSelected[scalarId] == true) { plotScalarHtml += '<option value="'+scalarId+'">' plotScalarHtml += '" title="'+oNVCLMarker.maScalarNotes[scalarId]+'">'; plotScalarHtml += oNVCLMarker.maScalarNames[scalarId]; } } plotScalarHtml += '</select>'; plotScalarHtml += '</div></td></tr>'; // Start depth plotScalarHtml += '<tr><td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="60%" style="color:#000000" align="right">Start Depth(m)</td>'; plotScalarHtml += '<td rowspan="2" width="20%"><input id="start_depth" type="text" name="start_depth" value="'+oNVCLMarker.mnStartDepth+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.start_depth.value++;"></td>'; plotScalarHtml += '</tr>'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.start_depth.value--;" ></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // End depth plotScalarHtml += '<td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="55" style="color:#000000" align="right">End Depth(m)</td>'; plotScalarHtml += '<td rowspan="2" width="25"><input id="end_depth" type="text" name="end_depth" value="'+oNVCLMarker.mnEndDepth+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.end_depth.value++;"></td>'; plotScalarHtml += '</tr><tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.end_depth.value--;"></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // Empty column for alignment plotScalarHtml += '<td align="left"><br/>'; plotScalarHtml += '</td>'; // Sampling interval plotScalarHtml += '<td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="55" style="color:#000000" align="right">Interval(m) </td>'; plotScalarHtml += '<td rowspan="2" width="25"><input id="sample_int" type="text" name="sample_int" value="'+oNVCLMarker.mnSamplingInterval+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.sample_int.value++;"></td>'; plotScalarHtml += '</tr><tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.sample_int.value--;"></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // Empty column for alignment plotScalarHtml += '<td align="left">'; plotScalarHtml += '</td></tr>'; // Plot button plotScalarHtml += '<tr>'; plotScalarHtml += '<td colspan=2 align="center" style="color:#000000" valign="top">'; plotScalarHtml += '(Please use 0 and 0 for the entire depth)'; plotScalarHtml += '</td>'; plotScalarHtml += '<td colspan=3 align="right">'; plotScalarHtml += '<div id="div_plot_btn" style="vertical-align:middle"><br/>'; plotScalarHtml += '<button id="'+oNVCLMarker.msPlotBtnId+'" style="width:80px"> Plot </button><br/>'; plotScalarHtml += '</div></td></tr>'; // Messages row plotScalarHtml += '<tr>'; plotScalarHtml += '<td colspan=5 align="center" valign="top">'; plotScalarHtml += '<div id="div_messages" style="color:blue; font-weight:bold">'; plotScalarHtml += 'Please add scalars to the "Select Scalars" table and then click on "Plot"'; plotScalarHtml += '</div></td></tr>'; plotScalarHtml += '</table>'; } return plotScalarHtml;} |
if (oNVCLMarker.maScalarSelected[scalarId] == true) { plotScalarHtml += '<option value="'+scalarId+'">' | if (oNVCLMarker.maScalarSelected[scalarId] === true) { plotScalarHtml += '<option value="'+scalarId+'">'; | function NVCLMarker_createPlotScalarsTabHtml() { var oNVCLMarker = this; //var oBorehole = this.moBorehole; var plotScalarHtml = ""; if (oNVCLMarker.maScalars.length == 0) { // No scalars for this borehole plotScalarHtml += '<div style="color:red">No scalars for this borehole</div>'; } else { var nListSize = 20; // If the number of scalars is less than nListSize if (oNVCLMarker.maScalars.length < nListSize) { nListSize = oNVCLMarker.maScalars.length; } // Add the Available Scalars List Box plotScalarHtml += '<table width="100%" style="font-size:11px">'; plotScalarHtml += '<tr><td width="45%" align="center" bgcolor="#E0EEEE" colspan="2">'; plotScalarHtml += '<div style="font-size:12px; height:20px; background-color:#3e91da; color:#ffffff; text-align:left"> Available Scalars</div>'; plotScalarHtml += '<div id="div_available_scalars">'; plotScalarHtml += '<select name="avaiable_scalars" id="'+oNVCLMarker.msAvailableListId+'" style="width:100%" multiple="true" size="'+nListSize+'">'; for (var i=0; i<oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; if (oNVCLMarker.maScalarSelected[scalarId] == false) { plotScalarHtml += '<option value="'+scalarId; plotScalarHtml += '" title="'+oNVCLMarker.maScalarNotes[scalarId]+'">'; plotScalarHtml += oNVCLMarker.maScalarNames[scalarId]; } } plotScalarHtml += '</select>'; plotScalarHtml += '</div></td>'; // Add the "Add" and "Remove" buttons plotScalarHtml += '<td width="10%" align="center">'; plotScalarHtml += '<div id="div_add_remove_btns">'; plotScalarHtml += '<button id="'+oNVCLMarker.msAddBtnId+'" style="width:70px" > Add </button><br/><br/>'; plotScalarHtml += '<button id="'+oNVCLMarker.msRemoveBtnId+'" style="width:70px"> Remove </button>'; plotScalarHtml += '</div></td>'; // Add the selected Scalars list box plotScalarHtml += '<td width="45%" align="center" bgcolor="#E0EEEE" colspan="2">'; plotScalarHtml += '<div style="font-size:12px; height:20px; background-color:#3e91da; color:#ffffff; text-align:left"> Selected Scalars</div>'; plotScalarHtml += '<div id="div_selected_scalars">'; plotScalarHtml += '<select name="selected_scalars" id="'+oNVCLMarker.msSelectedListId+'" style="width:100%" multiple="true" size="'+nListSize+'">'; for (var i=0; i<oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; if (oNVCLMarker.maScalarSelected[scalarId] == true) { plotScalarHtml += '<option value="'+scalarId+'">' plotScalarHtml += '" title="'+oNVCLMarker.maScalarNotes[scalarId]+'">'; plotScalarHtml += oNVCLMarker.maScalarNames[scalarId]; } } plotScalarHtml += '</select>'; plotScalarHtml += '</div></td></tr>'; // Start depth plotScalarHtml += '<tr><td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="60%" style="color:#000000" align="right">Start Depth(m)</td>'; plotScalarHtml += '<td rowspan="2" width="20%"><input id="start_depth" type="text" name="start_depth" value="'+oNVCLMarker.mnStartDepth+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.start_depth.value++;"></td>'; plotScalarHtml += '</tr>'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.start_depth.value--;" ></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // End depth plotScalarHtml += '<td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="55" style="color:#000000" align="right">End Depth(m)</td>'; plotScalarHtml += '<td rowspan="2" width="25"><input id="end_depth" type="text" name="end_depth" value="'+oNVCLMarker.mnEndDepth+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.end_depth.value++;"></td>'; plotScalarHtml += '</tr><tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.end_depth.value--;"></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // Empty column for alignment plotScalarHtml += '<td align="left"><br/>'; plotScalarHtml += '</td>'; // Sampling interval plotScalarHtml += '<td align="left" width="22%"><br/>'; plotScalarHtml += '<form><table cellpadding="1" cellspacing="0" border="0" style="width:100%">'; plotScalarHtml += '<tr>'; plotScalarHtml += '<td rowspan="2" width="55" style="color:#000000" align="right">Interval(m) </td>'; plotScalarHtml += '<td rowspan="2" width="25"><input id="sample_int" type="text" name="sample_int" value="'+oNVCLMarker.mnSamplingInterval+'" style="width:80%;height:14px;text-align:right" /></td>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" + " onclick="this.form.sample_int.value++;"></td>'; plotScalarHtml += '</tr><tr>'; plotScalarHtml += '<td width="20%"><input class="spinner_button" type=button value=" - " onclick="this.form.sample_int.value--;"></td>'; plotScalarHtml += '</tr></table></form>'; plotScalarHtml += '</td>'; // Empty column for alignment plotScalarHtml += '<td align="left">'; plotScalarHtml += '</td></tr>'; // Plot button plotScalarHtml += '<tr>'; plotScalarHtml += '<td colspan=2 align="center" style="color:#000000" valign="top">'; plotScalarHtml += '(Please use 0 and 0 for the entire depth)'; plotScalarHtml += '</td>'; plotScalarHtml += '<td colspan=3 align="right">'; plotScalarHtml += '<div id="div_plot_btn" style="vertical-align:middle"><br/>'; plotScalarHtml += '<button id="'+oNVCLMarker.msPlotBtnId+'" style="width:80px"> Plot </button><br/>'; plotScalarHtml += '</div></td></tr>'; // Messages row plotScalarHtml += '<tr>'; plotScalarHtml += '<td colspan=5 align="center" valign="top">'; plotScalarHtml += '<div id="div_messages" style="color:blue; font-weight:bold">'; plotScalarHtml += 'Please add scalars to the "Select Scalars" table and then click on "Plot"'; plotScalarHtml += '</div></td></tr>'; plotScalarHtml += '</table>'; } return plotScalarHtml;} |
if (this.msPlotImageSrc == "") { plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">' | if (this.msPlotImageSrc === "") { plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">'; | function NVCLMarker_createPlotsTabHtml() { var oNVCLMarker = this; //var oBorehole = this.moBorehole; var plotsHtml = ""; if (this.msPlotImageSrc == "") { plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">' plotsHtml += '<a id="a_new_window" href="' + gsNoSclarasPlottedImg + '" style="display: none"> Open in a new window </a><br/>'; plotsHtml += '</div>'; // Initially we display updateCSWRecords blank image // It is important that the blank text be displayed as an image and not as text. // Because, the GInfoWindow cannot be resized at runtime, // once updateCSWRecords plot is actually download, it will simple overflow the popup window. // So we kind of set the initial size of the window to updateCSWRecords large one with this dummy image. plotsHtml += '<div id="div_plotted_scalars" style="height:400px; width:100%; overflow: auto; text-align:center">'; plotsHtml += '<img id="plot_image" src="' + gsNoSclarasPlottedImg + '">'; plotsHtml += '</div>'; } else { plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">' plotsHtml += '<a id="a_new_window" href="' + this.msPlotImageSrc + '" target="_blank"> Open in a new window </a><br/>'; plotsHtml += '</div>'; plotsHtml += '<div id="div_plotted_scalars" style="height:400px; width:100%; overflow: auto; text-align:center">'; plotsHtml += '<img id="plot_image" src="' + this.msPlotImageSrc + '">'; plotsHtml += '</div>'; } return plotsHtml;} |
plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">' | plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">'; | function NVCLMarker_createPlotsTabHtml() { var oNVCLMarker = this; //var oBorehole = this.moBorehole; var plotsHtml = ""; if (this.msPlotImageSrc == "") { plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">' plotsHtml += '<a id="a_new_window" href="' + gsNoSclarasPlottedImg + '" style="display: none"> Open in a new window </a><br/>'; plotsHtml += '</div>'; // Initially we display updateCSWRecords blank image // It is important that the blank text be displayed as an image and not as text. // Because, the GInfoWindow cannot be resized at runtime, // once updateCSWRecords plot is actually download, it will simple overflow the popup window. // So we kind of set the initial size of the window to updateCSWRecords large one with this dummy image. plotsHtml += '<div id="div_plotted_scalars" style="height:400px; width:100%; overflow: auto; text-align:center">'; plotsHtml += '<img id="plot_image" src="' + gsNoSclarasPlottedImg + '">'; plotsHtml += '</div>'; } else { plotsHtml += '<div id="div_new_window" style="height:20px; width:100%; text-align:center">' plotsHtml += '<a id="a_new_window" href="' + this.msPlotImageSrc + '" target="_blank"> Open in a new window </a><br/>'; plotsHtml += '</div>'; plotsHtml += '<div id="div_plotted_scalars" style="height:400px; width:100%; overflow: auto; text-align:center">'; plotsHtml += '<img id="plot_image" src="' + this.msPlotImageSrc + '">'; plotsHtml += '</div>'; } return plotsHtml;} |
if (this.maScalars.length == 0) { | if (this.maScalars.length === 0) { | function NVCLMarker_displayInfoWindow() { var oNVCLMarker = this; //var oBorehole = this.moBorehole; var oMarker = this.moMarker; /** * The popup for updateCSWRecords marker contains 4 tabs - * Summary - contains the basic information about the borehole like id, name etc * Mosaic - has the mosaic images for the borehole * Plot Scalars - allows users to choose from the list of scalars available for the borehole * and plot them. * Plots - The resultant plots from the tab 3 operation. */ var label1 = "Summary"; var label2 = "Mosaic"; var label3 = "Plot Scalars"; var label4 = "Plots"; // Get the summary tab html //var summaryHtml = this.msSummaryHtml; // Get the mosaic images for the borehole var mosaicHtml = this.msMosaicHtml; //oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label1, summaryHtml),// new GInfoWindowTab(label2, mosaicHtml)]); oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label2, mosaicHtml)]); // Create the Plot Scalars tab html var plotScalarsHtml = this.createPlotScalarsTabHtml(); if (this.maScalars.length == 0) { // If the borehole does not have any scalars, no need to make the 4th tab // Open the popup window for the marker with the tabs Summary, Mosaic and Plot Scalars oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label1, this.msSummaryHtml), new GInfoWindowTab(label2, mosaicHtml), new GInfoWindowTab(label3, plotScalarsHtml)]); } else { // Create the 3rd tab only if there are any scalars for this borehole var plotsHtml = this.createPlotsTabHtml(); // Open the popup window for the marker with the tabs Summary, Plot Scalars and Plots oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label1, this.msSummaryHtml), new GInfoWindowTab(label2, mosaicHtml), new GInfoWindowTab(label3, plotScalarsHtml), new GInfoWindowTab(label4, plotsHtml)]); setTimeout( function(){oNVCLMarker.updateInfoWindow()}, 500); }} |
setTimeout( function(){oNVCLMarker.updateInfoWindow()}, 500); | setTimeout( function(){oNVCLMarker.updateInfoWindow();}, 500); | function NVCLMarker_displayInfoWindow() { var oNVCLMarker = this; //var oBorehole = this.moBorehole; var oMarker = this.moMarker; /** * The popup for updateCSWRecords marker contains 4 tabs - * Summary - contains the basic information about the borehole like id, name etc * Mosaic - has the mosaic images for the borehole * Plot Scalars - allows users to choose from the list of scalars available for the borehole * and plot them. * Plots - The resultant plots from the tab 3 operation. */ var label1 = "Summary"; var label2 = "Mosaic"; var label3 = "Plot Scalars"; var label4 = "Plots"; // Get the summary tab html //var summaryHtml = this.msSummaryHtml; // Get the mosaic images for the borehole var mosaicHtml = this.msMosaicHtml; //oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label1, summaryHtml),// new GInfoWindowTab(label2, mosaicHtml)]); oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label2, mosaicHtml)]); // Create the Plot Scalars tab html var plotScalarsHtml = this.createPlotScalarsTabHtml(); if (this.maScalars.length == 0) { // If the borehole does not have any scalars, no need to make the 4th tab // Open the popup window for the marker with the tabs Summary, Mosaic and Plot Scalars oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label1, this.msSummaryHtml), new GInfoWindowTab(label2, mosaicHtml), new GInfoWindowTab(label3, plotScalarsHtml)]); } else { // Create the 3rd tab only if there are any scalars for this borehole var plotsHtml = this.createPlotsTabHtml(); // Open the popup window for the marker with the tabs Summary, Plot Scalars and Plots oMarker.openInfoWindowTabsHtml([new GInfoWindowTab(label1, this.msSummaryHtml), new GInfoWindowTab(label2, mosaicHtml), new GInfoWindowTab(label3, plotScalarsHtml), new GInfoWindowTab(label4, plotsHtml)]); setTimeout( function(){oNVCLMarker.updateInfoWindow()}, 500); }} |
} | }; | function NVCLMarker_getMarkerClickedFn() { var nvclMarker = this; return function() { nvclMarker.markerClicked(); }} |
} | }; | function NVCLMarker_getMoveScalarsInLists(pFromListBox, pToListBox, pIsSelecting) { var nvclMarker = this; var bIsSelecting = pIsSelecting; var sFromListBox = pFromListBox; var sToListBox = pToListBox; return function() { nvclMarker.moveScalarsInLists(sFromListBox, sToListBox, bIsSelecting); }} |
if (g_IsIE) | if (g_IsIE) { | function NVCLMarker_getScalarNote(marker, scalarId, scalarName) { var vocabsQuery = ProxyURL + VOCAB_SERVICE_URL + "?repository=nvcl-scalars%26label=" + scalarName.replace(/%/, "%25"); GDownloadUrl(vocabsQuery, function(pData, pResponseCode) { if(pResponseCode == 200) { var XmlDoc = GXml.parse(pData); if (g_IsIE) XmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } // get the concept tag (inside is the additional info) var aConcepts = rootNode.getElementsByTagName("skos:Concept"); if (aConcepts.length == 0) { return; } // there is only one concept, so we'll use the 0th item in the array! // the full name of the info tag is "skos:scopeNote" scopeNote = GXml.value(aConcepts[0].selectSingleNode("*[local-name() = 'scopeNote']")); marker.maScalarNotes[scalarId] = scopeNote; }else if(responseCode == -1) { alert("Data request timed out. Please try later."); } else if ((responseCode >= 400) & (responseCode <= 500)){ alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode <= 506)){ alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode); }else { alert('Remote server returned error code: ' + responseCode); } });} |
if (aConcepts.length == 0) { | if (aConcepts.length === 0) { | function NVCLMarker_getScalarNote(marker, scalarId, scalarName) { var vocabsQuery = ProxyURL + VOCAB_SERVICE_URL + "?repository=nvcl-scalars%26label=" + scalarName.replace(/%/, "%25"); GDownloadUrl(vocabsQuery, function(pData, pResponseCode) { if(pResponseCode == 200) { var XmlDoc = GXml.parse(pData); if (g_IsIE) XmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } // get the concept tag (inside is the additional info) var aConcepts = rootNode.getElementsByTagName("skos:Concept"); if (aConcepts.length == 0) { return; } // there is only one concept, so we'll use the 0th item in the array! // the full name of the info tag is "skos:scopeNote" scopeNote = GXml.value(aConcepts[0].selectSingleNode("*[local-name() = 'scopeNote']")); marker.maScalarNotes[scalarId] = scopeNote; }else if(responseCode == -1) { alert("Data request timed out. Please try later."); } else if ((responseCode >= 400) & (responseCode <= 500)){ alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode <= 506)){ alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode); }else { alert('Remote server returned error code: ' + responseCode); } });} |
if (this.maScalars.length == 0) { | if (this.maScalars.length === 0) { | function NVCLMarker_markerClicked(){ var oNVCLMarker = this; //show loading status oNVCLMarker.moMarker.openInfoWindowHtml('<div > <img src="js/external/extjs/resources/images/default/grid/loading.gif"> Loading... </div>'); //var oBorehole = this.moBorehole; // msId is of the format nvcl_core.4 // We need to strip the nvcl_core: part to get the actual coreid // accepted by all nvcl web services var sCoreId = this.boreholeId.substring(10);//oBorehole.msId.substring(10); // Web service to get the scalars belonging to updateCSWRecords given borehole var scalars_proxy = ProxyURL + NVCL_WEB_SERVICE_IP + "/scalars.asmx/get"; scalars_proxy += "?coreid=" + sCoreId; if (this.maScalars.length == 0) { GDownloadUrl(scalars_proxy, function(pData, pResponseCode) { if(pResponseCode == 200) { // Call the parse function to read the XML data from the file. var xmlDoc = GXml.parse(pData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var aScalars = rootNode.getElementsByTagName("Scalars"); var scalar_index = 0; for(var i=0; i < aScalars.length; i++) { var nvclStation = aScalars[i]; // Extract Name and ID for all Scalars var sScalarId = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Scalar_ID']")); var sScalarName = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Name']")); if (sScalarId != "" && sScalarName != "") { oNVCLMarker.maScalars[scalar_index] = sScalarId; oNVCLMarker.maScalarNames[sScalarId] = sScalarName; oNVCLMarker.maScalarSelected[sScalarId] = false; scalar_index++; } } // get vocab for (var i=0; i < oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; var scalarName = oNVCLMarker.maScalarNames[scalarId]; // NOTE oNVCLMarker has to be passed as updateCSWRecords parameter to this function // if it is called as "oNVCLMarker.getScalarNote" it will produce errors! NVCLMarker_getScalarNote(oNVCLMarker, scalarId, scalarName); } oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }else if(responseCode == -1) { selectedRecord.responseTooltip.addResponse(serviceUrl, "Data request timed out. Please try again later."); } else if ((responseCode >= 400) & (responseCode < 500)){ alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { alert('Remote server returned error code: ' + responseCode); } }); } else { oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }} |
if (g_IsIE) | if (g_IsIE) { | function NVCLMarker_markerClicked(){ var oNVCLMarker = this; //show loading status oNVCLMarker.moMarker.openInfoWindowHtml('<div > <img src="js/external/extjs/resources/images/default/grid/loading.gif"> Loading... </div>'); //var oBorehole = this.moBorehole; // msId is of the format nvcl_core.4 // We need to strip the nvcl_core: part to get the actual coreid // accepted by all nvcl web services var sCoreId = this.boreholeId.substring(10);//oBorehole.msId.substring(10); // Web service to get the scalars belonging to updateCSWRecords given borehole var scalars_proxy = ProxyURL + NVCL_WEB_SERVICE_IP + "/scalars.asmx/get"; scalars_proxy += "?coreid=" + sCoreId; if (this.maScalars.length == 0) { GDownloadUrl(scalars_proxy, function(pData, pResponseCode) { if(pResponseCode == 200) { // Call the parse function to read the XML data from the file. var xmlDoc = GXml.parse(pData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var aScalars = rootNode.getElementsByTagName("Scalars"); var scalar_index = 0; for(var i=0; i < aScalars.length; i++) { var nvclStation = aScalars[i]; // Extract Name and ID for all Scalars var sScalarId = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Scalar_ID']")); var sScalarName = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Name']")); if (sScalarId != "" && sScalarName != "") { oNVCLMarker.maScalars[scalar_index] = sScalarId; oNVCLMarker.maScalarNames[sScalarId] = sScalarName; oNVCLMarker.maScalarSelected[sScalarId] = false; scalar_index++; } } // get vocab for (var i=0; i < oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; var scalarName = oNVCLMarker.maScalarNames[scalarId]; // NOTE oNVCLMarker has to be passed as updateCSWRecords parameter to this function // if it is called as "oNVCLMarker.getScalarNote" it will produce errors! NVCLMarker_getScalarNote(oNVCLMarker, scalarId, scalarName); } oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }else if(responseCode == -1) { selectedRecord.responseTooltip.addResponse(serviceUrl, "Data request timed out. Please try again later."); } else if ((responseCode >= 400) & (responseCode < 500)){ alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { alert('Remote server returned error code: ' + responseCode); } }); } else { oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }} |
if (sScalarId != "" && sScalarName != "") { | if (sScalarId !== "" && sScalarName !== "") { | function NVCLMarker_markerClicked(){ var oNVCLMarker = this; //show loading status oNVCLMarker.moMarker.openInfoWindowHtml('<div > <img src="js/external/extjs/resources/images/default/grid/loading.gif"> Loading... </div>'); //var oBorehole = this.moBorehole; // msId is of the format nvcl_core.4 // We need to strip the nvcl_core: part to get the actual coreid // accepted by all nvcl web services var sCoreId = this.boreholeId.substring(10);//oBorehole.msId.substring(10); // Web service to get the scalars belonging to updateCSWRecords given borehole var scalars_proxy = ProxyURL + NVCL_WEB_SERVICE_IP + "/scalars.asmx/get"; scalars_proxy += "?coreid=" + sCoreId; if (this.maScalars.length == 0) { GDownloadUrl(scalars_proxy, function(pData, pResponseCode) { if(pResponseCode == 200) { // Call the parse function to read the XML data from the file. var xmlDoc = GXml.parse(pData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var aScalars = rootNode.getElementsByTagName("Scalars"); var scalar_index = 0; for(var i=0; i < aScalars.length; i++) { var nvclStation = aScalars[i]; // Extract Name and ID for all Scalars var sScalarId = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Scalar_ID']")); var sScalarName = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Name']")); if (sScalarId != "" && sScalarName != "") { oNVCLMarker.maScalars[scalar_index] = sScalarId; oNVCLMarker.maScalarNames[sScalarId] = sScalarName; oNVCLMarker.maScalarSelected[sScalarId] = false; scalar_index++; } } // get vocab for (var i=0; i < oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; var scalarName = oNVCLMarker.maScalarNames[scalarId]; // NOTE oNVCLMarker has to be passed as updateCSWRecords parameter to this function // if it is called as "oNVCLMarker.getScalarNote" it will produce errors! NVCLMarker_getScalarNote(oNVCLMarker, scalarId, scalarName); } oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }else if(responseCode == -1) { selectedRecord.responseTooltip.addResponse(serviceUrl, "Data request timed out. Please try again later."); } else if ((responseCode >= 400) & (responseCode < 500)){ alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { alert('Remote server returned error code: ' + responseCode); } }); } else { oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }} |
if ((oFromList != null) && (oToList != null)) { | if ((oFromList !== null) && (oToList !== null)) { | function NVCLMarker_moveScalarsInLists(pFromListBox, pToListBox, pIsSelecting) { var oFromList = document.getElementById(pFromListBox); var oToList = document.getElementById(pToListBox); if ((oFromList != null) && (oToList != null)) { // No items in the list if(oFromList.length < 1) return; // When no Item is selected the index will be -1 if(oFromList.options.selectedIndex == -1) return; while ( oFromList.options.selectedIndex >= 0 ) { // Create updateCSWRecords new instance of ListItem var oListItem = new Option(); oListItem.text = oFromList.options[oFromList.options.selectedIndex].text; oListItem.value = oFromList.options[oFromList.options.selectedIndex].value; oListItem.title = oFromList.options[oFromList.options.selectedIndex].title; //Append the item in Target Listbox oToList.options[oToList.length] = oListItem; //Remove the item from Source Listbox oFromList.remove(oFromList.options.selectedIndex); this.maScalarSelected[oListItem.value] = pIsSelecting; } // Sort the target list // Prepare variables var arrLookup = new Array(); // To quickly find the index of the text var arrToList = new Array(); // To use JavaScripts builtin sort var newToList = oToList.cloneNode(false); // Only clone the parent // Prepare the sorting arrays for( var i = 0; i < oToList.length; i++) { arrLookup[oToList.options.item(i).value] = i; arrToList[i] = oToList.options.item(i).value; } arrToList.sort(); // <-- Where the action really occurs // Decrement to keep the index from being affected for( var i = arrToList.length - 1; i >= 0; i-- ) { // Use insertBefore instead of appendChild because of decrementing. newToList.insertBefore(oToList.options.item(arrLookup[arrToList[i]]).cloneNode(true), newToList.options.item(0)); } // Swap the unsorted node with the sorted one. oToList.parentNode.replaceChild(newToList,oToList); }} |
if(oFromList.length < 1) | if(oFromList.length < 1) { | function NVCLMarker_moveScalarsInLists(pFromListBox, pToListBox, pIsSelecting) { var oFromList = document.getElementById(pFromListBox); var oToList = document.getElementById(pToListBox); if ((oFromList != null) && (oToList != null)) { // No items in the list if(oFromList.length < 1) return; // When no Item is selected the index will be -1 if(oFromList.options.selectedIndex == -1) return; while ( oFromList.options.selectedIndex >= 0 ) { // Create updateCSWRecords new instance of ListItem var oListItem = new Option(); oListItem.text = oFromList.options[oFromList.options.selectedIndex].text; oListItem.value = oFromList.options[oFromList.options.selectedIndex].value; oListItem.title = oFromList.options[oFromList.options.selectedIndex].title; //Append the item in Target Listbox oToList.options[oToList.length] = oListItem; //Remove the item from Source Listbox oFromList.remove(oFromList.options.selectedIndex); this.maScalarSelected[oListItem.value] = pIsSelecting; } // Sort the target list // Prepare variables var arrLookup = new Array(); // To quickly find the index of the text var arrToList = new Array(); // To use JavaScripts builtin sort var newToList = oToList.cloneNode(false); // Only clone the parent // Prepare the sorting arrays for( var i = 0; i < oToList.length; i++) { arrLookup[oToList.options.item(i).value] = i; arrToList[i] = oToList.options.item(i).value; } arrToList.sort(); // <-- Where the action really occurs // Decrement to keep the index from being affected for( var i = arrToList.length - 1; i >= 0; i-- ) { // Use insertBefore instead of appendChild because of decrementing. newToList.insertBefore(oToList.options.item(arrLookup[arrToList[i]]).cloneNode(true), newToList.options.item(0)); } // Swap the unsorted node with the sorted one. oToList.parentNode.replaceChild(newToList,oToList); }} |
if(oFromList.options.selectedIndex == -1) | if(oFromList.options.selectedIndex == -1) { | function NVCLMarker_moveScalarsInLists(pFromListBox, pToListBox, pIsSelecting) { var oFromList = document.getElementById(pFromListBox); var oToList = document.getElementById(pToListBox); if ((oFromList != null) && (oToList != null)) { // No items in the list if(oFromList.length < 1) return; // When no Item is selected the index will be -1 if(oFromList.options.selectedIndex == -1) return; while ( oFromList.options.selectedIndex >= 0 ) { // Create updateCSWRecords new instance of ListItem var oListItem = new Option(); oListItem.text = oFromList.options[oFromList.options.selectedIndex].text; oListItem.value = oFromList.options[oFromList.options.selectedIndex].value; oListItem.title = oFromList.options[oFromList.options.selectedIndex].title; //Append the item in Target Listbox oToList.options[oToList.length] = oListItem; //Remove the item from Source Listbox oFromList.remove(oFromList.options.selectedIndex); this.maScalarSelected[oListItem.value] = pIsSelecting; } // Sort the target list // Prepare variables var arrLookup = new Array(); // To quickly find the index of the text var arrToList = new Array(); // To use JavaScripts builtin sort var newToList = oToList.cloneNode(false); // Only clone the parent // Prepare the sorting arrays for( var i = 0; i < oToList.length; i++) { arrLookup[oToList.options.item(i).value] = i; arrToList[i] = oToList.options.item(i).value; } arrToList.sort(); // <-- Where the action really occurs // Decrement to keep the index from being affected for( var i = arrToList.length - 1; i >= 0; i-- ) { // Use insertBefore instead of appendChild because of decrementing. newToList.insertBefore(oToList.options.item(arrLookup[arrToList[i]]).cloneNode(true), newToList.options.item(0)); } // Swap the unsorted node with the sorted one. oToList.parentNode.replaceChild(newToList,oToList); }} |
var arrLookup = new Array(); var arrToList = new Array(); | var arrLookup = []; var arrToList = []; | function NVCLMarker_moveScalarsInLists(pFromListBox, pToListBox, pIsSelecting) { var oFromList = document.getElementById(pFromListBox); var oToList = document.getElementById(pToListBox); if ((oFromList != null) && (oToList != null)) { // No items in the list if(oFromList.length < 1) return; // When no Item is selected the index will be -1 if(oFromList.options.selectedIndex == -1) return; while ( oFromList.options.selectedIndex >= 0 ) { // Create updateCSWRecords new instance of ListItem var oListItem = new Option(); oListItem.text = oFromList.options[oFromList.options.selectedIndex].text; oListItem.value = oFromList.options[oFromList.options.selectedIndex].value; oListItem.title = oFromList.options[oFromList.options.selectedIndex].title; //Append the item in Target Listbox oToList.options[oToList.length] = oListItem; //Remove the item from Source Listbox oFromList.remove(oFromList.options.selectedIndex); this.maScalarSelected[oListItem.value] = pIsSelecting; } // Sort the target list // Prepare variables var arrLookup = new Array(); // To quickly find the index of the text var arrToList = new Array(); // To use JavaScripts builtin sort var newToList = oToList.cloneNode(false); // Only clone the parent // Prepare the sorting arrays for( var i = 0; i < oToList.length; i++) { arrLookup[oToList.options.item(i).value] = i; arrToList[i] = oToList.options.item(i).value; } arrToList.sort(); // <-- Where the action really occurs // Decrement to keep the index from being affected for( var i = arrToList.length - 1; i >= 0; i-- ) { // Use insertBefore instead of appendChild because of decrementing. newToList.insertBefore(oToList.options.item(arrLookup[arrToList[i]]).cloneNode(true), newToList.options.item(0)); } // Swap the unsorted node with the sorted one. oToList.parentNode.replaceChild(newToList,oToList); }} |
i.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,e,q)},i,m,h,0,0)}function o(c,e,h){var i=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,i,q,"Wt-hsh",function(B){b(c,e,B)},s,m,h,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c, | WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var f,j,l,q=a.getElement(t).firstChild.childNodes;j=f=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(f==c)return s;else++f}return null}function d(c,f){if(c.offsetWidth>0)return c.offsetWidth;else{c=n.firstChild.rows[0];var j,l,q,s;q=l=0;for(s=c.childNodes.length;l<s;++l){j=c.childNodes[l];if(j.className!="Wt-vrh"){if(q== | i.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,e,q)},i,m,h,0,0)}function o(c,e,h){var i=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,i,q,"Wt-hsh",function(B){b(c,e,B)},s,m,h,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c, |
i}e.feedback=true;v[g]=r(e,g);j()}function O(c,d,e){var g=function(){var i=q.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=q.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(M[c]===true)d();else M[c]=d},20)}function Z(c){if(M[c]!==true){typeof M[c]!=="undefined"&&M[c]();M[c]=true}}function ha(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script"); | d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea=this,q=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null, | i}e.feedback=true;v[g]=r(e,g);j()}function O(c,d,e){var g=function(){var i=q.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=q.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(M[c]===true)d();else M[c]=d},20)}function Z(c){if(M[c]!==true){typeof M[c]!=="undefined"&&M[c]();M[c]=true}}function ha(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script"); |
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j){var m=a.getElement(t).firstChild;p(e).style.width=j+"px";var n,r,u,v;r=n=0;for(u=m.rows.length;n<u;n++){v=m.rows[n];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B< | WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j){var m=a.getElement(t).firstChild;p(e).style.width=j+"px";var n,r,u,w;r=n=0;for(u=m.rows.length;n<u;n++){w=m.rows[n];if(w.className!="Wt-hrh"){var x,B,D,F;D=B=0;for(F=w.childNodes.length;B< | WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j){var m=a.getElement(t).firstChild;p(e).style.width=j+"px";var n,r,u,v;r=n=0;for(u=m.rows.length;n<u;n++){v=m.rows[n];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B< |
d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea=this,p=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null, | true}}function ia(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea= | d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea=this,p=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null, |
},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; | for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';var A=x.config;A.contentsLangDirection=='ui'&&(A.contentsLangDirection=x.lang.dir);s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[]; | },onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; |
switch (topic) { case "current_view_check_status": this.pushEdit(); break; case "view_closed": this.removeView(subject, this.lastEditStack.items); this.removeView(subject, this.nextEditStack.items); this.updateCommands(); break; case "tabswitcher_pref_changed": this.init(); } | switch (topic) { case "current_view_check_status": this.pushEdit(); break; case "view_closed": this.viewClosed(subject); break; case "view_opened": this.viewOpened(subject); break; case "tabswitcher_pref_changed": this.init(); } | observe : function(subject, topic, data) { try { switch (topic) { case "current_view_check_status": this.pushEdit(); break; case "view_closed": this.removeView(subject, this.lastEditStack.items); this.removeView(subject, this.nextEditStack.items); this.updateCommands(); break; case "tabswitcher_pref_changed": this.init(); } } catch (err) { alert(topic + "--" + data + "\n" + err); } }, |
alert(topic + "--" + data + "\n" + err); | DafizillaCommon.exception(err); | observe : function(subject, topic, data) { try { switch (topic) { case "current_view_check_status": this.pushEdit(); break; case "view_closed": this.removeView(subject, this.lastEditStack.items); this.removeView(subject, this.nextEditStack.items); this.updateCommands(); break; case "tabswitcher_pref_changed": this.init(); } } catch (err) { alert(topic + "--" + data + "\n" + err); } }, |
g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,b){var e="scroll"+b;d.fn[e]=function(g){var h=this[0],k;if(!h)return null;if(g!==v)return this.each(function(){if(k=ba(this))k.scrollTo(!a?g:d(k).scrollLeft(),a?g:d(k).scrollTop());else this[e]=g});else return(k=ba(h))?"pageXOffset"in k?k[a?"pageYOffset": | f.top,left:e.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var e="scroll"+b;c.fn[e]=function(f){var h=this[0],k;if(!h)return null;if(f!==v)return this.each(function(){if(k=ba(this))k.scrollTo(!a?f:c(k).scrollLeft(),a?f:c(k).scrollTop());else this[e]=f});else return(k=ba(h))?"pageXOffset"in k?k[a?"pageYOffset": | g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,b){var e="scroll"+b;d.fn[e]=function(g){var h=this[0],k;if(!h)return null;if(g!==v)return this.each(function(){if(k=ba(this))k.scrollTo(!a?g:d(k).scrollLeft(),a?g:d(k).scrollTop());else this[e]=g});else return(k=ba(h))?"pageXOffset"in k?k[a?"pageYOffset": |
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty(); });};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+' | }},l,null,100);}}});(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='';function n(s,t){var u=false,v;for(v in t){if(t[v]===s||t[v]==s){u=true;break;}}return u;};var o=function(){var s=this,t=function(){var x={};x.srcNodeRef=s.document.getWindow().$.frameElement;x.assocApp='CKEDITOR.'+a.version+'@'+a.revision;x.customerid=s.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';x.customDictionaryIds=s.config.scayt_customDictionaryIds||'';x.userDictionaryName=s.config.scayt_userDictionaryName||'';x.sLang=s.config.scayt_sLang||'en_US';x.onLoad=function(){if(!(c&&b.version<8))this.addStyle(this.selectorCss(),'padding-bottom: 2px !important;');if(s.focusManager.hasFocus&&!p.isControlRestored(s))this.focus();};x.onBeforeChange=function(){if(p.getScayt(s)&&!s.checkDirty())setTimeout(function(){s.resetDirty();},0);};var y=window.scayt_custom_params;if(typeof y=='object')for(var z in y)x[z]=y[z];if(p.getControlId(s))x.id=p.getControlId(s);var A=new window.scayt(x);A.afterMarkupRemove.push(function(H){new h(H,A.document).mergeSiblings();});var B=p.instances[s.name];if(B){A.sLang=B.sLang;A.option(B.option());A.paused=B.paused;}p.instances[s.name]=A;var C='scaytButton',D=window.scayt.uiTags,E=[];for(var F=0,G=4;F<G;F++)E.push(D[F]&&p.uiTabs[F]);p.uiTabs=E;try{A.setDisabled(p.isPaused(s)===false);}catch(H){}s.fire('showScaytState');};s.on('contentDom',t);s.on('contentDomUnload',function(){var x=a.document.getElementsByTag('script'),y=/^dojoIoScript(\d+)$/i,z=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var A=0;A<x.count();A++){var B=x.getItem(A),C=B.getId(),D=B.getAttribute('src');if(C&&D&&C.match(y)&&D.match(z))B.remove();}});s.on('beforeCommandExec',function(x){if((x.data.name=='source'||x.data.name=='newpage')&&s.mode=='wysiwyg'){var y=p.getScayt(s);if(y){p.setPaused(s,!y.disabled);p.setControlId(s,y.id);y.destroy(true);delete p.instances[s.name];}}else if(x.data.name=='source'&&s.mode=='source')p.markControlRestore(s);});s.on('afterCommandExec',function(x){if(!p.isScaytEnabled(s))return;if(s.mode=='wysiwyg'&&(x.data.name=='undo'||x.data.name=='redo'))window.setTimeout(function(){p.getScayt(s).refresh();},10); | while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty();});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'//'+w,y=r.parseUrl(x).path+'/'; |
g.id=n.id;g.className=n.className;g.title=n.title;g.style.display="block";g.style.width=A(n,"width","300px");g.style.height=A(n,"height","24px");n.parentNode.replaceChild(g,n);var q=(n.getAttribute("preload")||"").toLowerCase(),i=[];x&&i.push({url:C(x)});if(G)i.push({url:C(G),autoPlay:y(n,"autoplay"),autoBuffering:y(n,"autobuffer")||y(n,"preload")&&(q==""||q=="auto"),onBeforeFinish:function(){return!y(n,"loop")}});x={controls:u&&{url:C(t.flowplayerControlsSwf),fullscreen:false,autoHide:j==p&&"always"|| | autoBuffering:y(n,"autobuffer")||y(n,"preload")&&(q==""||q=="auto"),onBeforeFinish:function(){return!y(n,"loop")}});x={controls:u&&{url:C(t.flowplayerControlsSwf),fullscreen:false,autoHide:j==p&&"always"||"never"}||null};if(E(G)==E(f)){x.audio={url:C(t.flowplayerAudioSwf)};u||(x.controls={url:C(t.flowplayerControlsSwf),display:"none"});i.slice(-1)[0].autoBuffering=false}u={play:null,playlist:i,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},plugins:x};t.configureFlowplayer(j,n,u);flowplayer(g,{src:C(t.flowplayerSwf), | g.id=n.id;g.className=n.className;g.title=n.title;g.style.display="block";g.style.width=A(n,"width","300px");g.style.height=A(n,"height","24px");n.parentNode.replaceChild(g,n);var q=(n.getAttribute("preload")||"").toLowerCase(),i=[];x&&i.push({url:C(x)});if(G)i.push({url:C(G),autoPlay:y(n,"autoplay"),autoBuffering:y(n,"autobuffer")||y(n,"preload")&&(q==""||q=="auto"),onBeforeFinish:function(){return!y(n,"loop")}});x={controls:u&&{url:C(t.flowplayerControlsSwf),fullscreen:false,autoHide:j==p&&"always"|| |
g.id=n.id;g.className=n.className;g.title=n.title;g.style.display="block";g.style.width=D(n,"width","300px");g.style.height=D(n,"height","24px");n.parentNode.replaceChild(g,n);var p=(n.getAttribute("preload")||"").toLowerCase(),i=[];w&&i.push({url:B(w)});if(G)i.push({url:B(G),autoPlay:y(n,"autoplay"),autoBuffering:y(n,"autobuffer")||y(n,"preload")&&(p==""||p=="auto"),onBeforeFinish:function(){return!y(n,"loop")}});w={controls:t&&{url:B(s.flowplayerControlsSwf),fullscreen:false,autoHide:j==x&&"always"|| | z&&!G&&v(h,function(H){I=F(j,z,r.getAttribute("type"));if(E(I)==E(H))G=z})});var g=o.createElement("span");g.id=n.id;g.className=n.className;g.title=n.title;g.style.display="block";g.style.width=D(n,"width","300px");g.style.height=D(n,"height","24px");n.parentNode.replaceChild(g,n);var p=(n.getAttribute("preload")||"").toLowerCase(),i=[];w&&i.push({url:B(w)});if(G)i.push({url:B(G),autoPlay:y(n,"autoplay"),autoBuffering:y(n,"autobuffer")||y(n,"preload")&&(p==""||p=="auto"),onBeforeFinish:function(){return!y(n, "loop")}});w={controls:t&&{url:B(s.flowplayerControlsSwf),fullscreen:false,autoHide:j==x&&"always"||"never"}||null};if(E(I)==E(d)){w.audio={url:B(s.flowplayerAudioSwf)};t||(w.controls={url:B(s.flowplayerControlsSwf),display:"none"});i.slice(-1)[0].autoBuffering=false}t={play:null,playlist:i,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},plugins:w};s.configureFlowplayer(j,n,t);flowplayer(g,{src:B(s.flowplayerSwf),wmode:"opaque"},t)};if(A.jQuery)jQuery(s);else A.DomReady&&DomReady.ready(s);A.html5media= | g.id=n.id;g.className=n.className;g.title=n.title;g.style.display="block";g.style.width=D(n,"width","300px");g.style.height=D(n,"height","24px");n.parentNode.replaceChild(g,n);var p=(n.getAttribute("preload")||"").toLowerCase(),i=[];w&&i.push({url:B(w)});if(G)i.push({url:B(G),autoPlay:y(n,"autoplay"),autoBuffering:y(n,"autobuffer")||y(n,"preload")&&(p==""||p=="auto"),onBeforeFinish:function(){return!y(n,"loop")}});w={controls:t&&{url:B(s.flowplayerControlsSwf),fullscreen:false,autoHide:j==x&&"always"|| |
y.setAttribute('id','cke_pastebin');b.webkit&&y.append(u.createText('\xa0'));u.getBody().append(y);y.setStyles({position:'absolute',left:'-1000px',top:w.getStartElement().getDocumentPosition().y+'px',width:'1px',height:'1px',overflow:'hidden'});var z=w.createBookmarks();if(s=='text'){if(c){var A=u.getBody().$.createTextRange();A.moveToElementText(y.$);A.execCommand('Paste');r.data.preventDefault();}else{u.$.designMode='off';y.$.focus();}}else{x.setStartAt(y,1);x.setEndAt(y,2);x.select(true);}window.setTimeout(function(){s=='text'&&!c&&(u.$.designMode='on');y.remove();var B;y=b.webkit&&(B=y.getFirst())&&B.is&&B.hasClass('Apple-style-span')?B:y;w.selectBookmarks(z);t(y['get'+(s=='text'?'Value':'Html')]());},0);};j.add('clipboard',{requires:['dialog','htmldataprocessor'],init:function(r){r.on('paste',function(w){var x=w.data;if(x.html)r.insertHtml(x.html);else if(x.text)r.insertText(x.text);},null,null,1000);r.on('pasteDialog',function(w){setTimeout(function(){r.openDialog('paste');},0);});function s(w,x,y,z){var A=r.lang[x];r.addCommand(x,y);r.ui.addButton(w,{label:A,command:x});if(r.addMenuItems)r.addMenuItem(x,{label:A,command:x,group:'clipboard',order:z});};s('Cut','cut',new n('cut'),1);s('Copy','copy',new n('copy'),4);s('Paste','paste',o,8);a.dialog.add('paste',a.getUrl(this.path+'dialogs/paste.js'));r.on('key',p,r);var t=r.config.forcePasteAsPlainText?'text':'html';r.on('contentDom',function(){var w=r.document.getBody();w.on(t=='text'&&c||b.webkit?'paste':'beforepaste',function(x){if(u)return;q.call(r,x,t,function(y){if(!y)return;var z={};z[t]=y;r.fire('paste',z);});});});if(r.contextMenu){var u;function v(w){c&&w=='Paste'&&(u=1);var x=r.document.$.queryCommandEnabled(w)?2:0;u=0;return x;};r.contextMenu.addListener(function(){return{cut:v('Cut'),copy:v('Cut'),paste:b.webkit?2:v('Paste')};});}}});})();j.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(l){var m=l.config,n=l.lang.colorButton,o;if(!b.hc){p('TextColor','fore',n.textColorTitle);p('BGColor','back',n.bgColorTitle);}function p(r,s,t){l.ui.add(r,4,{label:t,title:t,className:'cke_button_'+r.toLowerCase(),modes:{wysiwyg:1},panel:{css:l.skin.editor.css,attributes:{role:'listbox','aria-label':n.panelTitle}},onBlock:function(u,v){v.autoSize=true;v.element.addClass('cke_colorblock');v.element.setHtml(q(u,s));var w=v.keys;w[39]='next';w[40]='next';w[9]='next';w[37]='prev';w[38]='prev';w[2000+9]='prev';w[32]='click';}});};function q(r,s){var t=[],u=m.colorButton_colors.split(','),v=u.length+(m.colorButton_enableMore?2:1),w=e.addFunction(function(C,D){if(C=='?'){var E=arguments.callee; | if(s.addMenuItems)s.addMenuItem(y,{label:B,command:y,group:'clipboard',order:A});};t('Cut','cut',new n('cut'),1);t('Copy','copy',new n('copy'),4);t('Paste','paste',o,8);a.dialog.add('paste',a.getUrl(this.path+'dialogs/paste.js'));s.on('key',p,s);var u=s.config.forcePasteAsPlainText?'text':'html';s.on('contentDom',function(){var x=s.document.getBody();x.on(u=='text'&&c||b.webkit?'paste':'beforepaste',function(y){if(v)return;q.call(s,y,u,function(z){if(!z)return;var A={};A[u]=z;s.fire('paste',A);});});x.on('beforecut',function(){!v&&r(s);});});if(s.contextMenu){var v;function w(x){c&&(v=1);var y=s.document.$.queryCommandEnabled(x)?2:0;v=0;return y;};s.contextMenu.addListener(function(x,y){var z=y.getCommonAncestor().isReadOnly();return{cut:!z&&w('Cut'),copy:w('Copy'),paste:!z&&(b.webkit?2:w('Paste'))};});}}});})();j.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(l){var m=l.config,n=l.lang.colorButton,o;if(!b.hc){p('TextColor','fore',n.textColorTitle);p('BGColor','back',n.bgColorTitle);}function p(r,s,t){l.ui.add(r,4,{label:t,title:t,className:'cke_button_'+r.toLowerCase(),modes:{wysiwyg:1},panel:{css:l.skin.editor.css,attributes:{role:'listbox','aria-label':n.panelTitle}},onBlock:function(u,v){v.autoSize=true;v.element.addClass('cke_colorblock');v.element.setHtml(q(u,s));v.element.getDocument().getBody().setStyle('overflow','hidden');var w=v.keys,x=l.lang.dir=='rtl';w[x?37:39]='next';w[40]='next';w[9]='next';w[x?39:37]='prev';w[38]='prev';w[2000+9]='prev';w[32]='click';}});};function q(r,s){var t=[],u=m.colorButton_colors.split(','),v=u.length+(m.colorButton_enableMore?2:1),w=e.addFunction(function(C,D){if(C=='?'){var E=arguments.callee;function F(H){this.removeListener('ok',F);this.removeListener('cancel',F);H.name=='ok'&&E(this.getContentElement('picker','selectedColor').getValue(),D);};l.openDialog('colordialog',function(){this.on('ok',F);this.on('cancel',F);});return;}l.focus();r.hide();l.fire('saveSnapshot');new a.style(m['colorButton_'+D+'Style'],{color:'inherit'}).remove(l.document);if(C){var G=m['colorButton_'+D+'Style'];G.childRule=D=='back'?function(){return false;}:function(H){return H.getName()!='a';};new a.style(G,{color:C}).apply(l.document);}l.fire('saveSnapshot');});t.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',n.auto,'" onclick="CKEDITOR.tools.callFunction(',w,",null,'",s,"');return false;\" href=\"javascript:void('",n.auto,'\')" role="option" aria-posinset="1" aria-setsize="',v,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" style="background-color:#000"></span></td><td colspan=7 align=center>',n.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">'); | y.setAttribute('id','cke_pastebin');b.webkit&&y.append(u.createText('\xa0'));u.getBody().append(y);y.setStyles({position:'absolute',left:'-1000px',top:w.getStartElement().getDocumentPosition().y+'px',width:'1px',height:'1px',overflow:'hidden'});var z=w.createBookmarks();if(s=='text'){if(c){var A=u.getBody().$.createTextRange();A.moveToElementText(y.$);A.execCommand('Paste');r.data.preventDefault();}else{u.$.designMode='off';y.$.focus();}}else{x.setStartAt(y,1);x.setEndAt(y,2);x.select(true);}window.setTimeout(function(){s=='text'&&!c&&(u.$.designMode='on');y.remove();var B;y=b.webkit&&(B=y.getFirst())&&B.is&&B.hasClass('Apple-style-span')?B:y;w.selectBookmarks(z);t(y['get'+(s=='text'?'Value':'Html')]());},0);};j.add('clipboard',{requires:['dialog','htmldataprocessor'],init:function(r){r.on('paste',function(w){var x=w.data;if(x.html)r.insertHtml(x.html);else if(x.text)r.insertText(x.text);},null,null,1000);r.on('pasteDialog',function(w){setTimeout(function(){r.openDialog('paste');},0);});function s(w,x,y,z){var A=r.lang[x];r.addCommand(x,y);r.ui.addButton(w,{label:A,command:x});if(r.addMenuItems)r.addMenuItem(x,{label:A,command:x,group:'clipboard',order:z});};s('Cut','cut',new n('cut'),1);s('Copy','copy',new n('copy'),4);s('Paste','paste',o,8);a.dialog.add('paste',a.getUrl(this.path+'dialogs/paste.js'));r.on('key',p,r);var t=r.config.forcePasteAsPlainText?'text':'html';r.on('contentDom',function(){var w=r.document.getBody();w.on(t=='text'&&c||b.webkit?'paste':'beforepaste',function(x){if(u)return;q.call(r,x,t,function(y){if(!y)return;var z={};z[t]=y;r.fire('paste',z);});});});if(r.contextMenu){var u;function v(w){c&&w=='Paste'&&(u=1);var x=r.document.$.queryCommandEnabled(w)?2:0;u=0;return x;};r.contextMenu.addListener(function(){return{cut:v('Cut'),copy:v('Cut'),paste:b.webkit?2:v('Paste')};});}}});})();j.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(l){var m=l.config,n=l.lang.colorButton,o;if(!b.hc){p('TextColor','fore',n.textColorTitle);p('BGColor','back',n.bgColorTitle);}function p(r,s,t){l.ui.add(r,4,{label:t,title:t,className:'cke_button_'+r.toLowerCase(),modes:{wysiwyg:1},panel:{css:l.skin.editor.css,attributes:{role:'listbox','aria-label':n.panelTitle}},onBlock:function(u,v){v.autoSize=true;v.element.addClass('cke_colorblock');v.element.setHtml(q(u,s));var w=v.keys;w[39]='next';w[40]='next';w[9]='next';w[37]='prev';w[38]='prev';w[2000+9]='prev';w[32]='click';}});};function q(r,s){var t=[],u=m.colorButton_colors.split(','),v=u.length+(m.colorButton_enableMore?2:1),w=e.addFunction(function(C,D){if(C=='?'){var E=arguments.callee; |
return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p}; | }else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A(!c&&1);while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p};};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter(); | return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p}; |
} | }; | menu_item.onclick = function () { close_panel(); } |
if(e.button != 0){ | if(e.button !== 0){ | onClick : function(e){ if(e.button != 0){ return; } if(this.disabled){ e.stopEvent(); } else { if (this.fireEvent("click", this, e) !== false) { if(this.handler){ this.handler.call(this.scope || this, this, e); } } } }, |
q.push(u);}q.sort(l);}s&&s();});};m.ui.addRichCombo('Styles',{label:o.label,title:o.panelTitle,className:'cke_styles',panel:{css:m.skin.editor.css.concat(n.contentsCss),multiSelect:true,attributes:{'aria-label':o.panelTitle}},init:function(){var s=this;r(function(){var t,u,v;for(var w=0;w<q.length;w++){t=q[w];u=t._name;var x=t.type;if(x!=v){s.startGroup(o['panelTitle'+String(x)]);v=x;}s.add(u,t.type==3?u:t.buildPreview(),u);}s.commit();s.onOpen();});},onClick:function(s){m.focus();m.fire('saveSnapshot');var t=p[s],u=m.getSelection(),v=new d.elementPath(u.getStartElement());if(t.type==2&&t.checkActive(v))t.remove(m.document);else t.apply(m.document);m.fire('saveSnapshot');},onRender:function(){m.on('selectionChange',function(s){var t=this.getValue(),u=s.data.path,v=u.elements;for(var w=0,x;w<v.length;w++){x=v[w];for(var y in p){if(p[y].checkElementRemovable(x,true)){if(y!=t)this.setValue(y);return;}}}this.setValue('');},this);},onOpen:function(){var z=this;if(c||b.webkit)m.focus();var s=m.getSelection(),t=s.getSelectedElement(),u=new d.elementPath(t||s.getStartElement()),v=[0,0,0,0];z.showAll();z.unmarkAll();for(var w in p){var x=p[w],y=x.type;if(x.checkActive(u))z.mark(w);else if(y==3&&!x.checkApplicable(u)){z.hideItem(w);v[y]--;}v[y]++;}if(!v[1])z.hideGroup(o['panelTitle'+String(1)]);if(!v[2])z.hideGroup(o['panelTitle'+String(2)]);if(!v[3])z.hideGroup(o['panelTitle'+String(3)]);}});m.on('instanceReady',function(){r();});}});function l(m,n){var o=m.type,p=n.type;return o==p?0:o==3?-1:p==3?1:p==1?1:-1;};})();j.add('table',{init:function(l){var m=j.table,n=l.lang.table;l.addCommand('table',new a.dialogCommand('table'));l.addCommand('tableProperties',new a.dialogCommand('tableProperties'));l.ui.addButton('Table',{label:n.toolbar,command:'table'});a.dialog.add('table',this.path+'dialogs/table.js');a.dialog.add('tableProperties',this.path+'dialogs/table.js');if(l.addMenuItems)l.addMenuItems({table:{label:n.menu,command:'tableProperties',group:'table',order:5},tabledelete:{label:n.deleteTable,command:'tableDelete',group:'table',order:1}});if(l.contextMenu)l.contextMenu.addListener(function(o,p){if(!o)return null;var q=o.is('table')||o.hasAscendant('table');if(q)return{tabledelete:2,table:2};return null;});}});(function(){function l(F,G){if(c)F.removeAttribute(G);else delete F[G];};var m=/^(?:td|th)$/;function n(F){var G=F.createBookmarks(),H=F.getRanges(),I=[],J={};function K(S){if(I.length>0)return;if(S.type==1&&m.test(S.getName())&&!S.getCustomData('selected_cell')){h.setMarker(J,S,'selected_cell',true); | l.fire('ariaWidget',o);o.on('blur',function(){l.focusManager.blur();});o.on('focus',function(){l.focusManager.focus();});l.mayBeDirty=true;this.loadData(r);var t=l.keystrokeHandler;if(t)t.attach(o);setTimeout(function(){l.mode='source';l.fire('mode');},b.gecko||b.webkit?100:0);},loadData:function(q){o.setValue(q);l.fire('dataReady');},getData:function(){return o.getValue();},getSnapshotData:function(){return o.getValue();},unload:function(q){o.clearCustomData();l.textarea=o=null;if(p){l.removeListener('resize',p);n.removeListener('resize',p);}if(c&&b.version<8)q.removeStyle('position');},focus:function(){o.focus();}});});l.addCommand('source',m.commands.source);if(l.ui.addButton)l.ui.addButton('Source',{label:l.lang.source,command:'source'});l.on('mode',function(){l.getCommand('source').setState(l.mode=='source'?1:2);});}});j.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:false,exec:function(l){if(l.mode=='wysiwyg')l.fire('saveSnapshot');l.getCommand('source').setState(0);l.setMode(l.mode=='source'?'wysiwyg':'source');},canUndo:false}}};(function(){j.add('stylescombo',{requires:['richcombo','styles'],init:function(m){var n=m.config,o=m.lang.stylesCombo,p={},q=[];function r(s){m.getStylesSet(function(t){if(!q.length){var u,v;for(var w=0;w<t.length;w++){var x=t[w];v=x.name;u=p[v]=new a.style(x);u._name=v;u._.enterMode=n.enterMode;q.push(u);}q.sort(l);}s&&s();});};m.ui.addRichCombo('Styles',{label:o.label,title:o.panelTitle,className:'cke_styles',panel:{css:m.skin.editor.css.concat(n.contentsCss),multiSelect:true,attributes:{'aria-label':o.panelTitle}},init:function(){var s=this;r(function(){var t,u,v;for(var w=0;w<q.length;w++){t=q[w];u=t._name;var x=t.type;if(x!=v){s.startGroup(o['panelTitle'+String(x)]);v=x;}s.add(u,t.type==3?u:t.buildPreview(),u);}s.commit();s.onOpen();});},onClick:function(s){m.focus();m.fire('saveSnapshot');var t=p[s],u=m.getSelection(),v=new d.elementPath(u.getStartElement());if(t.type==2&&t.checkActive(v))t.remove(m.document);else if(t.type==3&&t.checkActive(v))t.remove(m.document);else t.apply(m.document);m.fire('saveSnapshot');},onRender:function(){m.on('selectionChange',function(s){var t=this.getValue(),u=s.data.path,v=u.elements;for(var w=0,x;w<v.length;w++){x=v[w];for(var y in p){if(p[y].checkElementRemovable(x,true)){if(y!=t)this.setValue(y);return;}}}this.setValue('');},this);},onOpen:function(){var z=this;if(c||b.webkit)m.focus();var s=m.getSelection(),t=s.getSelectedElement(),u=new d.elementPath(t||s.getStartElement()),v=[0,0,0,0]; | q.push(u);}q.sort(l);}s&&s();});};m.ui.addRichCombo('Styles',{label:o.label,title:o.panelTitle,className:'cke_styles',panel:{css:m.skin.editor.css.concat(n.contentsCss),multiSelect:true,attributes:{'aria-label':o.panelTitle}},init:function(){var s=this;r(function(){var t,u,v;for(var w=0;w<q.length;w++){t=q[w];u=t._name;var x=t.type;if(x!=v){s.startGroup(o['panelTitle'+String(x)]);v=x;}s.add(u,t.type==3?u:t.buildPreview(),u);}s.commit();s.onOpen();});},onClick:function(s){m.focus();m.fire('saveSnapshot');var t=p[s],u=m.getSelection(),v=new d.elementPath(u.getStartElement());if(t.type==2&&t.checkActive(v))t.remove(m.document);else t.apply(m.document);m.fire('saveSnapshot');},onRender:function(){m.on('selectionChange',function(s){var t=this.getValue(),u=s.data.path,v=u.elements;for(var w=0,x;w<v.length;w++){x=v[w];for(var y in p){if(p[y].checkElementRemovable(x,true)){if(y!=t)this.setValue(y);return;}}}this.setValue('');},this);},onOpen:function(){var z=this;if(c||b.webkit)m.focus();var s=m.getSelection(),t=s.getSelectedElement(),u=new d.elementPath(t||s.getStartElement()),v=[0,0,0,0];z.showAll();z.unmarkAll();for(var w in p){var x=p[w],y=x.type;if(x.checkActive(u))z.mark(w);else if(y==3&&!x.checkApplicable(u)){z.hideItem(w);v[y]--;}v[y]++;}if(!v[1])z.hideGroup(o['panelTitle'+String(1)]);if(!v[2])z.hideGroup(o['panelTitle'+String(2)]);if(!v[3])z.hideGroup(o['panelTitle'+String(3)]);}});m.on('instanceReady',function(){r();});}});function l(m,n){var o=m.type,p=n.type;return o==p?0:o==3?-1:p==3?1:p==1?1:-1;};})();j.add('table',{init:function(l){var m=j.table,n=l.lang.table;l.addCommand('table',new a.dialogCommand('table'));l.addCommand('tableProperties',new a.dialogCommand('tableProperties'));l.ui.addButton('Table',{label:n.toolbar,command:'table'});a.dialog.add('table',this.path+'dialogs/table.js');a.dialog.add('tableProperties',this.path+'dialogs/table.js');if(l.addMenuItems)l.addMenuItems({table:{label:n.menu,command:'tableProperties',group:'table',order:5},tabledelete:{label:n.deleteTable,command:'tableDelete',group:'table',order:1}});if(l.contextMenu)l.contextMenu.addListener(function(o,p){if(!o)return null;var q=o.is('table')||o.hasAscendant('table');if(q)return{tabledelete:2,table:2};return null;});}});(function(){function l(F,G){if(c)F.removeAttribute(G);else delete F[G];};var m=/^(?:td|th)$/;function n(F){var G=F.createBookmarks(),H=F.getRanges(),I=[],J={};function K(S){if(I.length>0)return;if(S.type==1&&m.test(S.getName())&&!S.getCustomData('selected_cell')){h.setMarker(J,S,'selected_cell',true); |
return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p}; | };(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null; | return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p}; |
this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { | this.request = new Request.JSON({url:url, link:'chain',onComplete: function(response,errorMessage) { | this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); |
process(response); | if(Browser.Engine.trident && Browser.Engine.version == 5) { var myprocess = process; myprocess.delay(50,this,response); } else { process(response); } | this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); |
displayErrorMessage(errorMessage); | displayErrorMessage(''+url+' failure:'+errorMessage); | this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); |
reqRunning = false; reqQueue.callChain(); | this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); |
|
this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) { | this.request = new Request.JSON({url:url, link:'chain',onComplete: function(response,errorMessage) { | this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(''+url+' failure:'+errorMessage); } }}); |
process(response); | if(Browser.Engine.trident && Browser.Engine.version == 5) { var myprocess = process; myprocess.delay(20,this,response); } else { process(response); } | this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(''+url+' failure:'+errorMessage); } }}); |
reqRunning = false; reqQueue.callChain(); | this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(''+url+' failure:'+errorMessage); } }}); |
|
log.debug("Setting up async reading pump"); | log.debug("Setting up the async reading pump"); | onConnect: function() { try { log.debug("Setting up async reading pump"); // start the async read this.pump = Components.classes["@mozilla.org/network/input-stream-pump;1"] .createInstance(Components.interfaces.nsIInputStreamPump); this.pump.init(this.raw_istream, -1, -1, 0, 0, false); this.pump.asyncRead(this, null); this.onNotify("transport-status-connected", null); } catch(ex) { log.error(ex, "Session::onConnect failed: "); this.onNotify("connect-failed", "Unable to connect; Exception occured "+ex); this.disconnect(); //this.reconnectSoon(); } }, |
this.onNotify("transport-status-connected", null); | onConnect: function() { try { log.debug("Setting up the async reading pump"); // start the async read this.pump = Components.classes["@mozilla.org/network/input-stream-pump;1"] .createInstance(Components.interfaces.nsIInputStreamPump); this.pump.init(this.raw_istream, -1, -1, 0, 0, false); this.pump.asyncRead(this, null); this.onNotify("transport-status-connected", null); } catch(ex) { log.error(ex, "Session::onConnect failed: "); this.onNotify("connect-failed", "Unable to connect; Exception occured "+ex); this.disconnect(); //this.reconnectSoon(); } }, |
|
function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function h(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object); | d){O=d;o.history.navigate(escape(d))}}function aa(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute"; | function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function h(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object); |
function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove= | function(){return false}}function h(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove= | "IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove= |
let selection = window.content.getSelection(); | let selection = Buffer.focusedWindow.getSelection(); | onEscape: function () { if (modes.passNextKey) return; if (modes.passAllKeys) { modes.passAllKeys = false; return; } switch (liberator.mode) { case modes.NORMAL: // clear any selection made let selection = window.content.getSelection(); try { // a simple if (selection) does not seem to work selection.collapseToStart(); } catch (e) {} modes.reset(); break; case modes.VISUAL: if (modes.extended & modes.TEXTAREA) liberator.mode = modes.TEXTAREA; else if (modes.extended & modes.CARET) liberator.mode = modes.CARET; break; case modes.CARET: // setting this option will trigger an observer which will // take care of all other details like setting the NORMAL // mode options.setPref("accessibility.browsewithcaret", false); break; case modes.TEXTAREA: // TODO: different behaviour for text areas and other input // fields seems unnecessarily complicated. If the user // likes Vi-mode then they probably like it for all input // fields, if not they can enter it explicitly for only // text areas. The mode name TEXTAREA is confusing and // would be better replaced with something indicating that // it's a Vi editing mode. Extended modes really need to be // displayed too. --djk function isInputField() { let elem = liberator.focus; return ((elem instanceof HTMLInputElement && !/image/.test(elem.type)) || elem instanceof HTMLIsIndexElement); } if (options["insertmode"] || isInputField()) liberator.mode = modes.INSERT; else modes.reset(); break; case modes.INSERT: if ((modes.extended & modes.TEXTAREA)) liberator.mode = modes.TEXTAREA; else modes.reset(); break; default: // HINTS, CUSTOM or COMMAND_LINE modes.reset(); break; } }, |
"<div style='font-size:.8em;height:3em;'>Feature: <a href='" + p["link"] + ">" + p["title"] + "</a></div>", | '<div style="font-size:.8em;height:3em;">Feature: <a href="' + p.link + '">' + p.title + '</a></div>', | function onFeatureSelect(feature) { selectedFeature = feature; var p = feature.attributes; var popup = new OpenLayers.Popup.FramedCloud("chicken", feature.geometry.getBounds().getCenterLonLat(), null, "<div style='font-size:.8em;height:3em;'>Feature: <a href='" + p["link"] + ">" + p["title"] + "</a></div>", null, true, onPopupClose); feature.popup = popup; map.addPopup(popup);} |
console.log(feature); | function onFeatureSelect( feature ){ console.log(feature); selectedFeature = feature; var info = ""; info = '<img src=\'openlayers/images/ajax-loader.gif\' /><strong> loading information, please wait...</strong>'; // get event class var clusterStations = new Array(); var clusterStationsIDs = new Array(); clusterStations = feature.cluster; if(clusterStations){ for ( var i=0, len=clusterStations.length; i<len; ++i ){ clusterStationsIDs.push(clusterStations[i].fid); //info = info + "<br/>" + clusterStations[i].fid; } } else{ clusterStationsIDs.push(selectedFeature.fid); } pixel = this.handlers.feature.evt.xy; pixel.y = pixel.y-68; //hack to always open popup above station pixel.x = pixel.x-20; var pos = map.getLonLatFromViewPortPx(pixel); // remove existing popup if (popup != null) { popup.hide(); map.removePopup(popup); } // create popup up with response // popup = new OpenLayers.SSPopup( "popupinfo", new OpenLayers.LonLat(pos.lon,pos.lat), new OpenLayers.Size(200,220), info, true, onFeatureUnselect ); popup.panMapIfOutOfView = true; feature.popup = popup; map.addPopup(popup); var mapid = ss_config['Map']['ID']; //var fid = feature.feature.fid; // prepare request for AJAX var url = getControllerName() + '/dogetfeatureinfo/'+mapid+"/"+clusterStationsIDs; // get attributes for selected feature (fid) OpenLayers.loadURL(url, null, this, onLoadPopup);} |
|
ab.type=CKEDITOR.STYLE_INLINE;ab.apply(G.document);if(E.adv&&E.adv.advId){var ac=this.getParentEditor().document.$.getElementsByTagName('a');for(W=0;W<ac.length;W++){if(ac[W].href==C.href){ac[W].id=E.adv.advId;break;}}}}else{var ad=this._.selectedElement,ae=ad.getAttribute('_cke_saved_href'),af=ad.getHtml();if(CKEDITOR.env.ie&&C.name!=ad.getAttribute('name')){var ag=new CKEDITOR.dom.element('<a name="'+CKEDITOR.tools.htmlEncode(C.name)+'">',G.document);Y=G.getSelection();ad.moveChildren(ag);ad.copyAttributes(ag,{name:1});ag.replace(ad);ad=ag;Y.selectElement(ad);}ad.setAttributes(C);ad.removeAttributes(D);if(ae==af)ad.setHtml(C._cke_saved_href);if(ad.getAttribute('name'))ad.addClass('cke_anchor');else ad.removeClass('cke_anchor');if(this.fakeObj)G.createFakeElement(ad,'cke_anchor','anchor').replace(this.fakeObj);delete this._.selectedElement;}},onLoad:function(){if(!a.config.linkShowAdvancedTab)this.hidePage('advanced');if(!a.config.linkShowTargetTab)this.hidePage('target');},onFocus:function(){var C=this.getContentElement('info','linkType'),D;if(C&&C.getValue()=='url'){D=this.getContentElement('info','url');D.select();}}};}); | }var ab=new CKEDITOR.style({element:'a',attributes:C});ab.type=CKEDITOR.STYLE_INLINE;ab.apply(G.document);if(E.adv&&E.adv.advId){var ac=this.getParentEditor().document.$.getElementsByTagName('a');for(W=0;W<ac.length;W++){if(ac[W].href==C.href){ac[W].id=E.adv.advId;break;}}}}else{var ad=this._.selectedElement,ae=ad.getAttribute('_cke_saved_href'),af=ad.getHtml();if(CKEDITOR.env.ie&&C.name!=ad.getAttribute('name')){var ag=new CKEDITOR.dom.element('<a name="'+CKEDITOR.tools.htmlEncode(C.name)+'">',G.document);Y=G.getSelection();ad.moveChildren(ag);ad.copyAttributes(ag,{name:1});ag.replace(ad);ad=ag;Y.selectElement(ad);}ad.setAttributes(C);ad.removeAttributes(D);if(ae==af||E.type=='email'&&af.indexOf('@')!=-1)ad.setHtml(E.type=='email'?E.email.address:C._cke_saved_href);if(ad.getAttribute('name'))ad.addClass('cke_anchor');else ad.removeClass('cke_anchor');if(this.fakeObj)G.createFakeElement(ad,'cke_anchor','anchor').replace(this.fakeObj);delete this._.selectedElement;}},onLoad:function(){if(!a.config.linkShowAdvancedTab)this.hidePage('advanced');if(!a.config.linkShowTargetTab)this.hidePage('target');},onFocus:function(){var C=this.getContentElement('info','linkType'),D;if(C&&C.getValue()=='url'){D=this.getContentElement('info','url');D.select();}}};}); | ab.type=CKEDITOR.STYLE_INLINE;ab.apply(G.document);if(E.adv&&E.adv.advId){var ac=this.getParentEditor().document.$.getElementsByTagName('a');for(W=0;W<ac.length;W++){if(ac[W].href==C.href){ac[W].id=E.adv.advId;break;}}}}else{var ad=this._.selectedElement,ae=ad.getAttribute('_cke_saved_href'),af=ad.getHtml();if(CKEDITOR.env.ie&&C.name!=ad.getAttribute('name')){var ag=new CKEDITOR.dom.element('<a name="'+CKEDITOR.tools.htmlEncode(C.name)+'">',G.document);Y=G.getSelection();ad.moveChildren(ag);ad.copyAttributes(ag,{name:1});ag.replace(ad);ad=ag;Y.selectElement(ad);}ad.setAttributes(C);ad.removeAttributes(D);if(ae==af)ad.setHtml(C._cke_saved_href);if(ad.getAttribute('name'))ad.addClass('cke_anchor');else ad.removeClass('cke_anchor');if(this.fakeObj)G.createFakeElement(ad,'cke_anchor','anchor').replace(this.fakeObj);delete this._.selectedElement;}},onLoad:function(){if(!a.config.linkShowAdvancedTab)this.hidePage('advanced');if(!a.config.linkShowTargetTab)this.hidePage('target');},onFocus:function(){var C=this.getContentElement('info','linkType'),D;if(C&&C.getValue()=='url'){D=this.getContentElement('info','url');D.select();}}};}); |
if ((elem instanceof HTMLInputElement && /^(text|password|search|tel)$/.test(elem.type)) || | if ((elem instanceof HTMLInputElement && /^(text|password|datetime|datetime-local|date|month|time|week|number|range|email|url|search|tel|color)$/.test(elem.type)) || | onFocusChange: function (event) { // command line has it's own focus change handler if (liberator.mode == modes.COMMAND_LINE) return; function hasHTMLDocument(win) win && win.document && win.document instanceof HTMLDocument let win = window.document.commandDispatcher.focusedWindow; let elem = window.document.commandDispatcher.focusedElement; if (win && win.top == content && liberator.has("tabs")) tabs.localStore.focusedFrame = win; try { if (elem && elem.readOnly) return; if ((elem instanceof HTMLInputElement && /^(text|password|search|tel)$/.test(elem.type)) || (elem instanceof HTMLSelectElement)) { liberator.mode = modes.INSERT; if (hasHTMLDocument(win)) buffer.lastInputField = elem; return; } if (elem instanceof HTMLEmbedElement || elem instanceof HTMLObjectElement) { liberator.mode = modes.EMBED; return; } if (elem instanceof HTMLTextAreaElement || (elem && elem.contentEditable == "true")) { if (options["insertmode"]) modes.set(modes.INSERT); else if (elem.selectionEnd - elem.selectionStart > 0) modes.set(modes.VISUAL, modes.TEXTAREA); else modes.main = modes.TEXTAREA; if (hasHTMLDocument(win)) buffer.lastInputField = elem; return; } if (Editor.windowIsEditable(win)) { if (options["insertmode"]) modes.set(modes.INSERT); else if (win.getSelection().toString() != "") modes.set(modes.VISUAL, modes.TEXTAREA); else modes.main = modes.TEXTAREA; buffer.lastInputField = win; return; } if (config.focusChange) { config.focusChange(win); return; } let urlbar = document.getElementById("urlbar"); if (elem == null && urlbar && urlbar.inputField == this._lastFocus) liberator.threadYield(true); if (liberator.mode & (modes.EMBED | modes.INSERT | modes.TEXTAREA | modes.VISUAL)) modes.reset(); } finally { this._lastFocus = elem; } }, |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.