[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"dantek","theme_token":"mHNemnAZRgNZf91R_FFijWJIh23Q-Jt1ZpvAQSc4ZY0"},"colorbox":{"opacity":"0.85","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"Zav\u0159\u00edt","maxWidth":"98%","maxHeight":"98%","fixed":true,"mobiledetect":true,"mobiledevicewidth":"480px"}},"merge":true},{"command":"modal_display","title":"Vyberte r\u00e1m","output":"\u003Cdiv id=\u0022thumbnail_load_info\u0022\u003EVytv\u00e1\u0159\u00ed se n\u00e1hled...\u003C\/div\u003E\n\t\t\t\t\t\t\t\t\t\t\u003Cdiv class=\u0022img-thumbnail-canvas\u0022\u003E\n\t\t\t\t\t\t\t\t\t\t\t\u003Cimg id=\u0022thumbnail\u0022\/\u003E\n\t\t\t\t\t\t\t\t\t\t\u003C\/div\u003E\n\t\t\t\t\t\t\t\t\t\t\u003Cscript\u003E\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar filename = jQuery(\u0027input[name=original_filename]\u0027).val();\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar x = selection[0];\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar y = selection[1];\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar w = selection[2] - selection[0];\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar h = selection[3] - selection[1];\n\t \/\/ Frame selected\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(frame_nid){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar params = \u0027filename=\u0027 + filename + \u0027\u0026x=\u0027 + x + \u0027\u0026y=\u0027 + y + \u0027\u0026w=\u0027 + w + \u0027\u0026h=\u0027 + h + \u0027\u0026dim_width=\u0027 + dim_width + \u0027\u0026dim_height=\u0027 + dim_height + \u0027\u0026frame_margin_cm=\u0027 + frame_margin_cm + \u0027\u0026rotation=\u0027 + rotation + \u0027\u0026product_nid=\u0027 + jQuery(\u0027input[name=product_nid]\u0027).val();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery.post(\u0027\/thumb_create\u0027,params,function(thumb_file){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthumb_created = 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td = new Date();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar params = \u0027image_filename=\u0027 + filename + \u0027\u0026frame_nid=\u0027 + frame_nid + \u0027\u0026dim_width=\u0027 + dim_width + \u0027\u0026dim_height=\u0027 + dim_height;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery.post(\u0027\/frame_add\u0027,params,function(thumb_file){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td = new Date();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\u0027#thumbnail\u0027).attr(\u0027src\u0027,\u0027\/\u0027 + thumb_file + \u0027?\u0027 + d.getTime());\n\t jQuery(\u0027#thumbnail_load_info\u0027).hide();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t \/\/ Frame not selected\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar params = \u0027filename=\u0027 + filename + \u0027\u0026x=\u0027 + x + \u0027\u0026y=\u0027 + y + \u0027\u0026w=\u0027 + w + \u0027\u0026h=\u0027 + h + \u0027\u0026dim_width=\u0027 + dim_width + \u0027\u0026dim_height=\u0027 + dim_height + \u0027\u0026frame_margin_cm=\u0027 + frame_margin_cm + \u0027\u0026rotation=\u0027 + rotation + \u0027\u0026product_nid=\u0027 + jQuery(\u0027input[name=product_nid]\u0027).val();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery.post(\u0027\/thumb_create\u0027,params,function(thumb_file){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthumb_created = 1;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td = new Date();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\u0027#thumbnail\u0027).attr(\u0027src\u0027,\u0027\/\u0027 + thumb_file + \u0027?\u0027 + d.getTime());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjQuery(\u0027#thumbnail_load_info\u0027).hide();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\u003C\/script\u003E"}]