From 4366580093ee58a109957a1c72591989d5243454 Mon Sep 17 00:00:00 2001
From: mdtrooper
Date: Thu, 11 Nov 2010 13:23:27 +0000
Subject: [PATCH] 2010-11-11 Miguel de Dios
* include/javascript/jquery.ui.datepicker.js,
include/javascript/pandora_modules.js,
include/javascript/tiny_mce/plugins/autoresize/editor_plugin.js,
include/javascript/tiny_mce/plugins/example/editor_plugin.js,
include/javascript/tiny_mce/plugins/emotions/editor_plugin.js,
include/javascript/tiny_mce/plugins/advhr/editor_plugin.js,
include/javascript/tiny_mce/plugins/advlist/editor_plugin.js,
include/javascript/tiny_mce/plugins/advimage/editor_plugin.js,
include/javascript/tiny_mce/plugins/advimage/js/image.js,
include/javascript/tiny_mce/plugins/directionality/editor_plugin.js,
include/javascript/tiny_mce/plugins/visualchars/editor_plugin.js,
include/javascript/tiny_mce/plugins/wordcount/editor_plugin.js,
include/javascript/tiny_mce/plugins/autosave/editor_plugin.js,
include/javascript/tiny_mce/plugins/advlink/editor_plugin.js,
include/javascript/tiny_mce/plugins/fullpage/editor_plugin.js,
include/javascript/tiny_mce/plugins/contextmenu/editor_plugin.js,
include/javascript/tiny_mce/plugins/bbcode/editor_plugin.js,
include/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin.js,
include/javascript/OpenLayers/OpenLayers.js,
include/javascript/jquery.ui.resizable.js: fixed end of lines that it
haven't semicolon end char.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3577 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
pandora_console/ChangeLog | 24 +++++++++++++++++++
.../javascript/OpenLayers/OpenLayers.js | 4 ++--
.../javascript/jquery.ui.datepicker.js | 3 +--
.../include/javascript/jquery.ui.resizable.js | 2 +-
.../include/javascript/pandora_modules.js | 5 ----
.../tiny_mce/plugins/advhr/editor_plugin.js | 2 +-
.../plugins/advimage/editor_plugin.js | 2 +-
.../tiny_mce/plugins/advimage/js/image.js | 4 ++--
.../tiny_mce/plugins/advlink/editor_plugin.js | 2 +-
.../tiny_mce/plugins/advlist/editor_plugin.js | 2 +-
.../plugins/autoresize/editor_plugin.js | 2 +-
.../plugins/autosave/editor_plugin.js | 2 +-
.../tiny_mce/plugins/bbcode/editor_plugin.js | 2 +-
.../plugins/contextmenu/editor_plugin.js | 2 +-
.../plugins/directionality/editor_plugin.js | 2 +-
.../plugins/emotions/editor_plugin.js | 2 +-
.../tiny_mce/plugins/example/editor_plugin.js | 2 +-
.../plugins/fullpage/editor_plugin.js | 3 ++-
.../plugins/visualchars/editor_plugin.js | 2 +-
.../plugins/wordcount/editor_plugin.js | 2 +-
.../plugins/xhtmlxtras/editor_plugin.js | 2 +-
21 files changed, 46 insertions(+), 27 deletions(-)
diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index b0fa661099..3fcee7c620 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,27 @@
+2010-11-11 Miguel de Dios
+
+ * include/javascript/jquery.ui.datepicker.js,
+ include/javascript/pandora_modules.js,
+ include/javascript/tiny_mce/plugins/autoresize/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/example/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/emotions/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/advhr/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/advlist/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/advimage/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/advimage/js/image.js,
+ include/javascript/tiny_mce/plugins/directionality/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/visualchars/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/wordcount/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/autosave/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/advlink/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/fullpage/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/contextmenu/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/bbcode/editor_plugin.js,
+ include/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin.js,
+ include/javascript/OpenLayers/OpenLayers.js,
+ include/javascript/jquery.ui.resizable.js: fixed end of lines that it
+ haven't semicolon end char.
+
2010-11-11 Miguel de Dios
* extensions/insert_data.php: fixed to force include the "autocomplete"
diff --git a/pandora_console/include/javascript/OpenLayers/OpenLayers.js b/pandora_console/include/javascript/OpenLayers/OpenLayers.js
index 344e0c05b1..2a51eb4102 100755
--- a/pandora_console/include/javascript/OpenLayers/OpenLayers.js
+++ b/pandora_console/include/javascript/OpenLayers/OpenLayers.js
@@ -1499,14 +1499,14 @@ this.features=OpenLayers.Util.removeItem(this.features,feature);feature.layer=nu
if(OpenLayers.Util.indexOf(this.selectedFeatures,feature)!=-1){OpenLayers.Util.removeItem(this.selectedFeatures,feature);}
if(notify){this.events.triggerEvent("featureremoved",{feature:feature});}}
if(notify){this.events.triggerEvent("featuresremoved",{features:features});}},destroyFeatures:function(features,options){var all=(features==undefined);if(all){features=this.features;}
-if(features){this.removeFeatures(features,options);for(var i=features.length-1;i>=0;i--){features[i].destroy();}}},drawFeature:function(feature,style){if(!this.drawn){return}
+if(features){this.removeFeatures(features,options);for(var i=features.length-1;i>=0;i--){features[i].destroy();}}},drawFeature:function(feature,style){if(!this.drawn){return;}
if(typeof style!="object"){if(!style&&feature.state===OpenLayers.State.DELETE){style="delete";}
var renderIntent=style||feature.renderIntent;style=feature.style||this.style;if(!style){style=this.styleMap.createSymbolizer(feature,renderIntent);}}
if(!this.renderer.drawFeature(feature,style)){this.unrenderedFeatures[feature.id]=feature;}else{delete this.unrenderedFeatures[feature.id];};},eraseFeatures:function(features){this.renderer.eraseFeatures(features);},getFeatureFromEvent:function(evt){if(!this.renderer){OpenLayers.Console.error(OpenLayers.i18n("getFeatureError"));return null;}
var featureId=this.renderer.getFeatureIdFromEvent(evt);return this.getFeatureById(featureId);},getFeatureById:function(featureId){var feature=null;for(var i=0,len=this.features.length;i0)){maxExtent=new OpenLayers.Bounds();for(var i=0,len=this.features.length;i=0;--i){feature=this.features[i];if(!options||options.except!=feature){this.unselect(feature);}}},selectSingle:function(evt){OpenLayers.Element.addClass(this.map.viewPortDiv,"olCursorWait");var bounds=this.pixelToBounds(evt.xy);this.setModifiers(evt);this.request(bounds,{single:true});},selectBox:function(position){if(position instanceof OpenLayers.Bounds){var minXY=this.map.getLonLatFromPixel(new OpenLayers.Pixel(position.left,position.bottom));var maxXY=this.map.getLonLatFromPixel(new OpenLayers.Pixel(position.right,position.top));var bounds=new OpenLayers.Bounds(minXY.lon,minXY.lat,maxXY.lon,maxXY.lat);this.setModifiers(this.handlers.box.dragHandler.evt);this.request(bounds);}},selectHover:function(evt){var bounds=this.pixelToBounds(evt.xy);this.request(bounds,{single:true,hover:true});},cancelHover:function(){if(this.hoverResponse){this.protocol.abort(this.hoverResponse);this.hoverResponse=null;}},request:function(bounds,options){options=options||{};var filter=new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.BBOX,value:bounds});var response=this.protocol.read({maxFeatures:options.single==true?this.maxFeatures:undefined,filter:filter,callback:function(result){if(result.code==1){if(result.features.length){if(options.single==true){this.selectBestFeature(result.features,bounds.getCenterLonLat(),options);}else{this.select(result.features);}}else if(options.hover){this.hoverSelect();}else{this.events.triggerEvent("clickout");if(this.clickout){this.unselectAll();}}}
diff --git a/pandora_console/include/javascript/jquery.ui.datepicker.js b/pandora_console/include/javascript/jquery.ui.datepicker.js
index a692541d94..129c863aed 100644
--- a/pandora_console/include/javascript/jquery.ui.datepicker.js
+++ b/pandora_console/include/javascript/jquery.ui.datepicker.js
@@ -1,2 +1 @@
-
-(function($){function Datepicker(){this.debug=false;this._nextId=0;this._inst=[];this._curInst=null;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"<Prev",prevStatus:"Show the previous month",nextText:"Next>",nextStatus:"Show the next month",currentText:"Today",currentStatus:"Show the current month",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"yy-mm-dd",firstDay:0,initStatus:"Select a date",isRTL:false};this._defaults={showOn:"focus",showAnim:"show",defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,changeMonth:true,changeYear:true,yearRange:"-10:+10",changeFirstDay:true,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,speed:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onClose:null,numberOfMonths:1,stepMonths:1,rangeSelect:false,rangeSeparator:" - "};$.extend(this._defaults,this.regional[""]);this._datepickerDiv=$('');}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments);}},_register:function(inst){var id=this._nextId++;this._inst[id]=inst;return id},_getInst:function(id){return this._inst[id]||id},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue;}}}var nodeName=target.nodeName.toLowerCase();var instSettings=(inlineSettings?$.extend(settings||{},inlineSettings||{}):settings);if(nodeName=="input"){var inst=(inst&&!inlineSettings?inst:new DatepickerInstance(instSettings,false));this._connectDatepicker(target,inst)}else{if(nodeName=="div"||nodeName=="span"){var inst=new DatepickerInstance(instSettings,true);this._inlineDatepicker(target,inst)}}},_destroyDatepicker:function(target){var nodeName=target.nodeName.toLowerCase();var calId=target._calId;target._calId=null;var $target=$(target);if(nodeName=="input"){$target.siblings(".ui-datepicker-append").replaceWith("").end().siblings(".ui-datepicker-trigger").replaceWith("").end().removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress);var wrapper=$target.parents(".ui-datepicker-wrap");if(wrapper){wrapper.replaceWith(wrapper.html());}}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty();}}if($("input[_calId="+calId+"]").length==0){this._inst[calId]=null;}},_enableDatepicker:function(target){target.disabled=false;$(target).siblings("button.ui-datepicker-trigger").each(function(){this.disabled=false}).end().siblings("img.ui-datepicker-trigger").css({opacity:"1.0",cursor:""});this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value);})},_disableDatepicker:function(target){target.disabled=true;$(target).siblings("button.ui-datepicker-trigger").each(function(){this.disabled=true}).end().siblings("img.ui-datepicker-trigger").css({opacity:"0.5",cursor:"default"});this._disabledInputs=$.map($.datepicker._disabledInputs,function(value){return(value==target?null:value);});this._disabledInputs[$.datepicker._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i-1);},_connectDatepicker:function(target,inst){var input=$(target);if(input.is("."+this.markerClassName)){return }var appendText=inst._get("appendText");var isRTL=inst._get("isRTL");if(appendText){if(isRTL){input.before(''+appendText)}else{input.after(''+appendText);}}var showOn=inst._get("showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){input.wrap('');var buttonText=inst._get("buttonText");var buttonImage=inst._get("buttonImage");var trigger=$(inst._get("buttonImageOnly")?$("").addClass("ui-datepicker-trigger").attr({src:buttonImage,alt:buttonText,title:buttonText}):$("
\n";h.foot="\n