Fix incorrect relative URLs in other JS libraries #1601

This commit is contained in:
Kijin Sung 2021-02-05 11:50:13 +09:00
parent 5c0c4a3f76
commit 9160b867aa
4 changed files with 8 additions and 8 deletions

View file

@ -674,7 +674,7 @@ function _displayMultimedia(src, width, height, options) {
html = '<img src="'+src+'" width="'+width+'" height="'+height+'" class="thumb" />';
} else {
html = '<span style="position:relative;background:black;width:' + width + 'px;height:' + height + 'px" class="thumb">';
html += '<img style="width:24px;height:24px;position:absolute;left:50%;top:50%;border:0;margin:-12px 0 0 -12px;padding:0" src="./common/img/play.png" alt="" />';
html += '<img style="width:24px;height:24px;position:absolute;left:50%;top:50%;border:0;margin:-12px 0 0 -12px;padding:0" src="' + request_uri + 'common/img/play.png" alt="" />';
html += '</span>';
}
return html;

View file

@ -9,7 +9,7 @@ jQuery(function($){
// 컬러 피커가 내장된 브라우저에서는 내장된 컬러피커 이용
if ( $("input.rx-spectrum").prop('type') != 'color' ) {
$.getScript(request_uri + "./common/js/plugins/spectrum/i18n/jquery.spectrum-"+ xe.current_lang.replace("jp", "ja").toLowerCase() +".js", function() {
$.getScript(request_uri + "common/js/plugins/spectrum/i18n/jquery.spectrum-"+ xe.current_lang.replace("jp", "ja").toLowerCase() +".js", function() {
var settings = {
showInput: true,
allowEmpty:true,

View file

@ -182,7 +182,7 @@ $.fn.simpleTree = function(opt){
$('body').append('<div id="drag_container"><ul></ul></div>');
$('#drag_container').hide().css({opacity:'0.8'});
$('#drag_container >ul').append(cloneNode);
$("<img>").attr({id : "tree_plus",src : "./common/js/plugins/ui.tree/images/plus.gif"}).css({width: "7px",display: "block",position: "absolute",left : "5px",top: "5px", display:'none'}).appendTo("body");
$("<img>").attr({id: "tree_plus", src: request_uri + "common/js/plugins/ui.tree/images/plus.gif"}).css({width: "7px",display: "block",position: "absolute",left : "5px",top: "5px", display:'none'}).appendTo("body");
$(document).bind("mousemove", {LI:LI}, TREE.dragStart).bind("mouseup",TREE.dragEnd);
}
return false;
@ -258,19 +258,19 @@ $.fn.simpleTree = function(opt){
if(parent.className.indexOf('folder-close')>=0 && ajaxChildSize==0)
{
if(isrc.indexOf('minus')!=-1)$("#tree_plus").attr('src','./common/js/plugins/ui.tree/images/plus.gif');
if(isrc.indexOf('minus')!=-1)$("#tree_plus").attr('src', request_uri + 'common/js/plugins/ui.tree/images/plus.gif');
$("#tree_plus").css({"left": screenScroll.x, "top": screenScroll.y}).show();
dragDropTimer = setTimeout(function(){
parent.className = parent.className.replace('close','open');
$('>ul',parent).show();
}, 700);
}else if(parent.className.indexOf('folder')>=0 && ajaxChildSize==0){
if(isrc.indexOf('minus')!=-1)$("#tree_plus").attr('src','./common/js/plugins/ui.tree/images/plus.gif');
if(isrc.indexOf('minus')!=-1)$("#tree_plus").attr('src', request_uri + 'common/js/plugins/ui.tree/images/plus.gif');
$("#tree_plus").css({"left": screenScroll.x, "top": screenScroll.y}).show();
}else if(parent.className.indexOf('folder-close')>=0 && ajaxChildSize>0)
{
mouseMoved = false;
$("#tree_plus").attr('src','./common/js/plugins/ui.tree/images/minus.gif');
$("#tree_plus").attr('src', request_uri + 'common/js/plugins/ui.tree/images/minus.gif');
$("#tree_plus").css({"left": screenScroll.x, "top": screenScroll.y}).show();
$('>ul',parent).show();
@ -280,7 +280,7 @@ $.fn.simpleTree = function(opt){
TREE.setAjaxNodes(ajaxChild,parent.id, function(){
parent.className = parent.className.replace('close','open');
mouseMoved = true;
$("#tree_plus").attr('src','./common/js/plugins/ui.tree/images/plus.gif');
$("#tree_plus").attr('src', request_uri + 'common/js/plugins/ui.tree/images/plus.gif');
$("#tree_plus").css({"left": screenScroll.x, "top": screenScroll.y}).show();
});

View file

@ -3,7 +3,7 @@
* @author MinSoo Kim <misol.kr@gmail.com>
**/
if(typeof current_lang !== "undefined" && current_lang !== 'en') {
jQuery.getScript(request_uri + "./common/js/plugins/ui/i18n/datepicker-"+ current_lang.replace("jp", "ja") +".js", function() {
jQuery.getScript(request_uri + "common/js/plugins/ui/i18n/datepicker-"+ current_lang.replace("jp", "ja") +".js", function() {
var default_option = {
dateFormat:'yy-mm-dd'
};