diff --git a/bower.json b/bower.json index 0665043c..fbf756bc 100644 --- a/bower.json +++ b/bower.json @@ -35,14 +35,14 @@ "seajs": "~2.3.0" }, "dependencies": { - "bootstrap": "~3.3.4", + "bootstrap": "~3.3.7", "angular": "~1.3.15", - "angular-bootstrap": "~0.12.1", - "angular-ui-codemirror": "~0.2.3", - "codemirror": "~4.8.0", + "angular-bootstrap": "~0.14.0", + "angular-ui-codemirror": "~0.3.0", "marked": "git://github.com/chjj/marked.git#master", "hotbox": "~1.0.2", - "color-picker": "~1.0.2" + "color-picker": "~1.0.9", + "js-base64": "~2.4.9" }, "overrides": { "codemirror": { diff --git a/dist/index.html b/dist/index.html index 19f4d36b..60339ecc 100644 --- a/dist/index.html +++ b/dist/index.html @@ -45,7 +45,6 @@ - diff --git a/index.html b/index.html index 360a57d8..6d694fe4 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,6 @@ - diff --git a/ui/dialog/image/image.ctrl.js b/ui/dialog/image/image.ctrl.js index 6b7e2e91..5ee5e6b4 100644 --- a/ui/dialog/image/image.ctrl.js +++ b/ui/dialog/image/image.ctrl.js @@ -14,6 +14,12 @@ angular.module('kityminderEditor') $imageUrl[0].setSelectionRange(0, $scope.data.url.length); }, 300); + $modalInstance.rendered.then(function () { + $('#upload-image').change(function(){ + $scope.uploadImage(); + }); + }); + // 搜索图片按钮点击事件 $scope.searchImage = function() { diff --git a/ui/dialog/image/image.tpl.html b/ui/dialog/image/image.tpl.html index 45ba66a8..12f3ed86 100644 --- a/ui/dialog/image/image.tpl.html +++ b/ui/dialog/image/image.tpl.html @@ -35,11 +35,11 @@