git-svn-id: https://msi/svn/firstRepo/Management/trunk@49 0f545695-f87b-41b6-9a03-7f16563b5454
@@ -0,0 +1,2 @@
|
||||
CLIENT SECRET 40f7339e-0b9b-4d0e-86da-9da68903582a Copy
|
||||
CLIENT ID (DEVELOPMENT MODE)* a9874f8547d74b15b7c1eeed82541ea8
|
||||
@@ -9,6 +9,8 @@ define(['jquery', 'underscore', 'backbone', 'text!controls/window/windowTemplate
|
||||
height: "650px",
|
||||
margin_top: "50px",
|
||||
id: "",
|
||||
isModal: false,
|
||||
autoOpen: true,
|
||||
showCloseButton: true,
|
||||
resizable: true,
|
||||
content: "",
|
||||
@@ -17,6 +19,10 @@ define(['jquery', 'underscore', 'backbone', 'text!controls/window/windowTemplate
|
||||
|
||||
initialize : function (options) {
|
||||
this.data.title = options.title;
|
||||
if(options.isModal !== undefined)
|
||||
this.data.isModal = options.isModal;
|
||||
if(options.autoOpen !== undefined)
|
||||
this.data.autoOpen = options.autoOpen;
|
||||
if(options.width)
|
||||
this.data.width = options.width;
|
||||
if(options.height)
|
||||
@@ -30,7 +36,7 @@ define(['jquery', 'underscore', 'backbone', 'text!controls/window/windowTemplate
|
||||
if(options.resizable !== undefined)
|
||||
this.data.resizable = options.resizable;
|
||||
|
||||
this.data.id = this.id;
|
||||
this.data.id = options.id;
|
||||
//this.el is the root element of Backbone.View. By default, it is a div.
|
||||
//$el is cached jQuery object for the view's element.
|
||||
//append the compiled template into view div container
|
||||
@@ -44,18 +50,28 @@ define(['jquery', 'underscore', 'backbone', 'text!controls/window/windowTemplate
|
||||
this.$el.jqxWindow('setContent', content);
|
||||
},
|
||||
|
||||
open: function(){
|
||||
this.$el.jqxWindow('open');
|
||||
},
|
||||
|
||||
//render the content into div of view
|
||||
render: function(){
|
||||
var self = this;
|
||||
var elem = this.$el;
|
||||
this.$el.jqxWindow({
|
||||
title: this.data.title ,
|
||||
width: this.data.width,
|
||||
height: this.data.height,
|
||||
isModal: this.data.isModal,
|
||||
autoOpen: this.data.autoOpen,
|
||||
showCloseButton: this.data.showCloseButton,
|
||||
content: this.data.content,
|
||||
initContent: this.data.initContentFn
|
||||
});
|
||||
this.$el.on('close', function (event) { elem.remove(); });
|
||||
this.$el.on('close', function (event) {
|
||||
if(self.data.autoOpen)
|
||||
elem.remove();
|
||||
});
|
||||
//return to enable chained calls
|
||||
return this;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 453 B |
|
After Width: | Height: | Size: 265 B |
|
After Width: | Height: | Size: 295 B |
|
After Width: | Height: | Size: 455 B |
|
After Width: | Height: | Size: 556 B |
|
After Width: | Height: | Size: 186 B |
|
After Width: | Height: | Size: 187 B |
|
After Width: | Height: | Size: 187 B |
|
After Width: | Height: | Size: 184 B |
|
After Width: | Height: | Size: 187 B |
|
After Width: | Height: | Size: 187 B |
|
After Width: | Height: | Size: 185 B |
|
After Width: | Height: | Size: 185 B |
|
After Width: | Height: | Size: 185 B |
|
After Width: | Height: | Size: 183 B |
|
After Width: | Height: | Size: 185 B |
|
After Width: | Height: | Size: 185 B |
|
After Width: | Height: | Size: 533 B |
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 193 B |
@@ -492,6 +492,9 @@ input[type=text].jqx-input-android, input[type=password].jqx-input-android, .jqx
|
||||
.jqx-icon-calendar-android, .jqx-icon-calendar-hover-android, .jqx-icon-calendar-pressed-android {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-android, .jqx-icon-time-hover-android, .jqx-icon-time-pressed-android {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-calendar-cell-today-android {
|
||||
color: black;
|
||||
}
|
||||
@@ -502,4 +505,19 @@ input[type=text].jqx-input-android, input[type=password].jqx-input-android, .jqx
|
||||
background-image: url('images/icon-menu-minimized-white.png');
|
||||
}
|
||||
.jqx-file-upload-file-name-android{padding:3px;}
|
||||
.jqx-file-upload-file-row-android{ height: 40px;}
|
||||
.jqx-file-upload-file-row-android{ height: 40px;}
|
||||
.jqx-layout-android
|
||||
{
|
||||
background-color: #000;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-android
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-android
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-android, .jqx-scheduler-time-column-android, .jqx-scheduler-toolbar-details-android {
|
||||
color: white !important;
|
||||
}
|
||||
@@ -181,7 +181,7 @@
|
||||
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
.jqx-ribbon-header-vertical-arctic {
|
||||
.jqx-ribbon-header-vertical-arctic, .jqx-widget-header-vertical-arctic {
|
||||
background:#f0f0f0;
|
||||
background:-ms-linear-gradient(left, #f8f8f8 0%,#eaeaea 100%);
|
||||
background:linear-gradient(left, #f8f8f8 0%,#eaeaea 100%);
|
||||
@@ -524,4 +524,8 @@ input[type="text"].jqx-input-arctic:-ms-input-placeholder, input[type="text"].jq
|
||||
}
|
||||
.jqx-window-collapse-button-collapsed-arctic {
|
||||
margin-top: 0px;
|
||||
}
|
||||
.jqx-layout-arctic
|
||||
{
|
||||
background-color: #cccccc;
|
||||
}
|
||||
@@ -194,6 +194,10 @@ background: linear-gradient(top, #f87948 0%,#fb4e0b 4%,#f44501 11%,#e24000 19%,#
|
||||
.jqx-icon-calendar-black, .jqx-icon-calendar-hover-black, .jqx-icon-calendar-pressed-black {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-black, .jqx-icon-time-hover-black, .jqx-icon-time-pressed-black {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
|
||||
.jqx-icon-delete-black
|
||||
{
|
||||
background-image: url('images/icon-delete-white.png');
|
||||
@@ -224,3 +228,23 @@ background: linear-gradient(top, #f87948 0%,#fb4e0b 4%,#f44501 11%,#e24000 19%,#
|
||||
.jqx-editor-toolbar-icon-black {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-black
|
||||
{
|
||||
background-color: #000;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-black
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-black
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-black, .jqx-scheduler-time-column-black, .jqx-scheduler-toolbar-black
|
||||
{
|
||||
background: #35353A !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-black .jqx-scheduler-middle-cell-black, .jqx-scheduler-middle-cell-black {
|
||||
border-bottom-color: #35353A !important;
|
||||
}
|
||||
@@ -329,7 +329,11 @@
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.jqx-tree-item-arrow-collapse-blackberry {
|
||||
background-image: url('images/icon-right.png') !important;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.jqx-tree-item-arrow-collapse-rtl-blackberry, .jqx-tree-item-arrow-collapse-hover-rtl-blackberry {
|
||||
background-image: url(images/icon-left.png);
|
||||
}
|
||||
@@ -630,8 +634,23 @@ input[type=text].jqx-input-blackberry, input[type=password].jqx-input-blackberry
|
||||
.jqx-icon-calendar-pressed-blackberry {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-file-upload-blackberry .jqx-icon-arrow-up-blackberry {
|
||||
.jqx-icon-time-pressed-blackberry {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-file-upload-blackberry .jqx-icon-arrow-up-blackberry {
|
||||
background-image: url('images/icon-up-white.png');
|
||||
}
|
||||
.jqx-file-upload-file-name-blackberry{padding:3px;}
|
||||
.jqx-file-upload-file-row-blackberry{ height: 40px;}
|
||||
.jqx-layout-blackberry
|
||||
{
|
||||
background-color: #296b8e;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-blackberry
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-blackberry
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
@@ -921,3 +921,7 @@ input[type="password"].jqx-input-bootstrap:-ms-input-placeholder, input[type="pa
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.jqx-layout-bootstrap
|
||||
{
|
||||
background-color: #cccccc;
|
||||
}
|
||||
@@ -53,6 +53,9 @@
|
||||
.jqx-icon-calendar-pressed-classic {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-pressed-classic {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-grid-cell-classic.jqx-grid-cell-selected-classic>.jqx-grid-group-expand-classic {
|
||||
background-image: url('images/icon-down-white.png');
|
||||
background-repeat: no-repeat;
|
||||
@@ -72,4 +75,8 @@
|
||||
background-image: url('images/icon-down-white.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.jqx-layout-classic
|
||||
{
|
||||
background-color: #aaa;
|
||||
}
|
||||
@@ -52,6 +52,9 @@
|
||||
.jqx-icon-calendar-darkblue, .jqx-icon-calendar-hover-darkblue, .jqx-icon-calendar-pressed-darkblue {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-darkblue, .jqx-icon-time-hover-darkblue, .jqx-icon-time-pressed-darkblue {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-icon-delete-darkblue
|
||||
{
|
||||
background-image: url('images/icon-delete-white.png');
|
||||
@@ -128,3 +131,23 @@
|
||||
.jqx-editor-toolbar-icon-darkblue {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-darkblue
|
||||
{
|
||||
background-color: #004a73;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-darkblue
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-darkblue
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-darkblue, .jqx-scheduler-time-column-darkblue, .jqx-scheduler-toolbar-darkblue
|
||||
{
|
||||
background: #449bca !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-darkblue .jqx-scheduler-middle-cell-darkblue, .jqx-scheduler-middle-cell-darkblue {
|
||||
border-bottom-color: #449bca !important;
|
||||
}
|
||||
@@ -9,4 +9,8 @@
|
||||
.jqx-grid-cell-sort-alt-energyblue, .jqx-grid-cell-filter-alt-energyblue, .jqx-grid-cell-pinned-energyblue, .jqx-grid-cell-alt-energyblue, .jqx-grid-cell-sort-energyblue{ background-color:#e7eef8}
|
||||
.jqx-grid-cell-selected-energyblue{ background-color:#cfdde9 !important; color:#2b465e !important;}
|
||||
.jqx-grid-cell-hover-energyblue{ background-color:#cfdde9 !important;}
|
||||
.jqx-menu-vertical-energyblue{background: #e0e9f5;}
|
||||
.jqx-menu-vertical-energyblue{background: #e0e9f5;}
|
||||
.jqx-layout-energyblue
|
||||
{
|
||||
background-color: #a4bed4;
|
||||
}
|
||||
@@ -129,3 +129,10 @@ background: linear-gradient(left, #9cbbed 0%,#3a78dc 1%,#1543bb 100%);
|
||||
.jqx-icon-calendar-pressed-fresh {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-pressed-fresh {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-layout-fresh
|
||||
{
|
||||
background-color: #8e8e97;
|
||||
}
|
||||
@@ -251,4 +251,7 @@
|
||||
}
|
||||
.jqx-icon-calendar-pressed-glacier {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
}
|
||||
.jqx-icon-time-pressed-glacier {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
|
||||
@@ -63,6 +63,9 @@
|
||||
.jqx-icon-calendar-hover-highcontrast, .jqx-icon-calendar-pressed-highcontrast {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-highcontrast, .jqx-icon-time-hover-highcontrast, .jqx-icon-time-pressed-highcontrast {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-grid-cell-highcontrast.jqx-grid-cell-selected-highcontrast>.jqx-grid-group-expand-highcontrast,
|
||||
.jqx-grid-cell-highcontrast.jqx-grid-cell-hover-highcontrast>.jqx-grid-group-expand-highcontrast {
|
||||
background-image: url('images/icon-down-white.png');
|
||||
@@ -115,4 +118,8 @@
|
||||
.jqx-icon-plus-highcontrast
|
||||
{
|
||||
background-image: url(images/plus_white.png);
|
||||
}
|
||||
.jqx-layout-highcontrast
|
||||
{
|
||||
background-color: #000;
|
||||
}
|
||||
@@ -316,4 +316,8 @@
|
||||
}
|
||||
.jqx-icon-calendar-pressed-metro {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-layout-metro
|
||||
{
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
@@ -318,6 +318,9 @@
|
||||
.jqx-icon-calendar-metrodark, .jqx-icon-calendar-hover-metrodark, .jqx-icon-calendar-pressed-metrodark {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-metrodark, .jqx-icon-time-hover-metrodark, .jqx-icon-time-pressed-metrodark {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-icon-delete-metrodark
|
||||
{
|
||||
background-image: url('images/icon-delete-white.png');
|
||||
@@ -348,3 +351,23 @@
|
||||
.jqx-editor-toolbar-icon-metrodark {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-metrodark
|
||||
{
|
||||
background-color: #35353A;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-metrodark
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-metrodark
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-metrodark, .jqx-scheduler-time-column-metrodark, .jqx-scheduler-toolbar-metrodark
|
||||
{
|
||||
background: #35353A !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-metrodark .jqx-scheduler-middle-cell-metrodark, .jqx-scheduler-middle-cell-metrodark {
|
||||
border-bottom-color: #35353A !important;
|
||||
}
|
||||
@@ -763,3 +763,15 @@ input[type=text].jqx-input-mobile, input[type=password].jqx-input-mobile, .jqx-i
|
||||
}
|
||||
.jqx-file-upload-file-name-mobile{padding:3px;}
|
||||
.jqx-file-upload-file-row-mobile{ height: 40px;}
|
||||
.jqx-layout-mobile
|
||||
{
|
||||
background-color: #b2b2b2;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-mobile
|
||||
{
|
||||
background-image: url("images/pin-blue.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-mobile
|
||||
{
|
||||
background-image: url("images/pinned-blue.png");
|
||||
}
|
||||
@@ -255,4 +255,8 @@
|
||||
}
|
||||
|
||||
.jqx-switchbutton-wrapper-office {
|
||||
}
|
||||
.jqx-layout-office
|
||||
{
|
||||
background-color: #d4d4d4;
|
||||
}
|
||||
@@ -143,6 +143,9 @@ border-color:#FBB34E; }
|
||||
.jqx-icon-calendar-orange, .jqx-icon-calendar-hover-orange, .jqx-icon-calendar-pressed-orange {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-orange, .jqx-icon-time-hover-orange, .jqx-icon-time-pressed-orange {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-icon-delete-orange
|
||||
{
|
||||
background-image: url('images/icon-delete-white.png');
|
||||
@@ -173,3 +176,23 @@ border-color:#FBB34E; }
|
||||
.jqx-editor-toolbar-icon-orange {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-orange
|
||||
{
|
||||
background-color: #E48605;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-orange
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-orange
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-orange, .jqx-scheduler-time-column-orange, .jqx-scheduler-toolbar-orange
|
||||
{
|
||||
background: #E48605 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-orange .jqx-scheduler-middle-cell-orange, .jqx-scheduler-middle-cell-orange {
|
||||
border-bottom-color: #E48605 !important;
|
||||
}
|
||||
@@ -78,6 +78,16 @@
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.jqx-date-time-input-popup-shinyblack .jqx-icon-arrow-down-shinyblack {
|
||||
background-image: url('images/icon-down.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.jqx-date-time-input-popup-shinyblack .jqx-icon-arrow-up-shinyblack {
|
||||
background-image: url('images/icon-up.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.jqx-grid-cell-shinyblack.jqx-grid-cell-selected-shinyblack>.jqx-grid-group-expand-shinyblack,
|
||||
.jqx-grid-cell-shinyblack.jqx-grid-cell-hover-shinyblack>.jqx-grid-group-expand-shinyblack {
|
||||
@@ -112,6 +122,9 @@
|
||||
.jqx-icon-calendar-shinyblack, .jqx-icon-calendar-hover-shinyblack, .jqx-icon-calendar-pressed-shinyblack {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-shinyblack, .jqx-icon-time-hover-shinyblack, .jqx-icon-time-pressed-shinyblack {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-icon-delete-shinyblack
|
||||
{
|
||||
background-image: url('images/icon-delete-white.png');
|
||||
@@ -141,4 +154,24 @@
|
||||
}
|
||||
.jqx-editor-toolbar-icon-shinyblack {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-shinyblack
|
||||
{
|
||||
background-color: #000;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-shinyblack
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-shinyblack
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-shinyblack, .jqx-scheduler-time-column-shinyblack, .jqx-scheduler-toolbar-shinyblack
|
||||
{
|
||||
background: #35353A !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-shinyblack .jqx-scheduler-middle-cell-shinyblack, .jqx-scheduler-middle-cell-shinyblack {
|
||||
border-bottom-color: #35353A !important;
|
||||
}
|
||||
@@ -79,3 +79,7 @@
|
||||
.jqx-icon-calendar-hover-summer, .jqx-icon-calendar-pressed-summer {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-layout-summer
|
||||
{
|
||||
background-color: #cacaca;
|
||||
}
|
||||
@@ -165,9 +165,37 @@
|
||||
.jqx-icon-calendar-ui-darkness, .jqx-icon-calendar-hover-ui-darkness, .jqx-icon-calendar-pressed-ui-darkness {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-ui-darkness, .jqx-icon-time-hover-ui-darkness, .jqx-icon-time-pressed-ui-darkness {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-menu-minimized-button-ui-darkness {
|
||||
background-image: url('images/icon-menu-minimized-white.png');
|
||||
}
|
||||
.jqx-editor-toolbar-icon-ui-darkness {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-ui-darkness
|
||||
{
|
||||
background-color: #333;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-darkness
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-darkness
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-ui-darkness, .jqx-scheduler-time-column-ui-darkness, .jqx-scheduler-toolbar-ui-darkness
|
||||
{
|
||||
background: #333 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-ui-darkness .jqx-scheduler-middle-cell-ui-darkness, .jqx-scheduler-middle-cell-ui-darkness {
|
||||
border-bottom-color: #333 !important;
|
||||
}
|
||||
.jqx-docking-layout-group-floating-ui-darkness .jqx-window-header-ui-darkness
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -192,6 +192,9 @@
|
||||
.jqx-icon-calendar-ui-le-frog, .jqx-icon-calendar-hover-ui-le-frog, .jqx-icon-calendar-pressed-ui-le-frog {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-ui-le-frog, .jqx-icon-time-hover-ui-le-frog, .jqx-icon-time-pressed-ui-le-frog {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-icon-delete-ui-le-frog
|
||||
{
|
||||
background-image: url('images/icon-delete-white.png');
|
||||
@@ -222,3 +225,27 @@
|
||||
.jqx-editor-toolbar-icon-ui-le-frog {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-ui-le-frog
|
||||
{
|
||||
background-color: #3f7506;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-le-frog
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-le-frog
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-ui-le-frog, .jqx-scheduler-time-column-ui-le-frog, .jqx-scheduler-toolbar-ui-le-frog
|
||||
{
|
||||
background: #3f7506 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-ui-le-frog .jqx-scheduler-middle-cell-ui-le-frog, .jqx-scheduler-middle-cell-ui-le-frog {
|
||||
border-bottom-color: #3f7506 !important;
|
||||
}
|
||||
.jqx-docking-layout-group-floating-ui-le-frog .jqx-window-header-ui-le-frog
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
@@ -142,4 +142,20 @@
|
||||
background-image: url(images/icon-down.png);
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.jqx-layout-ui-lightness
|
||||
{
|
||||
background-color: #e78f08;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-lightness
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-lightness
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-docking-layout-group-floating .jqx-window-header-ui-lightness
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
@@ -159,4 +159,19 @@
|
||||
.jqx-scrollbar-ui-overcast .jqx-icon-arrow-down-ui-overcast{width: 16px; height: 16px; margin-left: auto;}
|
||||
.jqx-scrollbar-ui-overcast .jqx-icon-arrow-left-ui-overcast{width: 16px; height: 16px; position: relative; top: 50%; margin-top: -8px;}
|
||||
.jqx-scrollbar-ui-overcast .jqx-icon-arrow-right-ui-overcast{width: 16px; height: 16px; position: relative; top: 50%; margin-top: -8px;}
|
||||
|
||||
.jqx-layout-ui-overcast
|
||||
{
|
||||
background-color: #bbbbbb;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-overcast
|
||||
{
|
||||
background-image: url("images/pin-black.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-overcast
|
||||
{
|
||||
background-image: url("images/pinned-black.png");
|
||||
}
|
||||
.jqx-docking-layout-group-floating .jqx-window-header-ui-overcast
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
@@ -163,4 +163,21 @@ font-weight: bold;
|
||||
background-image: url('images/redmond/icon-last.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
.jqx-layout-ui-redmond
|
||||
{
|
||||
background-color: #4297d7;
|
||||
background-image: none;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-redmond
|
||||
{
|
||||
background-image: url("images/pin-lightblue.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-redmond
|
||||
{
|
||||
background-image: url("images/pinned-lightblue.png");
|
||||
}
|
||||
.jqx-docking-layout-group-floating .jqx-window-header-ui-redmond
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
@@ -146,3 +146,19 @@
|
||||
.jqx-scrollbar-ui-smoothness .jqx-icon-arrow-down-ui-smoothness{width: 16px; height: 16px; margin-left: auto;}
|
||||
.jqx-scrollbar-ui-smoothness .jqx-icon-arrow-left-ui-smoothness{width: 16px; height: 16px; position: relative; top: 50%; margin-top: -8px;}
|
||||
.jqx-scrollbar-ui-smoothness .jqx-icon-arrow-right-ui-smoothness{width: 16px; height: 16px; position: relative; top: 50%; margin-top: -8px;}
|
||||
.jqx-layout-ui-smoothness
|
||||
{
|
||||
background-color: #aaa;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-smoothness
|
||||
{
|
||||
background-image: url("images/pin-black.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-smoothness
|
||||
{
|
||||
background-image: url("images/pinned-black.png");
|
||||
}
|
||||
.jqx-docking-layout-group-floating .jqx-window-header-ui-smoothness
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
@@ -194,6 +194,34 @@
|
||||
.jqx-icon-calendar-ui-start, .jqx-icon-calendar-hover-ui-start, .jqx-icon-calendar-pressed-ui-start {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-ui-start, .jqx-icon-time-hover-ui-start, .jqx-icon-time-pressed-ui-start {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-editor-toolbar-icon-ui-start {
|
||||
background: url('images/html_editor_white.png') no-repeat;
|
||||
}
|
||||
.jqx-layout-ui-start
|
||||
{
|
||||
background-color: #4297d7;
|
||||
background-image: none;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-start
|
||||
{
|
||||
background-image: url("images/pin-lightblue.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-start
|
||||
{
|
||||
background-image: url("images/pinned-lightblue.png");
|
||||
}
|
||||
.jqx-scheduler-month-cell-ui-start, .jqx-scheduler-time-column-ui-start, .jqx-scheduler-toolbar-ui-start
|
||||
{
|
||||
background: #4297d7 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.jqx-widget-ui-start .jqx-scheduler-middle-cell-ui-start, .jqx-scheduler-middle-cell-ui-start {
|
||||
border-bottom-color: #4297d7 !important;
|
||||
}
|
||||
.jqx-docking-layout-group-floating-ui-start .jqx-window-header-ui-start
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
@@ -147,3 +147,20 @@
|
||||
.jqx-scrollbar-ui-sunny .jqx-icon-arrow-down-ui-sunny{width: 16px; height: 16px; margin-left: auto;}
|
||||
.jqx-scrollbar-ui-sunny .jqx-icon-arrow-left-ui-sunny{width: 16px; height: 16px; position: relative; top: 50%; margin-top: -8px;}
|
||||
.jqx-scrollbar-ui-sunny .jqx-icon-arrow-right-ui-sunny{width: 16px; height: 16px; position: relative; top: 50%; margin-top: -8px;}
|
||||
.jqx-layout-ui-sunny
|
||||
{
|
||||
background-color: #494437;
|
||||
background-image: none;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-ui-sunny
|
||||
{
|
||||
background-image: url("images/pin-yellow.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-ui-sunny
|
||||
{
|
||||
background-image: url("images/pinned-yellow.png");
|
||||
}
|
||||
.jqx-docking-layout-group-floating .jqx-window-header-ui-sunny
|
||||
{
|
||||
background-image: none;
|
||||
}
|
||||
@@ -311,3 +311,7 @@
|
||||
-webkit-border-radius: 100%;
|
||||
border-radius: 100%;
|
||||
}
|
||||
.jqx-layout-web
|
||||
{
|
||||
background-color: #b2b2b2;
|
||||
}
|
||||
@@ -464,6 +464,9 @@ border-color:#008a00; color: #fff; background-color:#008a00;
|
||||
.jqx-icon-calendar-windowsphone, .jqx-icon-calendar-hover-windowsphone, .jqx-icon-calendar-pressed-windowsphone {
|
||||
background-image: url('images/icon-calendar-white.png');
|
||||
}
|
||||
.jqx-icon-time-windowsphone, .jqx-icon-time-hover-windowsphone, .jqx-icon-time-pressed-windowsphone {
|
||||
background-image: url('images/icon-time-white.png');
|
||||
}
|
||||
.jqx-calendar-cell-today-windowsphone {
|
||||
color: black;
|
||||
}
|
||||
@@ -475,3 +478,19 @@ border-color:#008a00; color: #fff; background-color:#008a00;
|
||||
}
|
||||
.jqx-file-upload-file-name-windowsphone{padding:3px;}
|
||||
.jqx-file-upload-file-row-windowsphone{ height: 40px;}
|
||||
.jqx-layout-windowsphone
|
||||
{
|
||||
background-color: #35353A;
|
||||
}
|
||||
.jqx-layout-pseudo-window-pin-icon-windowsphone
|
||||
{
|
||||
background-image: url("images/pin-white.png");
|
||||
}
|
||||
.jqx-layout-pseudo-window-pinned-icon-windowsphone
|
||||
{
|
||||
background-image: url("images/pinned-white.png");
|
||||
}
|
||||
.jqx-scheduler-windowsphone, .jqx-scheduler-toolbar-windowsphone, .jqx-scheduler-time-column-windowsphone, .jqx-scheduler-toolbar-details-windowsphone {
|
||||
color: white !important;
|
||||
background: black !important;
|
||||
}
|
||||
@@ -1,36 +1,37 @@
|
||||
/*
|
||||
RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
|
||||
RequireJS 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(ba){function G(b){return"[object Function]"===K.call(b)}function H(b){return"[object Array]"===K.call(b)}function v(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function T(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function t(b,c){return fa.call(b,c)}function m(b,c){return t(b,c)&&b[c]}function B(b,c){for(var d in b)if(t(b,d)&&c(b[d],d))break}function U(b,c,d,e){c&&B(c,function(c,g){if(d||!t(b,g))e&&"object"===typeof c&&c&&!H(c)&&!G(c)&&!(c instanceof
|
||||
RegExp)?(b[g]||(b[g]={}),U(b[g],c,d,e)):b[g]=c});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function ca(b){throw b;}function da(b){if(!b)return b;var c=ba;v(b.split("."),function(b){c=c[b]});return c}function C(b,c,d,e){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=e;d&&(c.originalError=d);return c}function ga(b){function c(a,k,b){var f,l,c,d,e,g,i,p,k=k&&k.split("/"),h=j.map,n=h&&h["*"];if(a){a=a.split("/");l=a.length-1;j.nodeIdCompat&&
|
||||
Q.test(a[l])&&(a[l]=a[l].replace(Q,""));"."===a[0].charAt(0)&&k&&(l=k.slice(0,k.length-1),a=l.concat(a));l=a;for(c=0;c<l.length;c++)if(d=l[c],"."===d)l.splice(c,1),c-=1;else if(".."===d&&!(0===c||1==c&&".."===l[2]||".."===l[c-1])&&0<c)l.splice(c-1,2),c-=2;a=a.join("/")}if(b&&h&&(k||n)){l=a.split("/");c=l.length;a:for(;0<c;c-=1){e=l.slice(0,c).join("/");if(k)for(d=k.length;0<d;d-=1)if(b=m(h,k.slice(0,d).join("/")))if(b=m(b,e)){f=b;g=c;break a}!i&&(n&&m(n,e))&&(i=m(n,e),p=c)}!f&&i&&(f=i,g=p);f&&(l.splice(0,
|
||||
g,f),a=l.join("/"))}return(f=m(j.pkgs,a))?f:a}function d(a){z&&v(document.getElementsByTagName("script"),function(k){if(k.getAttribute("data-requiremodule")===a&&k.getAttribute("data-requirecontext")===i.contextName)return k.parentNode.removeChild(k),!0})}function e(a){var k=m(j.paths,a);if(k&&H(k)&&1<k.length)return k.shift(),i.require.undef(a),i.makeRequire(null,{skipMap:!0})([a]),!0}function n(a){var k,c=a?a.indexOf("!"):-1;-1<c&&(k=a.substring(0,c),a=a.substring(c+1,a.length));return[k,a]}function p(a,
|
||||
k,b,f){var l,d,e=null,g=k?k.name:null,j=a,p=!0,h="";a||(p=!1,a="_@r"+(K+=1));a=n(a);e=a[0];a=a[1];e&&(e=c(e,g,f),d=m(r,e));a&&(e?h=d&&d.normalize?d.normalize(a,function(a){return c(a,g,f)}):-1===a.indexOf("!")?c(a,g,f):a:(h=c(a,g,f),a=n(h),e=a[0],h=a[1],b=!0,l=i.nameToUrl(h)));b=e&&!d&&!b?"_unnormalized"+(O+=1):"";return{prefix:e,name:h,parentMap:k,unnormalized:!!b,url:l,originalName:j,isDefine:p,id:(e?e+"!"+h:h)+b}}function s(a){var k=a.id,b=m(h,k);b||(b=h[k]=new i.Module(a));return b}function q(a,
|
||||
k,b){var f=a.id,c=m(h,f);if(t(r,f)&&(!c||c.defineEmitComplete))"defined"===k&&b(r[f]);else if(c=s(a),c.error&&"error"===k)b(c.error);else c.on(k,b)}function w(a,b){var c=a.requireModules,f=!1;if(b)b(a);else if(v(c,function(b){if(b=m(h,b))b.error=a,b.events.error&&(f=!0,b.emit("error",a))}),!f)g.onError(a)}function x(){R.length&&(ha.apply(A,[A.length,0].concat(R)),R=[])}function y(a){delete h[a];delete V[a]}function F(a,b,c){var f=a.map.id;a.error?a.emit("error",a.error):(b[f]=!0,v(a.depMaps,function(f,
|
||||
d){var e=f.id,g=m(h,e);g&&(!a.depMatched[d]&&!c[e])&&(m(b,e)?(a.defineDep(d,r[e]),a.check()):F(g,b,c))}),c[f]=!0)}function D(){var a,b,c=(a=1E3*j.waitSeconds)&&i.startTime+a<(new Date).getTime(),f=[],l=[],g=!1,h=!0;if(!W){W=!0;B(V,function(a){var i=a.map,j=i.id;if(a.enabled&&(i.isDefine||l.push(a),!a.error))if(!a.inited&&c)e(j)?g=b=!0:(f.push(j),d(j));else if(!a.inited&&(a.fetched&&i.isDefine)&&(g=!0,!i.prefix))return h=!1});if(c&&f.length)return a=C("timeout","Load timeout for modules: "+f,null,
|
||||
f),a.contextName=i.contextName,w(a);h&&v(l,function(a){F(a,{},{})});if((!c||b)&&g)if((z||ea)&&!X)X=setTimeout(function(){X=0;D()},50);W=!1}}function E(a){t(r,a[0])||s(p(a[0],null,!0)).init(a[1],a[2])}function I(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!Y?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||Y)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function J(){var a;
|
||||
for(x();A.length;){a=A.shift();if(null===a[0])return w(C("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));E(a)}}var W,Z,i,L,X,j={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},h={},V={},$={},A=[],r={},S={},aa={},K=1,O=1;L={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?r[a.map.id]=a.exports:a.exports=r[a.map.id]={}},module:function(a){return a.module?
|
||||
a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m(j.config,a.map.id)||{}},exports:a.exports||(a.exports={})}}};Z=function(a){this.events=m($,a.id)||{};this.map=a;this.shim=m(j.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};Z.prototype={init:function(a,b,c,f){f=f||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=u(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=
|
||||
c;this.inited=!0;this.ignore=f.ignore;f.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=
|
||||
this.map.url;S[a]||(S[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var f=this.exports,l=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(G(l)){if(this.events.error&&this.map.isDefine||g.onError!==ca)try{f=i.execCb(c,l,b,f)}catch(d){a=d}else f=i.execCb(c,l,b,f);this.map.isDefine&&void 0===f&&((b=this.module)?f=b.exports:this.usingExports&&
|
||||
(f=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}else f=l;this.exports=f;if(this.map.isDefine&&!this.ignore&&(r[c]=f,g.onResourceLoad))g.onResourceLoad(i,this.map,this.depMaps);y(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=
|
||||
this.map,b=a.id,d=p(a.prefix);this.depMaps.push(d);q(d,"defined",u(this,function(f){var l,d;d=m(aa,this.map.id);var e=this.map.name,P=this.map.parentMap?this.map.parentMap.name:null,n=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(f.normalize&&(e=f.normalize(e,function(a){return c(a,P,!0)})||""),f=p(a.prefix+"!"+e,this.map.parentMap),q(f,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=m(h,f.id)){this.depMaps.push(f);
|
||||
if(this.events.error)d.on("error",u(this,function(a){this.emit("error",a)}));d.enable()}}else d?(this.map.url=i.nameToUrl(d),this.load()):(l=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),l.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];B(h,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),l.fromText=u(this,function(f,c){var d=a.name,e=p(d),P=M;c&&(f=c);P&&(M=!1);s(e);t(j.config,b)&&(j.config[d]=j.config[b]);try{g.exec(f)}catch(h){return w(C("fromtexteval",
|
||||
"fromText eval for "+b+" failed: "+h,h,[b]))}P&&(M=!0);this.depMaps.push(e);i.completeLoad(d);n([d],l)}),f.load(a.name,n,l,j))}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){V[this.map.id]=this;this.enabling=this.enabled=!0;v(this.depMaps,u(this,function(a,b){var c,f;if("string"===typeof a){a=p(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=m(L,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;q(a,"defined",u(this,function(a){this.defineDep(b,
|
||||
a);this.check()}));this.errback&&q(a,"error",u(this,this.errback))}c=a.id;f=h[c];!t(L,c)&&(f&&!f.enabled)&&i.enable(a,this)}));B(this.pluginMaps,u(this,function(a){var b=m(h,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){v(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:j,contextName:b,registry:h,defined:r,urlFetched:S,defQueue:A,Module:Z,makeModuleMap:p,
|
||||
nextTick:g.nextTick,onError:w,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=j.shim,c={paths:!0,bundles:!0,config:!0,map:!0};B(a,function(a,b){c[b]?(j[b]||(j[b]={}),U(j[b],a,!0,!0)):j[b]=a});a.bundles&&B(a.bundles,function(a,b){v(a,function(a){a!==b&&(aa[a]=b)})});a.shim&&(B(a.shim,function(a,c){H(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);b[c]=a}),j.shim=b);a.packages&&v(a.packages,function(a){var b,
|
||||
a="string"===typeof a?{name:a}:a;b=a.name;a.location&&(j.paths[b]=a.location);j.pkgs[b]=a.name+"/"+(a.main||"main").replace(ia,"").replace(Q,"")});B(h,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=p(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ba,arguments));return b||a.exports&&da(a.exports)}},makeRequire:function(a,e){function j(c,d,m){var n,q;e.enableBuildCallback&&(d&&G(d))&&(d.__requireJsBuild=
|
||||
!0);if("string"===typeof c){if(G(d))return w(C("requireargs","Invalid require call"),m);if(a&&t(L,c))return L[c](h[a.id]);if(g.get)return g.get(i,c,a,j);n=p(c,a,!1,!0);n=n.id;return!t(r,n)?w(C("notloaded",'Module name "'+n+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[n]}J();i.nextTick(function(){J();q=s(p(null,a));q.skipMap=e.skipMap;q.init(c,d,m,{enabled:!0});D()});return j}e=e||{};U(j,{isBrowser:z,toUrl:function(b){var d,e=b.lastIndexOf("."),k=b.split("/")[0];if(-1!==
|
||||
e&&(!("."===k||".."===k)||1<e))d=b.substring(e,b.length),b=b.substring(0,e);return i.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return t(r,p(b,a,!1,!0).id)},specified:function(b){b=p(b,a,!1,!0).id;return t(r,b)||t(h,b)}});a||(j.undef=function(b){x();var c=p(b,a,!0),e=m(h,b);d(b);delete r[b];delete S[c.url];delete $[b];T(A,function(a,c){a[0]===b&&A.splice(c,1)});e&&(e.events.defined&&($[b]=e.events),y(b))});return j},enable:function(a){m(h,a.id)&&s(a).enable()},completeLoad:function(a){var b,
|
||||
c,d=m(j.shim,a)||{},g=d.exports;for(x();A.length;){c=A.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);E(c)}c=m(h,a);if(!b&&!t(r,a)&&c&&!c.inited){if(j.enforceDefine&&(!g||!da(g)))return e(a)?void 0:w(C("nodefine","No define call for "+a,null,[a]));E([a,d.deps||[],d.exportsFn])}D()},nameToUrl:function(a,b,c){var d,e,h;(d=m(j.pkgs,a))&&(a=d);if(d=m(aa,a))return i.nameToUrl(d,b,c);if(g.jsExtRegExp.test(a))d=a+(b||"");else{d=j.paths;a=a.split("/");for(e=a.length;0<e;e-=1)if(h=a.slice(0,
|
||||
e).join("/"),h=m(d,h)){H(h)&&(h=h[0]);a.splice(0,e,h);break}d=a.join("/");d+=b||(/^data\:|\?/.test(d)||c?"":".js");d=("/"===d.charAt(0)||d.match(/^[\w\+\.\-]+:/)?"":j.baseUrl)+d}return j.urlArgs?d+((-1===d.indexOf("?")?"?":"&")+j.urlArgs):d},load:function(a,b){g.load(i,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ja.test((a.currentTarget||a.srcElement).readyState))N=null,a=I(a),i.completeLoad(a.id)},onScriptError:function(a){var b=I(a);if(!e(b.id))return w(C("scripterror",
|
||||
"Script error for: "+b.id,a,[b.id]))}};i.require=i.makeRequire();return i}var g,x,y,D,I,E,N,J,s,O,ka=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,la=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,Q=/\.js$/,ia=/^\.\//;x=Object.prototype;var K=x.toString,fa=x.hasOwnProperty,ha=Array.prototype.splice,z=!!("undefined"!==typeof window&&"undefined"!==typeof navigator&&window.document),ea=!z&&"undefined"!==typeof importScripts,ja=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,
|
||||
Y="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),F={},q={},R=[],M=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(G(requirejs))return;q=requirejs;requirejs=void 0}"undefined"!==typeof require&&!G(require)&&(q=require,require=void 0);g=requirejs=function(b,c,d,e){var n,p="_";!H(b)&&"string"!==typeof b&&(n=b,H(c)?(b=c,c=d,d=e):b=[]);n&&n.context&&(p=n.context);(e=m(F,p))||(e=F[p]=g.s.newContext(p));n&&e.configure(n);return e.require(b,c,d)};g.config=function(b){return g(b)};
|
||||
g.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=g);g.version="2.1.15";g.jsExtRegExp=/^\/|:|\?|\.js$/;g.isBrowser=z;x=g.s={contexts:F,newContext:ga};g({});v(["toUrl","undef","defined","specified"],function(b){g[b]=function(){var c=F._;return c.require[b].apply(c,arguments)}});if(z&&(y=x.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0]))y=x.head=D.parentNode;g.onError=ca;g.createNode=function(b){var c=
|
||||
b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};g.load=function(b,c,d){var e=b&&b.config||{};if(z)return e=g.createNode(e,c,d),e.setAttribute("data-requirecontext",b.contextName),e.setAttribute("data-requiremodule",c),e.attachEvent&&!(e.attachEvent.toString&&0>e.attachEvent.toString().indexOf("[native code"))&&!Y?(M=!0,e.attachEvent("onreadystatechange",b.onScriptLoad)):
|
||||
(e.addEventListener("load",b.onScriptLoad,!1),e.addEventListener("error",b.onScriptError,!1)),e.src=d,J=e,D?y.insertBefore(e,D):y.appendChild(e),J=null,e;if(ea)try{importScripts(d),b.completeLoad(c)}catch(m){b.onError(C("importscripts","importScripts failed for "+c+" at "+d,m,[c]))}};z&&!q.skipDataMain&&T(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(I=b.getAttribute("data-main"))return s=I,q.baseUrl||(E=s.split("/"),s=E.pop(),O=E.length?E.join("/")+"/":"./",q.baseUrl=
|
||||
O),s=s.replace(Q,""),g.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):[s],!0});define=function(b,c,d){var e,g;"string"!==typeof b&&(d=c,c=b,b=null);H(c)||(d=c,c=null);!c&&G(d)&&(c=[],d.length&&(d.toString().replace(ka,"").replace(la,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(M){if(!(e=J))N&&"interactive"===N.readyState||T(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return N=b}),e=N;e&&(b||
|
||||
(b=e.getAttribute("data-requiremodule")),g=F[e.getAttribute("data-requirecontext")])}(g?g.defQueue:R).push([b,c,d])};define.amd={jQuery:!0};g.exec=function(b){return eval(b)};g(q)}})(this);
|
||||
(function(ha){function L(b){return"[object Function]"===R.call(b)}function M(b){return"[object Array]"===R.call(b)}function x(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function Y(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));--d);}}function w(b,c){return la.call(b,c)}function g(b,c){return w(b,c)&&b[c]}function E(b,c){for(var d in b)if(w(b,d)&&c(b[d],d))break}function Z(b,c,d,k){c&&E(c,function(c,g){if(d||!w(b,g))!k||"object"!==typeof c||!c||M(c)||L(c)||c instanceof
|
||||
RegExp?b[g]=c:(b[g]||(b[g]={}),Z(b[g],c,d,k))});return b}function y(b,c){return function(){return c.apply(b,arguments)}}function ia(b){throw b;}function ja(b){if(!b)return b;var c=ha;x(b.split("."),function(b){c=c[b]});return c}function G(b,c,d,g){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=g;d&&(c.originalError=d);return c}function ma(b){function c(a,n,b){var f,l,c,d,h,k,e,A;n=n&&n.split("/");var q=m.map,p=q&&q["*"];if(a){a=a.split("/");l=a.length-1;m.nodeIdCompat&&
|
||||
V.test(a[l])&&(a[l]=a[l].replace(V,""));"."===a[0].charAt(0)&&n&&(l=n.slice(0,n.length-1),a=l.concat(a));l=a;for(c=0;c<l.length;c++)d=l[c],"."===d?(l.splice(c,1),--c):".."===d&&0!==c&&(1!==c||".."!==l[2])&&".."!==l[c-1]&&0<c&&(l.splice(c-1,2),c-=2);a=a.join("/")}if(b&&q&&(n||p)){l=a.split("/");c=l.length;a:for(;0<c;--c){h=l.slice(0,c).join("/");if(n)for(d=n.length;0<d;--d)if(b=g(q,n.slice(0,d).join("/")))if(b=g(b,h)){f=b;k=c;break a}!e&&p&&g(p,h)&&(e=g(p,h),A=c)}!f&&e&&(f=e,k=A);f&&(l.splice(0,k,
|
||||
f),a=l.join("/"))}return(f=g(m.pkgs,a))?f:a}function d(a){F&&x(document.getElementsByTagName("script"),function(n){if(n.getAttribute("data-requiremodule")===a&&n.getAttribute("data-requirecontext")===h.contextName)return n.parentNode.removeChild(n),!0})}function p(a){var n=g(m.paths,a);if(n&&M(n)&&1<n.length)return n.shift(),h.require.undef(a),h.makeRequire(null,{skipMap:!0})([a]),!0}function e(a){var n,b=a?a.indexOf("!"):-1;-1<b&&(n=a.substring(0,b),a=a.substring(b+1,a.length));return[n,a]}function q(a,
|
||||
n,b,f){var l,d,z=null,k=n?n.name:null,m=a,q=!0,A="";a||(q=!1,a="_@r"+(R+=1));a=e(a);z=a[0];a=a[1];z&&(z=c(z,k,f),d=g(r,z));a&&(z?A=d&&d.normalize?d.normalize(a,function(a){return c(a,k,f)}):-1===a.indexOf("!")?c(a,k,f):a:(A=c(a,k,f),a=e(A),z=a[0],A=a[1],b=!0,l=h.nameToUrl(A)));b=!z||d||b?"":"_unnormalized"+(U+=1);return{prefix:z,name:A,parentMap:n,unnormalized:!!b,url:l,originalName:m,isDefine:q,id:(z?z+"!"+A:A)+b}}function u(a){var b=a.id,c=g(t,b);c||(c=t[b]=new h.Module(a));return c}function v(a,
|
||||
b,c){var f=a.id,l=g(t,f);if(!w(r,f)||l&&!l.defineEmitComplete)if(l=u(a),l.error&&"error"===b)c(l.error);else l.on(b,c);else"defined"===b&&c(r[f])}function B(a,b){var c=a.requireModules,f=!1;if(b)b(a);else if(x(c,function(b){if(b=g(t,b))b.error=a,b.events.error&&(f=!0,b.emit("error",a))}),!f)k.onError(a)}function C(){W.length&&(x(W,function(a){var b=a[0];"string"===typeof b&&(h.defQueueMap[b]=!0);H.push(a)}),W=[])}function D(a){delete t[a];delete aa[a]}function K(a,b,c){var f=a.map.id;a.error?a.emit("error",
|
||||
a.error):(b[f]=!0,x(a.depMaps,function(f,d){var h=f.id,k=g(t,h);!k||a.depMatched[d]||c[h]||(g(b,h)?(a.defineDep(d,r[h]),a.check()):K(k,b,c))}),c[f]=!0)}function I(){var a,b,c=(a=1E3*m.waitSeconds)&&h.startTime+a<(new Date).getTime(),f=[],l=[],k=!1,g=!0;if(!ba){ba=!0;E(aa,function(a){var h=a.map,e=h.id;if(a.enabled&&(h.isDefine||l.push(a),!a.error))if(!a.inited&&c)p(e)?k=b=!0:(f.push(e),d(e));else if(!a.inited&&a.fetched&&h.isDefine&&(k=!0,!h.prefix))return g=!1});if(c&&f.length)return a=G("timeout",
|
||||
"Load timeout for modules: "+f,null,f),a.contextName=h.contextName,B(a);g&&x(l,function(a){K(a,{},{})});c&&!b||!k||!F&&!ka||ca||(ca=setTimeout(function(){ca=0;I()},50));ba=!1}}function J(a){w(r,a[0])||u(q(a[0],null,!0)).init(a[1],a[2])}function P(a){a=a.currentTarget||a.srcElement;var b=h.onScriptLoad;a.detachEvent&&!da?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=h.onScriptError;a.detachEvent&&!da||a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}
|
||||
function Q(){var a;for(C();H.length;){a=H.shift();if(null===a[0])return B(G("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));J(a)}h.defQueueMap={}}var ba,ea,h,S,ca,m={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},t={},aa={},fa={},H=[],r={},X={},ga={},R=1,U=1;S={require:function(a){return a.require?a.require:a.require=h.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?r[a.map.id]=a.exports:a.exports=r[a.map.id]=
|
||||
{}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return g(m.config,a.map.id)||{}},exports:a.exports||(a.exports={})}}};ea=function(a){this.events=g(fa,a.id)||{};this.map=a;this.shim=g(m.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};ea.prototype={init:function(a,b,c,f){f=f||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=y(this,function(a){this.emit("error",
|
||||
a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=f.ignore;f.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,--this.depCount,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;h.startTime=(new Date).getTime();var a=this.map;if(this.shim)h.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],y(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?
|
||||
this.callPlugin():this.load()}},load:function(){var a=this.map.url;X[a]||(X[a]=!0,h.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var f=this.exports,l=this.factory;if(!this.inited)w(h.defQueueMap,c)||this.fetch();else if(this.error)this.emit("error",this.error);else if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(L(l)){try{f=h.execCb(c,l,b,f)}catch(d){a=d}this.map.isDefine&&void 0===f&&((b=this.module)?f=b.exports:
|
||||
this.usingExports&&(f=this.exports));if(a){if(this.events.error&&this.map.isDefine||k.onError!==ia)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",B(this.error=a);if("undefined"!==typeof console&&console.error)console.error(a);else k.onError(a)}}else f=l;this.exports=f;if(this.map.isDefine&&!this.ignore&&(r[c]=f,k.onResourceLoad)){var e=[];x(this.depMaps,function(a){e.push(a.normalizedMap||a)});k.onResourceLoad(h,
|
||||
this.map,e)}D(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}},callPlugin:function(){var a=this.map,b=a.id,d=q(a.prefix);this.depMaps.push(d);v(d,"defined",y(this,function(f){var l,d,e=g(ga,this.map.id),N=this.map.name,p=this.map.parentMap?this.map.parentMap.name:null,r=h.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(f.normalize&&(N=f.normalize(N,function(a){return c(a,
|
||||
p,!0)})||""),d=q(a.prefix+"!"+N,this.map.parentMap),v(d,"defined",y(this,function(a){this.map.normalizedMap=d;this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),f=g(t,d.id)){this.depMaps.push(d);if(this.events.error)f.on("error",y(this,function(a){this.emit("error",a)}));f.enable()}}else e?(this.map.url=h.nameToUrl(e),this.load()):(l=y(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),l.error=y(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];
|
||||
E(t,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&D(a.map.id)});B(a)}),l.fromText=y(this,function(f,c){var d=a.name,e=q(d),N=T;c&&(f=c);N&&(T=!1);u(e);w(m.config,b)&&(m.config[d]=m.config[b]);try{k.exec(f)}catch(g){return B(G("fromtexteval","fromText eval for "+b+" failed: "+g,g,[b]))}N&&(T=!0);this.depMaps.push(e);h.completeLoad(d);r([d],l)}),f.load(a.name,r,l,m))}));h.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){aa[this.map.id]=this;this.enabling=this.enabled=!0;x(this.depMaps,
|
||||
y(this,function(a,b){var c,f;if("string"===typeof a){a=q(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=g(S,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;v(a,"defined",y(this,function(a){this.undefed||(this.defineDep(b,a),this.check())}));this.errback?v(a,"error",y(this,this.errback)):this.events.error&&v(a,"error",y(this,function(a){this.emit("error",a)}))}c=a.id;f=t[c];w(S,c)||!f||f.enabled||h.enable(a,this)}));E(this.pluginMaps,y(this,function(a){var b=
|
||||
g(t,a.id);b&&!b.enabled&&h.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){x(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};h={config:m,contextName:b,registry:t,defined:r,urlFetched:X,defQueue:H,defQueueMap:{},Module:ea,makeModuleMap:q,nextTick:k.nextTick,onError:B,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=m.shim,c={paths:!0,
|
||||
bundles:!0,config:!0,map:!0};E(a,function(a,b){c[b]?(m[b]||(m[b]={}),Z(m[b],a,!0,!0)):m[b]=a});a.bundles&&E(a.bundles,function(a,b){x(a,function(a){a!==b&&(ga[a]=b)})});a.shim&&(E(a.shim,function(a,c){M(a)&&(a={deps:a});!a.exports&&!a.init||a.exportsFn||(a.exportsFn=h.makeShimExports(a));b[c]=a}),m.shim=b);a.packages&&x(a.packages,function(a){var b;a="string"===typeof a?{name:a}:a;b=a.name;a.location&&(m.paths[b]=a.location);m.pkgs[b]=a.name+"/"+(a.main||"main").replace(na,"").replace(V,"")});E(t,
|
||||
function(a,b){a.inited||a.map.unnormalized||(a.map=q(b,null,!0))});(a.deps||a.callback)&&h.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ha,arguments));return b||a.exports&&ja(a.exports)}},makeRequire:function(a,n){function e(c,d,g){var m,p;n.enableBuildCallback&&d&&L(d)&&(d.__requireJsBuild=!0);if("string"===typeof c){if(L(d))return B(G("requireargs","Invalid require call"),g);if(a&&w(S,c))return S[c](t[a.id]);if(k.get)return k.get(h,
|
||||
c,a,e);m=q(c,a,!1,!0);m=m.id;return w(r,m)?r[m]:B(G("notloaded",'Module name "'+m+'" has not been loaded yet for context: '+b+(a?"":". Use require([])")))}Q();h.nextTick(function(){Q();p=u(q(null,a));p.skipMap=n.skipMap;p.init(c,d,g,{enabled:!0});I()});return e}n=n||{};Z(e,{isBrowser:F,toUrl:function(b){var d,e=b.lastIndexOf("."),n=b.split("/")[0];-1!==e&&("."!==n&&".."!==n||1<e)&&(d=b.substring(e,b.length),b=b.substring(0,e));return h.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return w(r,
|
||||
q(b,a,!1,!0).id)},specified:function(b){b=q(b,a,!1,!0).id;return w(r,b)||w(t,b)}});a||(e.undef=function(b){C();var c=q(b,a,!0),e=g(t,b);e.undefed=!0;d(b);delete r[b];delete X[c.url];delete fa[b];Y(H,function(a,c){a[0]===b&&H.splice(c,1)});delete h.defQueueMap[b];e&&(e.events.defined&&(fa[b]=e.events),D(b))});return e},enable:function(a){g(t,a.id)&&u(a).enable()},completeLoad:function(a){var b,c,d=g(m.shim,a)||{},e=d.exports;for(C();H.length;){c=H.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===
|
||||
a&&(b=!0);J(c)}h.defQueueMap={};c=g(t,a);if(!b&&!w(r,a)&&c&&!c.inited)if(!m.enforceDefine||e&&ja(e))J([a,d.deps||[],d.exportsFn]);else return p(a)?void 0:B(G("nodefine","No define call for "+a,null,[a]));I()},nameToUrl:function(a,b,c){var d,e,p;(d=g(m.pkgs,a))&&(a=d);if(d=g(ga,a))return h.nameToUrl(d,b,c);if(k.jsExtRegExp.test(a))d=a+(b||"");else{d=m.paths;a=a.split("/");for(e=a.length;0<e;--e)if(p=a.slice(0,e).join("/"),p=g(d,p)){M(p)&&(p=p[0]);a.splice(0,e,p);break}d=a.join("/");d+=b||(/^data\:|\?/.test(d)||
|
||||
c?"":".js");d=("/"===d.charAt(0)||d.match(/^[\w\+\.\-]+:/)?"":m.baseUrl)+d}return m.urlArgs?d+((-1===d.indexOf("?")?"?":"&")+m.urlArgs):d},load:function(a,b){k.load(h,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||oa.test((a.currentTarget||a.srcElement).readyState))O=null,a=P(a),h.completeLoad(a.id)},onScriptError:function(a){var b=P(a);if(!p(b.id)){var c=[];E(t,function(a,d){0!==d.indexOf("_@r")&&x(a.depMaps,function(a){a.id===b.id&&c.push(d);return!0})});
|
||||
return B(G("scripterror",'Script error for "'+b.id+(c.length?'", needed by: '+c.join(", "):'"'),a,[b.id]))}}};h.require=h.makeRequire();return h}function pa(){if(O&&"interactive"===O.readyState)return O;Y(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return O=b});return O}var k,C,D,I,P,J,O,Q,u,U,qa=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ra=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,V=/\.js$/,na=/^\.\//;C=Object.prototype;var R=C.toString,la=C.hasOwnProperty,
|
||||
F=!("undefined"===typeof window||"undefined"===typeof navigator||!window.document),ka=!F&&"undefined"!==typeof importScripts,oa=F&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,da="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),K={},v={},W=[],T=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(L(requirejs))return;v=requirejs;requirejs=void 0}"undefined"===typeof require||L(require)||(v=require,require=void 0);k=requirejs=function(b,
|
||||
c,d,p){var e,q="_";M(b)||"string"===typeof b||(e=b,M(c)?(b=c,c=d,d=p):b=[]);e&&e.context&&(q=e.context);(p=g(K,q))||(p=K[q]=k.s.newContext(q));e&&p.configure(e);return p.require(b,c,d)};k.config=function(b){return k(b)};k.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=k);k.version="2.1.22";k.jsExtRegExp=/^\/|:|\?|\.js$/;k.isBrowser=F;C=k.s={contexts:K,newContext:ma};k({});x(["toUrl","undef","defined","specified"],function(b){k[b]=function(){var c=
|
||||
K._;return c.require[b].apply(c,arguments)}});F&&(D=C.head=document.getElementsByTagName("head")[0],I=document.getElementsByTagName("base")[0])&&(D=C.head=I.parentNode);k.onError=ia;k.createNode=function(b,c,d){c=b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};k.load=function(b,c,d){var g=b&&b.config||{},e;if(F){e=k.createNode(g,c,d);if(g.onNodeCreated)g.onNodeCreated(e,
|
||||
g,c,d);e.setAttribute("data-requirecontext",b.contextName);e.setAttribute("data-requiremodule",c);!e.attachEvent||e.attachEvent.toString&&0>e.attachEvent.toString().indexOf("[native code")||da?(e.addEventListener("load",b.onScriptLoad,!1),e.addEventListener("error",b.onScriptError,!1)):(T=!0,e.attachEvent("onreadystatechange",b.onScriptLoad));e.src=d;Q=e;I?D.insertBefore(e,I):D.appendChild(e);Q=null;return e}if(ka)try{importScripts(d),b.completeLoad(c)}catch(q){b.onError(G("importscripts","importScripts failed for "+
|
||||
c+" at "+d,q,[c]))}};F&&!v.skipDataMain&&Y(document.getElementsByTagName("script"),function(b){D||(D=b.parentNode);if(P=b.getAttribute("data-main"))return u=P,v.baseUrl||(J=u.split("/"),u=J.pop(),U=J.length?J.join("/")+"/":"./",v.baseUrl=U),u=u.replace(V,""),k.jsExtRegExp.test(u)&&(u=P),v.deps=v.deps?v.deps.concat(u):[u],!0});define=function(b,c,d){var g,e;"string"!==typeof b&&(d=c,c=b,b=null);M(c)||(d=c,c=null);!c&&L(d)&&(c=[],d.length&&(d.toString().replace(qa,"").replace(ra,function(b,d){c.push(d)}),
|
||||
c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));T&&(g=Q||pa())&&(b||(b=g.getAttribute("data-requiremodule")),e=K[g.getAttribute("data-requirecontext")]);e?(e.defQueue.push([b,c,d]),e.defQueueMap[b]=!0):W.push([b,c,d])};define.amd={jQuery:!0};k.exec=function(b){return eval(b)};k(v)}})(this);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
var myManifest = {
|
||||
Debug: false,
|
||||
Debug: (window.location.port !== ""),
|
||||
Name: "Il Management",
|
||||
Version: "0.2.0.1",
|
||||
Author: "Denis Ironi",
|
||||
Settings: {
|
||||
//DefaultURL: "http://localhost:8081/Service_Manut",
|
||||
DefaultURL: "http://management.gruppolapastamadre.it/Service",
|
||||
DefaultURL: (window.location.port === "" ? "http://" + window.location.host + "/Service": "http://" + window.location.hostname + ":" + window.location.port + "/Service_Manut"),
|
||||
JQueryVersion: "1.11.1",
|
||||
Device:{
|
||||
Width: (window.innerWidth > 0) ? window.innerWidth : screen.width,
|
||||
@@ -14,6 +13,6 @@ var myManifest = {
|
||||
},
|
||||
Agent: (new UAParser()).getResult(),
|
||||
getUrlArg: function(){
|
||||
return (this.Debug ? this.Version + "." + (Math.random() * 1000) : this.Version);
|
||||
return this.Version;
|
||||
}
|
||||
};
|
||||
@@ -7,6 +7,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
//initialize template
|
||||
template: _.template(editricettaViewTemplate),
|
||||
addIngrDlg: null,
|
||||
fullScrDlg: null,
|
||||
initialize: function() {
|
||||
EditRicetteView.__super__.initialize.call(this);
|
||||
//this.header.title = "pippo";
|
||||
@@ -36,6 +37,26 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
|
||||
$("#listbox").jqxListBox({source: ricetta.ingredienti, itemHeight: 30, height: '90%', width: '100%', theme: 'arctic'});
|
||||
|
||||
var photoFields = [
|
||||
{name: 'id_photo', type: 'int'},
|
||||
{name: 'type_format', type: 'string'},
|
||||
{name: 'from_profile_id', type: 'string'},
|
||||
{name: 'uploaded_date', type: 'datetime'},
|
||||
{name: 'profile_name', type: 'string'},
|
||||
{name: 'published', type: 'bool'}
|
||||
];
|
||||
var photoAdapter = new $.jqx.dataAdapter({
|
||||
datatype: "jsonp",
|
||||
datafields: photoFields,
|
||||
id: 'id_photo',
|
||||
url: myManifest.Settings.DefaultURL + "/backend/ricetta/" + ricetta_id + "/photos",
|
||||
data: {
|
||||
}
|
||||
});
|
||||
|
||||
$("#gridPhotos").jqxGrid({
|
||||
source: photoAdapter});
|
||||
|
||||
// show the popup window.
|
||||
$("#popupWindow").jqxWindow('open');
|
||||
});
|
||||
@@ -80,6 +101,31 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
cancelButton: this.$el.find("#Cancel"),
|
||||
modalOpacity: 0.01,
|
||||
initContent: function() {
|
||||
$('#listbox').jqxListBox({
|
||||
renderer: function(index, label, value) {
|
||||
var datarecord = this.source[index];
|
||||
if (datarecord)
|
||||
{
|
||||
datarecord.note = unescape(datarecord.note);
|
||||
var div = '';
|
||||
if (datarecord.id_tipo_ingredienti === "22")
|
||||
{
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: <i>' + datarecord.note + '</i></div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: ' + datarecord.quantita + ' ' + datarecord.unita + ' <i>' + datarecord.note + '</i></div>';
|
||||
}
|
||||
return div;
|
||||
}
|
||||
return "";
|
||||
},
|
||||
dragEnd: function(dragItem, dropItem) {
|
||||
this.source.move(dragItem.index, dropItem.index);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
$('#jqxTabs').jqxTabs({
|
||||
width: '100%',
|
||||
height: "90%",
|
||||
@@ -223,29 +269,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
|
||||
$('#listbox').jqxListBox({
|
||||
//allowDrag: true,
|
||||
source: dataAdapter, itemHeight: 30, height: '90%', width: '100%', theme: 'arctic',
|
||||
renderer: function(index, label, value) {
|
||||
var datarecord = this.source[index];
|
||||
if (datarecord)
|
||||
{
|
||||
datarecord.note = unescape(datarecord.note);
|
||||
var div = '';
|
||||
if (datarecord.id_tipo_ingredienti === "22")
|
||||
{
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: <i>' + datarecord.note + '</i></div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
div = '<div><b>' + datarecord.nome_ingrediente + '</b>: ' + datarecord.quantita + ' ' + datarecord.unita + ' <i>' + datarecord.note + '</i></div>';
|
||||
}
|
||||
return div;
|
||||
}
|
||||
return "";
|
||||
},
|
||||
dragEnd: function(dragItem, dropItem) {
|
||||
this.source.move(dragItem.index, dropItem.index);
|
||||
return true;
|
||||
}
|
||||
source: dataAdapter, itemHeight: 30, height: '90%', width: '100%', theme: 'arctic'
|
||||
});
|
||||
|
||||
$('#listbox').on('select', function(event) {
|
||||
@@ -285,6 +309,117 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
if (text)
|
||||
$('#procedimento').jqxEditor('val', text);
|
||||
}
|
||||
else if (tab === 3)
|
||||
{
|
||||
var source =
|
||||
{
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'id'},
|
||||
{name: 'name'}
|
||||
],
|
||||
url: myManifest.Settings.DefaultURL + "/backend/profiles",
|
||||
data: {
|
||||
}
|
||||
};
|
||||
var dataAdapter = new $.jqx.dataAdapter(source);
|
||||
$("#autorePhoto").jqxDropDownList(
|
||||
{
|
||||
width: "250px",
|
||||
height: "25px",
|
||||
source: dataAdapter,
|
||||
//selectedIndex: -1,
|
||||
displayMember: "name",
|
||||
valueMember: "id"
|
||||
});
|
||||
$('#jqxFileUpload').jqxFileUpload({ width: '50%',
|
||||
fileInputName: 'image',
|
||||
multipleFilesUpload: false,
|
||||
accept: 'image/*',
|
||||
uploadUrl: myManifest.Settings.DefaultURL + '/backend/photos' });
|
||||
|
||||
$('#jqxFileUpload').on('uploadStart', function (event) {
|
||||
var profileID = "10203753344023406";
|
||||
|
||||
if($("#autorePhoto").val() != 0)
|
||||
profileID = $("#autorePhoto").val();
|
||||
|
||||
$('form[action="' + myManifest.Settings.DefaultURL + '/backend/photos' + '"]').
|
||||
append('<input type="hidden" name="ricetta_id" value="' + self.ricettaEditing.ricetta_id +'" />').
|
||||
append('<input type="hidden" name="keyStore" value="' + profileID + '" />');
|
||||
});
|
||||
$('#jqxFileUpload').on('uploadEnd', function (event) {
|
||||
$("#gridPhotos").jqxGrid('updatebounddata');
|
||||
});
|
||||
$("#gridPhotos").jqxGrid({
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
//source: photoAdapter,
|
||||
rowsheight: 100,
|
||||
//filterable: true,
|
||||
autoshowfiltericon: true,
|
||||
columns: [
|
||||
{text: 'Autore', dataField: 'profile_name', width: "170px"},
|
||||
{text: 'Image', dataField: 'image', height: "100px",
|
||||
cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
|
||||
return '<center><img style="margin-left: 5px;height: 100px;" src="' + myManifest.Settings.DefaultURL + '/api/photos/thumbnail/' + rowdata.id_photo + '"/></center>';
|
||||
}
|
||||
},
|
||||
{text: 'Published', editable: false, dataField: 'published', width: "70px",
|
||||
cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
|
||||
var valueBool = rowdata.published;
|
||||
return "<div style='margin: 4px;' class='jqx-center-align'>" + valueBool + "</div>";
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'FullView', columntype: 'button', width: '10%',
|
||||
cellsrenderer: function() {
|
||||
return "View Full";
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
var items = $("#gridPhotos").jqxGrid('source');
|
||||
var item = items.records[row];
|
||||
self.fullScrDlg.$el.find('#imgFullScr').attr('src', myManifest.Settings.DefaultURL + '/api/photos/' + item.id_photo);
|
||||
self.fullScrDlg.open();
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'Pubblica', columntype: 'button', width: '10%',
|
||||
cellsrenderer: function() {
|
||||
return "Pubblica";
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
var items = $("#gridPhotos").jqxGrid('source');
|
||||
var item = items.records[row];
|
||||
if(item.published === false)
|
||||
{
|
||||
$.ajax({
|
||||
url: myManifest.Settings.DefaultURL + "/backend/photo/publish/" + item.id_photo,
|
||||
//dataType: "json",
|
||||
type: 'GET'
|
||||
}).then(function (response) {
|
||||
$("#gridPhotos").jqxGrid('updatebounddata');
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'Cancella', columntype: 'button', width: '10%',
|
||||
cellsrenderer: function() {
|
||||
return "Cancella";
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
var items = $("#gridPhotos").jqxGrid('source');
|
||||
var item = items.records[row];
|
||||
$.ajax({
|
||||
url: myManifest.Settings.DefaultURL + "/backend/photo/" + item.id_photo,
|
||||
//dataType: "json",
|
||||
type: 'DELETE'
|
||||
}).then(function (response) {
|
||||
$("#gridPhotos").jqxGrid('updatebounddata');
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -337,12 +472,25 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/editricetta/editricett
|
||||
$("#Cancel").jqxButton({width: '48%', height: 40});
|
||||
}
|
||||
});
|
||||
//
|
||||
// $('#popupWindow').on('resized', function (event) {
|
||||
// $('#procedimento').jqxEditor({width: '100%', height: 380});
|
||||
// });
|
||||
|
||||
|
||||
this.fullScrDlg = new Window({
|
||||
title: "Foto Full Screen",
|
||||
width: "600px",
|
||||
height: "600px",
|
||||
margin_top: "50px",
|
||||
id: "fullScrDlg",
|
||||
showCloseButton: true,
|
||||
resizable: true,
|
||||
isModal: true,
|
||||
autoOpen: false,
|
||||
content: "<img id='imgFullScr' style='margin-left: 5px;width: 565px;' src='' />",
|
||||
initContentFn: null
|
||||
});
|
||||
|
||||
self.$el.find("#content").append(this.fullScrDlg.$el);
|
||||
this.fullScrDlg.render();
|
||||
|
||||
this.addIngrDlg = new AddIngrDlg();
|
||||
this.$el.find("#content").append(this.addIngrDlg.$el);
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<li style="margin-left: 30px;">Informazioni Generali</li>
|
||||
<li>Ingredienti</li>
|
||||
<li>Procedimento</li>
|
||||
<li>Foto</li>
|
||||
</ul>
|
||||
<div>
|
||||
<table>
|
||||
@@ -47,8 +48,15 @@
|
||||
<div style="border: none;" id="listbox"></div>
|
||||
</div>
|
||||
<div><textarea id="procedimento"></textarea></div>
|
||||
<div>Autore Foto: <div id="autorePhoto"></div><div id="jqxFileUpload"></div><div id="gridPhotos"></div></div>
|
||||
</div>
|
||||
<input style="margin-right: 5px;" type="button" id="Save" value="Save" /><input id="Cancel" type="button" value="Cancel" />
|
||||
<div id="fullScreenWindow" style="overflow: hidden; display: none;">
|
||||
<div>Foto Full Screen</div>
|
||||
<div>
|
||||
<img id="imgFullScr" style="margin-left: 5px;width: 200px;" src=""/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,9 +1,11 @@
|
||||
define(['jquery', 'underscore', 'backbone', 'text!modules/home/homeViewTemplate.html',
|
||||
'modules/base/baseView', 'modules/ricette/ricette', 'modules/editricetta/editricetta', 'modules/photos/photos',
|
||||
'modules/base/baseView', 'modules/ricette/ricette', 'modules/editricetta/editricetta', 'modules/photos/photos', 'modules/statistics/statistics',
|
||||
'jqx'],
|
||||
function($, _, Backbone, homeViewTemplate, BaseView, RicetteView, EditRicettaView, PhotosView) {
|
||||
function($, _, Backbone, homeViewTemplate, BaseView, RicetteView, EditRicettaView, PhotosView, StatisticsView) {
|
||||
|
||||
var HomeView = BaseView.extend({
|
||||
ricetteView: null,
|
||||
statiView: null,
|
||||
//initialize template
|
||||
template: _.template(homeViewTemplate),
|
||||
initialize: function() {
|
||||
@@ -19,15 +21,30 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/home/homeViewTemplate.
|
||||
},
|
||||
modifyRicetta: function() {
|
||||
//e.preventDefault();
|
||||
var ricetteView = new RicetteView();
|
||||
ricetteView.render();
|
||||
$('body').append(ricetteView.$el);
|
||||
if(this.ricetteView == null)
|
||||
{
|
||||
this.ricetteView = new RicetteView();
|
||||
this.ricetteView.render();
|
||||
$('body').append(this.ricetteView.$el);
|
||||
}
|
||||
else
|
||||
this.ricetteView.render();
|
||||
},
|
||||
photosView: function(){
|
||||
var photosView = new PhotosView();
|
||||
photosView.render();
|
||||
$('body').append(photosView.$el);
|
||||
},
|
||||
statisticsView: function(){
|
||||
if(this.statiView == null)
|
||||
{
|
||||
this.statiView = new StatisticsView();
|
||||
this.statiView.render();
|
||||
$('body').append(this.statiView.$el);
|
||||
}
|
||||
else
|
||||
this.statiView.render();
|
||||
},
|
||||
clickMenu: function(event) {
|
||||
var item = $(event.target);
|
||||
//var clickedItem = event.args;
|
||||
@@ -46,6 +63,11 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/home/homeViewTemplate.
|
||||
{
|
||||
event.data.scope.photosView();
|
||||
}
|
||||
else if(item[0].id === "viewStatistics" ||
|
||||
item[0].lastChild.id === "viewStatistics")
|
||||
{
|
||||
event.data.scope.statisticsView();
|
||||
}
|
||||
},
|
||||
//render the content into div of view
|
||||
render: function() {
|
||||
|
||||
@@ -13,19 +13,19 @@
|
||||
<li><a id="addIngredienti" href="#">Aggiungi</a></li>
|
||||
<li><a id="modifyIngredienti" href="#">Modifica</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>-->
|
||||
<li>Gestione Foto
|
||||
<ul style='width: 250px;'>
|
||||
<li><a id="viewPhotos" href="#">Visualizza</a></li>
|
||||
<!--<li><a id="publishPhoto" href="#">Approva</a></li>
|
||||
<li><a id="publishPhoto" href="#">Approva</a></li>
|
||||
<li><a id="deletePhoto" href="#">Cancella</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Gestione Profili
|
||||
<ul style='width: 250px;'>
|
||||
<li><a id="viewProfiles" href="#">Visualizza</a></li>
|
||||
<li><a id="viewStatistics" href="#">Statistiche</a></li>
|
||||
</ul>
|
||||
</li>-->
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -49,7 +49,11 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/photos/photosViewTempl
|
||||
filterable: true,
|
||||
autoshowfiltericon: true,
|
||||
columns: [
|
||||
{text: 'Titolo', dataField: 'titolo', width: "400px"},
|
||||
{text: 'Titolo', dataField: 'titolo', width: "400px",
|
||||
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
|
||||
return "<div style='overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;'>" + unescape(value ) + "</div>";
|
||||
}
|
||||
},
|
||||
{text: 'Inviate', dataField: 'num_img', width: "65px"},
|
||||
{text: 'All Published', editable: false, dataField: 'all_published', width: "70px",
|
||||
cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
|
||||
|
||||
@@ -6,7 +6,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/ricette/ricetteViewTem
|
||||
dataAdapter: undefined,
|
||||
//initialize template
|
||||
template: _.template(ricetteViewTemplate),
|
||||
|
||||
window:null,
|
||||
editorRicetta: null,
|
||||
|
||||
initialize: function() {
|
||||
@@ -19,7 +19,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/ricette/ricetteViewTem
|
||||
if (event.args) {
|
||||
var item = event.args.item;
|
||||
if (item) {
|
||||
self.dataAdapter._source.url = myManifest.Settings.DefaultURL + "/backend/categoryitems/" + item.value;
|
||||
self.dataAdapter._source.url = myManifest.Settings.DefaultURL + "/backend/ricette/" + item.value;
|
||||
self.dataAdapter.dataBind();
|
||||
$("#jqxgrid").jqxGrid('updatebounddata');
|
||||
}
|
||||
@@ -35,112 +35,118 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/ricette/ricetteViewTem
|
||||
//this.header.title = "pippo";
|
||||
RicetteView.__super__.render.call(this);
|
||||
var self = this;
|
||||
var window = new Window({
|
||||
title: "Ricette",
|
||||
width: "850px",
|
||||
resizable: true,
|
||||
height: "510px",
|
||||
maxHeight: 1000,
|
||||
maxWidth: 1000,
|
||||
content: "<p><div id=\"categoriaCmb\"></div></p>\n\
|
||||
<p><div id=\"jqxgrid\"></div></p>",
|
||||
initContentFn: function() {
|
||||
var source =
|
||||
{
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'category_id'},
|
||||
{name: 'name'}
|
||||
],
|
||||
url: myManifest.Settings.DefaultURL + "/backend/categories",
|
||||
data: {
|
||||
}
|
||||
};
|
||||
var dataAdapter = new $.jqx.dataAdapter(source);
|
||||
$("#categoriaCmb").jqxDropDownList(
|
||||
{
|
||||
width: 200,
|
||||
height: 25,
|
||||
source: dataAdapter,
|
||||
selectedIndex: 0,
|
||||
displayMember: "name",
|
||||
valueMember: "category_id"
|
||||
});
|
||||
|
||||
$("#categoriaCmb").on('select', {scope: self}, self.fillGrid);
|
||||
if(self.window === null)
|
||||
{
|
||||
self.window = new Window({
|
||||
id: "ricette",
|
||||
title: "Ricette",
|
||||
width: "850px",
|
||||
resizable: true,
|
||||
height: "510px",
|
||||
maxHeight: 1000,
|
||||
maxWidth: 1000,
|
||||
content: "<p><div id=\"categoriaCmb\"></div></p>\n\
|
||||
<p><div id=\"jqxgrid\"></div></p>",
|
||||
initContentFn: function() {
|
||||
var source =
|
||||
{
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'category_id'},
|
||||
{name: 'name'}
|
||||
],
|
||||
url: myManifest.Settings.DefaultURL + "/backend/categories",
|
||||
data: {
|
||||
}
|
||||
};
|
||||
var dataAdapter = new $.jqx.dataAdapter(source);
|
||||
$("#categoriaCmb").jqxDropDownList(
|
||||
{
|
||||
width: 200,
|
||||
height: 25,
|
||||
source: dataAdapter,
|
||||
selectedIndex: 0,
|
||||
displayMember: "name",
|
||||
valueMember: "category_id"
|
||||
});
|
||||
|
||||
// prepare the data
|
||||
self.dataAdapter = new $.jqx.dataAdapter({
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'ricetta_id', type: 'int'},
|
||||
{name: 'titolo', type: 'string'},
|
||||
{name: 'autore', type: 'string'}
|
||||
],
|
||||
id: 'ricetta_id',
|
||||
url: myManifest.Settings.DefaultURL + "/backend/categoryitems/0"
|
||||
});
|
||||
$("#jqxgrid").jqxGrid({
|
||||
width: "100%",
|
||||
height: "87%",
|
||||
source: self.dataAdapter,
|
||||
filterable: true,
|
||||
autoshowfiltericon: true,
|
||||
columns: [
|
||||
{text: 'Titolo', dataField: 'titolo', width: "50%",
|
||||
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
|
||||
return "<div style='overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;'>" + unescape(value ) + "</div>";
|
||||
}
|
||||
},
|
||||
{text: 'Autore', dataField: 'autore', width: "30%",
|
||||
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
|
||||
return "<div style='overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;'>" + unescape(value ) + "</div>";
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'Edit', columntype: 'button', width: '10%',
|
||||
cellsrenderer: function() {
|
||||
return "Modifica";
|
||||
$("#categoriaCmb").on('select', {scope: self}, self.fillGrid);
|
||||
|
||||
// prepare the data
|
||||
self.dataAdapter = new $.jqx.dataAdapter({
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'ricetta_id', type: 'int'},
|
||||
{name: 'titolo', type: 'string'},
|
||||
{name: 'autore', type: 'string'}
|
||||
],
|
||||
id: 'ricetta_id',
|
||||
url: myManifest.Settings.DefaultURL + "/backend/ricette/3"
|
||||
});
|
||||
$("#jqxgrid").jqxGrid({
|
||||
width: "100%",
|
||||
height: "87%",
|
||||
source: self.dataAdapter,
|
||||
filterable: true,
|
||||
autoshowfiltericon: true,
|
||||
columns: [
|
||||
{text: 'Titolo', dataField: 'titolo', width: "50%",
|
||||
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
|
||||
return "<div style='overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;'>" + unescape(value ) + "</div>";
|
||||
}
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
self.openRicetta(row);
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'Del', columntype: 'button', width: '10%',
|
||||
cellsrenderer: function() {
|
||||
return "Elimina";
|
||||
{text: 'Autore', dataField: 'autore', width: "30%",
|
||||
cellsrenderer: function(row, columnfield, value, defaulthtml, columnproperties) {
|
||||
return "<div style='overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;'>" + unescape(value ) + "</div>";
|
||||
}
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
$.ajax({
|
||||
url: myManifest.Settings.DefaultURL + "/backend/ricetta/" + row.id,
|
||||
//dataType: "json",
|
||||
type: 'DELETE'
|
||||
}).then(function (response) {
|
||||
var msg = response;
|
||||
alert(msg.message);
|
||||
});
|
||||
{text: '', datafield: 'Edit', columntype: 'button', width: '10%', filterable: false, sortable: false, menu: false,
|
||||
cellsrenderer: function() {
|
||||
return "Modifica";
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
self.openRicetta(row);
|
||||
}
|
||||
},
|
||||
{text: '', datafield: 'Del', columntype: 'button', width: '10%', filterable: false, sortable: false, menu: false,
|
||||
cellsrenderer: function() {
|
||||
return "Elimina";
|
||||
},
|
||||
buttonclick: function(row) {
|
||||
$.ajax({
|
||||
url: myManifest.Settings.DefaultURL + "/backend/ricetta/" + row.id,
|
||||
//dataType: "json",
|
||||
type: 'DELETE'
|
||||
}).then(function (response) {
|
||||
var msg = response;
|
||||
alert(msg.message);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
]
|
||||
});
|
||||
|
||||
$('#jqxgrid').on('rowdoubleclick', function(event)
|
||||
{
|
||||
var args = event.args;
|
||||
var row = args.rowindex;
|
||||
self.openRicetta(row);
|
||||
});
|
||||
}
|
||||
});
|
||||
window.id = "ricette";
|
||||
$('#jqxgrid').on('rowdoubleclick', function(event)
|
||||
{
|
||||
var args = event.args;
|
||||
var row = args.rowindex;
|
||||
self.openRicetta(row);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this.$el.append(this.template());
|
||||
this.$el.find("#content").append(window.$el);
|
||||
window.render();
|
||||
|
||||
this.editorRicetta = new EditRicetta();
|
||||
this.$el.find("#content").append(this.editorRicetta.$el);
|
||||
|
||||
this.editorRicetta.render();
|
||||
this.$el.append(this.template());
|
||||
this.$el.find("#content").append(self.window.$el);
|
||||
self.window.render();
|
||||
|
||||
this.editorRicetta = new EditRicetta();
|
||||
this.$el.find("#content").append(this.editorRicetta.$el);
|
||||
|
||||
this.editorRicetta.render();
|
||||
}
|
||||
else
|
||||
self.window.open();
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<div id='chartContainer1' style="width: 400px; height: 250px;">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div id='chartContainer2' style="width: 400px; height: 250px;">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id='chartContainer3' style="width: 400px; height: 250px;">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<!-- <div id='chartContainer4' style="width: 400px; height: 250px;">
|
||||
</div>-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,116 @@
|
||||
define(['jquery', 'underscore', 'backbone',
|
||||
'text!modules/statistics/statisticsViewTemplate.html',
|
||||
'text!modules/statistics/pieTabTemplate.html',
|
||||
'modules/base/baseView', 'controls/window/window', 'jqx'],
|
||||
function ($, _, Backbone, statisticsViewTemplate, pieTabTemplate, BaseView, Window) {
|
||||
|
||||
var StatisticsView = BaseView.extend({
|
||||
dataAdapter: undefined,
|
||||
//initialize template
|
||||
template: _.template(statisticsViewTemplate),
|
||||
editorRicetta: null,
|
||||
initialize: function () {
|
||||
StatisticsView.__super__.initialize.call(this);
|
||||
//this.header.title = "pippo";
|
||||
},
|
||||
//render the content into div of view
|
||||
render: function () {
|
||||
//this.header.title = "pippo";
|
||||
StatisticsView.__super__.render.call(this);
|
||||
var self = this;
|
||||
var chartSettings = {
|
||||
// source: new $.jqx.dataAdapter({
|
||||
// datatype: "jsonp",
|
||||
// datafields: [
|
||||
// {name: 'CountSerie', type: 'int'},
|
||||
// {name: 'Serie', type: 'string'}
|
||||
// ],
|
||||
// url: myManifest.Settings.DefaultURL + "/backend/statistics/gender"
|
||||
// }),
|
||||
title: '',
|
||||
//description: "Genere",
|
||||
enableAnimations: false,
|
||||
showLegend: true,
|
||||
showBorderLine: true,
|
||||
padding: {left: 5, top: 5, right: 5, bottom: 5},
|
||||
titlePadding: {left: 0, top: 0, right: 0, bottom: 10},
|
||||
colorScheme: 'scheme03',
|
||||
seriesGroups: [
|
||||
{
|
||||
type: 'pie',
|
||||
showLegend: true,
|
||||
enableSeriesToggle: true,
|
||||
series:
|
||||
[
|
||||
{
|
||||
dataField: 'CountSerie',
|
||||
displayText: 'Serie',
|
||||
showLabels: true,
|
||||
labelRadius: 160,
|
||||
labelLinesEnabled: true,
|
||||
labelLinesAngles: true,
|
||||
labelsAutoRotate: false,
|
||||
initialAngle: 0,
|
||||
radius: 125,
|
||||
minAngle: 0,
|
||||
maxAngle: 180,
|
||||
centerOffset: 0,
|
||||
offsetY: 170
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
var window = new Window({
|
||||
title: "Statistiche",
|
||||
width: "850px",
|
||||
resizable: true,
|
||||
height: "510px",
|
||||
maxHeight: 1000,
|
||||
maxWidth: 1000,
|
||||
content: _.template(pieTabTemplate),
|
||||
initContentFn: function () {
|
||||
chartSettings.source = new $.jqx.dataAdapter({
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'CountSerie', type: 'int'},
|
||||
{name: 'Serie', type: 'string'}
|
||||
],
|
||||
url: myManifest.Settings.DefaultURL + "/backend/statistics/gender"
|
||||
});
|
||||
chartSettings.title = "Genere";
|
||||
$("#chartContainer1").jqxChart(chartSettings);
|
||||
|
||||
chartSettings.source = new $.jqx.dataAdapter({
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'CountSerie', type: 'int'},
|
||||
{name: 'Serie', type: 'string'}
|
||||
],
|
||||
url: myManifest.Settings.DefaultURL + "/backend/statistics/typeAccess"
|
||||
});
|
||||
chartSettings.title = "Tipo Accessi";
|
||||
$("#chartContainer2").jqxChart(chartSettings);
|
||||
|
||||
chartSettings.source = new $.jqx.dataAdapter({
|
||||
datatype: "jsonp",
|
||||
datafields: [
|
||||
{name: 'CountSerie', type: 'int'},
|
||||
{name: 'Serie', type: 'string'}
|
||||
],
|
||||
url: myManifest.Settings.DefaultURL + "/backend/statistics/themesUsage"
|
||||
});
|
||||
chartSettings.title = "Temi Usati";
|
||||
$("#chartContainer3").jqxChart(chartSettings);
|
||||
}
|
||||
});
|
||||
window.id = "statistics";
|
||||
|
||||
this.$el.append(this.template());
|
||||
this.$el.find("#content").append(window.$el);
|
||||
window.render();
|
||||
return this;
|
||||
}
|
||||
});
|
||||
return StatisticsView;
|
||||
});
|
||||
@@ -0,0 +1,2 @@
|
||||
<div id="content">
|
||||
</div>
|
||||