diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 1fc19b4e..8ba47a7f 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -38,7 +38,7 @@ } }; - zNodes = ; + zNodes = ; function onClickzTree(e, treeId, treeNode, clickFlag) { var urlReQuery = ""; @@ -55,12 +55,12 @@ sObj.append(addStr); var btn = $("#addBtn_" + treeNode.id); if (btn) - btn.bind("click", function () { + btn.bind("click", function() { var urlReQuery = ""; $.ajax({ type: "get", url: urlReQuery + '/' + treeNode.id, - success: function (data, textStatus) { + success: function(data, textStatus) { var dataArray = $.parseJSON(data); //JSON.parse(data); for (var key in dataArray) { if (dataArray[key].name == 'ok') { @@ -76,7 +76,7 @@ } } }, - error: function () { + error: function() { alert('发生错误,请联系YCC'); } }); @@ -133,10 +133,10 @@ 'pid': treeNodes[0].getParentNode().id, 'ids': idStr }, - success: function (data, textStatus) { + success: function(data, textStatus) { return true; }, - error: function () { + error: function() { $.modaldialog.error('发生错误,请联系YCC'); return false; } @@ -158,11 +158,11 @@ 'is_id': is_id, 'is_parent_id': is_parent_id }, - success: function (data, textStatus) { + success: function(data, textStatus) { window.location.href = "/" + is_id; return true; }, - error: function () { + error: function() { $.modaldialog.error('发生错误,请联系YCC'); return false; } @@ -178,12 +178,12 @@ $.ajax({ type: "get", url: urlReQuery + '/' + is_id, - success: function (data, textStatus) { + success: function(data, textStatus) { var dataArray = $.parseJSON(data); //JSON.parse(data); for (var key in dataArray) { if (dataArray[key].name == 'ok') { $.modaldialog.success('删除成功!,程序正在刷新...'); - setTimeout(function () { + setTimeout(function() { window.location.href = dataArray[key].value; }, 500); return true; @@ -193,7 +193,7 @@ } } }, - error: function () { + error: function() { $.modaldialog.error('发生错误,请联系YCC'); return false; } @@ -270,7 +270,7 @@ 'product_type': product_type, 'product_name': product_name }, - success: function (data, textStatus) { + success: function(data, textStatus) { for (var key in data) { if (data[key].name == 'ok') { $("#product_list_ul").html(data[key].value); @@ -278,7 +278,7 @@ } } }, - error: function () { + error: function() { $.modaldialog.error('发生错误,请联系YCC'); return false; } @@ -307,7 +307,7 @@ $.ajax({ type: "get", url: urlReQuery + '/' + area_id + '/' + lsi_sn, - success: function (data, textStatus) { + success: function(data, textStatus) { var dataArray = $.parseJSON(data); //JSON.parse(data); for (var key in dataArray) { if (dataArray[key].name == 'ok') { @@ -319,7 +319,7 @@ } } }, - error: function () { + error: function() { $.modaldialog.error('发生错误,请联系YCC'); return false; } @@ -354,19 +354,19 @@ return true; } -//JH 跳转测试页面 -function goto_jhtest_page() { - var site_url = 'https://proxy-www.japanhighlights.com'; - $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val()); - return true; -} + //JH 跳转测试页面 + function goto_jhtest_page() { + var site_url = 'https://proxy-www.japanhighlights.com'; + $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val()); + return true; + } -//GH 跳转测试页面 -function goto_ghtest_page() { - var site_url = 'https://proxy-www.globalhighlights.com'; - $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val()); - return true; -} + //GH 跳转测试页面 + function goto_ghtest_page() { + var site_url = 'https://proxy-www.globalhighlights.com'; + $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val()); + return true; + } function goto_test_page_pgr() { var site_url = 'http://192.155.250.125:8011/guide.php/travelguide/guide/?static_html_url='; @@ -391,12 +391,12 @@ function goto_ghtest_page() { $(elem).popover({ 'container': container, 'title': 'title', - 'content': function () { }, + 'content': function() {}, 'placement': 'bottom', 'trigger': 'click', 'template': '
' }); - $(elem).on('shown.bs.popover', function () { + $(elem).on('shown.bs.popover', function() { var right_offset = document.documentElement["clientWidth"] - $(elem)[0].getBoundingClientRect().right; if (right_offset < 300) { $(elem).next(".recommend_info_popover").attr('style', "left:" + (-(400 - right_offset)) + @@ -410,16 +410,16 @@ function goto_ghtest_page() { var url = ""; $.post(url, { "ic_id_list": ic_id_list - }, function (html) { + }, function(html) { $("#recommended_list").html(html); }); - }).on('hidden.bs.popover', function () { - setTimeout(function () { + }).on('hidden.bs.popover', function() { + setTimeout(function() { $(".recommend_info_popover").remove(); }, 0); }); - $("body").on("click", "#btn_search_article_list", function () { + $("body").on("click", "#btn_search_article_list", function() { $("#recommend_list").html('
');
var url = "";
var key = $("#article_key").val();
@@ -427,27 +427,27 @@ function goto_ghtest_page() {
$.post(url, {
'keywords': key,
"ic_id_list": ic_id_list
- }, function (html) {
+ }, function(html) {
$("#recommend_list").html(html);
});
});
}
//初始化树形菜单
- $(document).ready(function () {
- $("#history_log_toggle").hover(function () {
+ $(document).ready(function() {
+ $("#history_log_toggle").hover(function() {
$(".history_log").css({
"display": "block"
});
- }, function () { });
- $(".history_log").hover(function () { },
- function () {
+ }, function() {});
+ $(".history_log").hover(function() {},
+ function() {
$(".history_log").css({
"display": "none"
});
});
- setTimeout(function () {
+ setTimeout(function() {
$("#treeDemo").css({
"overflow-y": "hidden"
});
@@ -464,7 +464,7 @@ function goto_ghtest_page() {
//}
}
//选择节点
- var node = zTree.getNodeByParam("id", is_id ?>);
+ var node = zTree.getNodeByParam("id", is_id ?>);
zTree.selectNode(node);
change_seo_count('ic_seo_title');
@@ -481,20 +481,20 @@ function goto_ghtest_page() {
var editor;
- window.onload = function () {
+ window.onload = function() {
editor = CKEDITOR.replace("ic_content", {
width: '100%',
height: '560px',
readOnly: false,
-
- allowedContent: true,
- autoParagraph: false,
-
+
+ allowedContent: true,
+ autoParagraph: false,
+
filebrowserBrowseUrl: '/wysiwyg/ckfinder/ckfinder.php?sitecode=config->item('site_code'); ?>',
filebrowserUploadUrl: '/wysiwyg/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=image',
contentsCss: 'config->item("css_source_" . $this->config->item("site_code")); ?>'
- });
-};
+ });
+ };
function switch_preview_tree() {
if ($("#preview_box").is(":hidden")) {
@@ -526,28 +526,28 @@ function goto_ghtest_page() {
}
//新闻日历
- $(function () {
+ $(function() {
$("#meta_news_createdate").datepicker({
showButtonPanel: true
});
})
//节庆开始日期
- $(function () {
+ $(function() {
$("#meta_festival_start").datepicker({
showButtonPanel: true
});
})
//节庆结束日期
- $(function () {
+ $(function() {
$("#meta_festival_end").datepicker({
showButtonPanel: true
});
})
//团购结束时间
- $(function () {
+ $(function() {
$("#meta_groupon_end").datepicker({
showButtonPanel: true
});
@@ -576,7 +576,7 @@ function goto_ghtest_page() {
'id': id,
'oldurl': oldurl
},
- success: function (data, textStatus) {
+ success: function(data, textStatus) {
if (data.status == "ok") {
//alert(data.id+","+data.oldUrl);
alert("导入成功,关闭此对话框,等页面自动刷新后检查数据是否已拷贝。如果没有,请手动刷新此页面查看更新!");
@@ -585,7 +585,7 @@ function goto_ghtest_page() {
alert("导入失败,检查旧URL对应的信息是否存在,或者此新信息是否存在!");
}
},
- error: function () {
+ error: function() {
$.modaldialog.error('发生错误,请联系YCC');
return false;
}
@@ -602,15 +602,12 @@ function goto_ghtest_page() {