|
|
@ -5,7 +5,7 @@ var sankoreLang = { |
|
|
|
second_desc: "Even numbers",
|
|
|
|
second_desc: "Even numbers",
|
|
|
|
enter: "Enter your category name here ...", |
|
|
|
enter: "Enter your category name here ...", |
|
|
|
add: "Add new block", |
|
|
|
add: "Add new block", |
|
|
|
wgt_name: "Order images", |
|
|
|
wgt_name: "Categorize images", |
|
|
|
reload: "Reload", |
|
|
|
reload: "Reload", |
|
|
|
slate: "Wood", |
|
|
|
slate: "Wood", |
|
|
|
pad: "Pad", |
|
|
|
pad: "Pad", |
|
|
@ -160,8 +160,8 @@ function start(){ |
|
|
|
|
|
|
|
|
|
|
|
$("<div class='close_cont'>").appendTo(container); |
|
|
|
$("<div class='close_cont'>").appendTo(container); |
|
|
|
container.find(".imgs_cont").each(function(){ |
|
|
|
container.find(".imgs_cont").each(function(){ |
|
|
|
$("<button class='del_category'>-</button>").appendTo($(this)); |
|
|
|
$("<button class='del_category'></button>").appendTo($(this)); |
|
|
|
$("<button class='add_category'>+</button>").appendTo($(this)); |
|
|
|
$("<button class='add_category'></button>").appendTo($(this)); |
|
|
|
$(this).attr("ondragenter", "return false;") |
|
|
|
$(this).attr("ondragenter", "return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") |
|
|
@ -558,8 +558,8 @@ function addCategory(obj){ |
|
|
|
$("<input type='hidden' name='count' value=''/>").appendTo(imgs_container);
|
|
|
|
$("<input type='hidden' name='count' value=''/>").appendTo(imgs_container);
|
|
|
|
var tmp_div = $("<div style='width: 100%; overflow: hidden;'>").appendTo(imgs_container); |
|
|
|
var tmp_div = $("<div style='width: 100%; overflow: hidden;'>").appendTo(imgs_container); |
|
|
|
$("<input type='text' class='cat_desc' value='" + sankoreLang.enter + "'>").appendTo(tmp_div);
|
|
|
|
$("<input type='text' class='cat_desc' value='" + sankoreLang.enter + "'>").appendTo(tmp_div);
|
|
|
|
$("<button class='del_category'>-</button>").appendTo(imgs_container); |
|
|
|
$("<button class='del_category'></button>").appendTo(imgs_container); |
|
|
|
$("<button class='add_category'>+</button>").appendTo(imgs_container); |
|
|
|
$("<button class='add_category'></button>").appendTo(imgs_container); |
|
|
|
imgs_container.attr("ondragenter", "return false;") |
|
|
|
imgs_container.attr("ondragenter", "return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") |
|
|
@ -579,8 +579,8 @@ function addContainer(){ |
|
|
|
$("<input type='hidden' name='count' value=''/>").appendTo(imgs_container);
|
|
|
|
$("<input type='hidden' name='count' value=''/>").appendTo(imgs_container);
|
|
|
|
var tmp_div = $("<div style='width: 100%; overflow: hidden;'>").appendTo(imgs_container); |
|
|
|
var tmp_div = $("<div style='width: 100%; overflow: hidden;'>").appendTo(imgs_container); |
|
|
|
$("<input type='text' class='cat_desc' value='" + sankoreLang.enter + "'/>").appendTo(tmp_div);
|
|
|
|
$("<input type='text' class='cat_desc' value='" + sankoreLang.enter + "'/>").appendTo(tmp_div);
|
|
|
|
$("<button class='del_category'>-</button>").appendTo(imgs_container); |
|
|
|
$("<button class='del_category'></button>").appendTo(imgs_container); |
|
|
|
$("<button class='add_category'>+</button>").appendTo(imgs_container); |
|
|
|
$("<button class='add_category'></button>").appendTo(imgs_container); |
|
|
|
imgs_container.attr("ondragenter", "return false;") |
|
|
|
imgs_container.attr("ondragenter", "return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"#e6f6ff\"); return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"#e6f6ff\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"#c3e9ff\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"#c3e9ff\"); return false;") |
|
|
@ -787,7 +787,6 @@ function onDropTarget(obj, event) { |
|
|
|
} |
|
|
|
} |
|
|
|
}
|
|
|
|
}
|
|
|
|
} |
|
|
|
} |
|
|
|
exportData(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
alert ("Your browser does not support the dataTransfer object."); |
|
|
|
alert ("Your browser does not support the dataTransfer object."); |
|
|
|